Go2Py_SIM/docker/scripts/install-unitree-ros2.sh

15 lines
438 B
Bash
Raw Normal View History

2024-05-04 08:51:20 +08:00
#!/bin/bash
set -e
2024-05-05 02:03:03 +08:00
apt-get install -y ros-humble-rmw-cyclonedds-cpp ros-humble-rosidl-generator-dds-idl
2024-05-04 08:51:20 +08:00
cd ~
2024-05-04 08:51:20 +08:00
git clone https://github.com/unitreerobotics/unitree_ros2
2024-05-05 02:03:03 +08:00
cd unitree_ros2/cyclonedds_ws/src
2024-05-04 08:51:20 +08:00
git clone https://github.com/ros2/rmw_cyclonedds -b humble
2024-05-05 02:03:03 +08:00
git clone https://github.com/eclipse-cyclonedds/cyclonedds -b releases/0.10.x
cd ..
colcon build --packages-select cyclonedds
source /opt/ros/humble/setup.bash
colcon build