A couple of suggested tidy ups for ROS Basics in 5 days
Many of the course notebook “execute in shell” commands have a dollar prompt embedded which means each line has to be pasted separately rather than pasting the commands as one
$ cd ~/catkin_ws/src
$ catkin_create_pkg my_examples_pkg rospy std_msgs
Instead, removing the dollar and space results in a much cleaner course
cd ~/catkin_ws/src
catkin_create_pkg my_examples_pkg rospy std_msgs
Secondly, Part 3 (Topic publishers) and Part 4 (Topic subscribers) both try to create the same example package. That generates a file exists error. Given the example packages have a purpose, rather than give them a generic name how about
- publishers
cd ~/catkin_ws/src
catkin_create_pkg my_publisher_example_pkg rospy std_msgs
- subscribers
cd ~/catkin_ws/src
catkin_create_pkg my_subscriber_example_pkg rospy std_msgs