ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You end up creating the package rather than importing it. I have no trouble seeing the code snippets on the page you linked, here's a screenshot:

image description

You end up creating the package rather than importing it. I have no trouble seeing the code snippets on the page you linked, here's a screenshot:linked, so I've copy and pasted them below:

image descriptionFirst of all, we have to create a new package.

$ cd ~/catkin_ws/src
$ catkin_create_pkg turtlesim_cleaner geometry_msgs rospy

Now, build your workspace

#At your catkin workspace
$ cd ~/catkin_ws
$ catkin_make

And now, create a a src folder for your scripts

$ cd ~/catkin_ws/src/turtlesim_cleaner
$ mkdir src
$ cd ~/catkin_ws
$ catkin_make

Edit: transcribed the Wiki page rather than screenshot