- Create a new package in your workspace
cd ~/catkin_ws/src
catkin_create_pkg <package_name> std_msgs rospy ros_clients
cd ~/catkin_ws
catkin_make
-
Create a python file in your package and copy and paste navigator.py into it.
-
Don't forget to make the python file you just created executable
chmod +x navigator.py- After launching the ros_scenario package, run this code
rosrun <package_name> navigator.py