This repository is for making ROS2 docker on Unitree robots (Jetson ARM64)
Docker container include ROS2humble, and necesarry packages for control Unitree robots with Low-Level (i checked Go2 and G1)
- https://github.com/hrjp/rosenv
- https://github.com/IntelRealSense/realsense-ros
- https://github.com/unitreerobotics/unitree_ros2
- https://github.com/jetsonhacksnano/installLibrealsense
- https://github.com/ros2/rosidl_dds.git
git clone https://github.com/KobeKosenRobotics/rosenv_for_unitree- Check Jetpack of your Jetson
cat /etc/nv_tegra_releasecd rosenv_for_unitree/docker
docker build . -t unitree/ros2:humblecd
chmod +x rosenv_for_unitree/docker/run.bash
./rosenv_for_unitree/docker/run.bashcd /home/colcon_ws/src/
git clone https://github.com/jetsonhacksnano/installLibrealsense
cd installLibrealsense/
./installLibrealsense.sh# If your docker can use CUDA, this step can be skipped
vi buildLibrealsense.sh# And then, replace the row of 10,35 like this
# 10 USE_CUDA=false
# 35 USE_CUDA=false./buildLibrealsense.sh- Check Realsense connections
#If you want to check the connection with realsense camera, execute below
#realsense-viewercd /home/colcon_ws/src
git clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-master
git clone https://github.com/unitreerobotics/unitree_ros2.gitcd /home/colcon_ws
sudo apt-get install python3-rosdep -y
sudo apt install ros-$ROS_DISTRO-rmw-cyclonedds-cpp
sudo apt install ros-$ROS_DISTRO-rosidl-generator-dds-idl
sudo apt install libyaml-cpp-dev
sudo rosdep init # "sudo rosdep init --include-eol-distros" for Foxy and earlier
rosdep update # "sudo rosdep update --include-eol-distros" for Foxy and earlier
rosdep install -i --from-path src --rosdistro $ROS_DISTRO --skip-keys=librealsense2 -ysource /opt/ros/humble/setup.bashcolcon build
source install/setup.bash