Author: Logan Boswell
The turtle_control package provides a way to drive a turtle through a set of waypoints in turtlesim
- Use
ros2 launch turtle_control waypoints.launch.xml
to run the code - The
ros2 service call /load turtle_interfaces/srv/Waypoints "{waypoints: [{x: 1.4, y: 1.6}, {x: 2.2, y: 9.4}, {x: 7.2, y: 6.1}, {x: 4.0, y: 2.6}, {x: 8.2, y: 1.5}, {x: 4.1, y: 5.3}]}"
service loads waypoints for the turtle to follow - The
ros2 service call /toggle std_srvs/srv/Empty
starts and stops the turtle. - Here is a video of the turtle in action with the commands above.
turtlesim_with_control.webm
- When using the turtle.bag data in a new turtlesim window, the turtle tries to complete the same movements as in the video, but runs into the walls of the window since the turtle is not starting from the same location as the first waypoint in the video