Navigation
Complete robot configuration and connect a
visualization tool before navigation. Create a map first
using Mapping, then replace <namespace> with the robot's
namespace.
Keep the operating area clear and be ready to stop the robot. Confirm the displayed map and robot pose before sending a goal.
Start navigation
Set autonomy.indoor.slam.enabled to false and
autonomy.indoor.localization.map to the saved map YAML filename in
/etc/clearpath/robot.yaml. At the referenced package revision, the launch file
resolves this map within the package's maps directory.
When the robot starts with these settings, IndoorNav launches automatically in navigation/localization mode.
Restart the service to apply the configuration:
sudo systemctl restart clearpath-robot.service
The model's platform.extras configuration launches
indoor_navigation.launch.py automatically through the Clearpath platform
extras job.
Set the initial pose
Set the robot's initial pose in the map frame using any of these methods:
- Use RViz2's 2D Pose Estimate tool.
- Use the Foxglove 3D panel's Publish tool.
- Publish the initial pose through the ROS 2 API to
/<namespace>/initialpose.
Check that the laser scans align with the saved map before continuing. Localization may require controlled robot motion in X, Y, or yaw to converge. See the upstream initialization demonstration.
Send a goal
Set the initial pose before sending a goal. Once localization is confirmed, send a goal using any of these methods:
- Use RViz2's 2D Goal Pose tool.
- Use the Foxglove 3D panel's Publish tool.
- Publish the goal from the command line through the ROS 2 API to
/<namespace>/goal_pose.
Monitor the robot, its planned path, and surrounding obstacles throughout navigation.
The upstream goal demonstration shows the Foxglove workflow.
Return to mapping
To create another map, set autonomy.indoor.slam.enabled to true and restart
the service. See Mapping for the mapping and map-saving steps.
Review the corresponding mapping and navigation parameters.