General Setup for ROS 1
Setting up Husky A200 with kinetic: https://youtu.be/wA8UTF0mKBY
ROS 2 Tips and Tricks
Creating setup.bash
for robot.yaml
Off-board computer setup: https://docs.clearpathrobotics.com/docs/ros/networking/ros2-networking#off
generate bash from robot.yaml
Starting Clearpath ROS Discovery Server
First navigate to your husky configuration directory on your laptop and create server bash file:
Then launch the server:
Viewing Robot
If you want to view the current husky configuration and make changes while watching what happens without reloading everything then run this command:
If you want to see nav2 and the nav2 map for the robot run this command:
SLAM
To start SLAM and Nav2 set up the locker98 workspace that has all the launch files for SLAM and Nav2:
Viewing the SLAM Map:
Saving the SLAM map:
Nav2
Nav2 allows you to navigate through a pre created map and go to different locations. To launch this first start the localization:
ros2 launch locker98_tools_bringup husky.localization.launch.py setup_path:=$HOME/husky1/ map:=$HOME/husky1/rhodes1.yaml
Then launch Nav2
Finally, you can run Rviz to see the nav2 map and send nav2 goals
Discovery
If you are having trouble with the Husky being discovered by the laptop make sure all the hostname's and ip's are set and in /etc/hosts. Use this page for setting up discovery server correctly.
Updating robot.yaml
Every time you update the robot.yaml or other settings on the Husky A200 you have to restart robot or run sudo systemctl restart clearpath-robot.service
to restart the Clearpath daemon and create the new configuration files. These files are usually found in /etc/clearpath
and there is some documentation on this here