$ rosrun turtlesim turtlesim_node
If you don't have it, install it:
$ sudo apt-get install ros-indigo-turtlesim
Create a node that publishes velocity commands to the _turtlesim_node for moving the turtle. Check into which topic you need to publish and how the message should be built. The commands should be taken from the terminal.
We will create a node responsible for moving the turtle to a specific _x,y pose. The node should follow this behavior:
- Take the goal pose and a tolerance value from the terminal.
- Once a goal pose is read, check the current pose to determine the velocity in the _x and _y axis (you can ignore the orientation).
- Move the turtle until the current pose is within the tolerance value from the goal pose.
- Stop the turtle and ask for a new pose.