Follow the path
Now we can undock and follow the created path. In this example we use the
behaviour, but this can easily be replaced with
.
navigator.undock()
navigator.startFollowWaypoints(goal_pose)
navigator.dock()
We finish the example by docking the robot. This assumes that the last pose in the created path
is near the dock. If it is not, you can remove this action.
Creating a path with Rviz
Running this example will look something like this:
Creating a path and following it
Note
As the path is created, you will see the robot being placed at the position you click on. This is
normal and gets cleared up when the initial pose is set by the TurtleBot 4 Navigator.
Summary of Contents for TurtleBot 4 Lite
Page 50: ...Running the Light Ring test...
Page 61: ...Adding Displays in Rviz2...
Page 63: ...Camera image displayed in Rviz2...
Page 82: ...TurtleBot 4 Lite with a NED2 arm...
Page 147: ...Color camera diagnostics...