2024-09-09 22:18:19 +08:00
|
|
|
# Unitree Go2 Description
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-09 22:18:19 +08:00
|
|
|
This repository contains the urdf model of go2.
|
|
|
|
|
2024-10-01 13:48:49 +08:00
|
|
|

|
2024-09-30 20:02:56 +08:00
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
Tested environment:
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
* Ubuntu 24.04
|
2024-10-10 22:44:32 +08:00
|
|
|
* ROS2 Jazzy
|
2024-09-20 15:39:50 +08:00
|
|
|
* Ubuntu 22.04
|
2024-10-10 22:44:32 +08:00
|
|
|
* ROS2 Humble
|
2024-09-09 22:18:19 +08:00
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
## 1. Build
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-09 22:18:19 +08:00
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
2024-10-10 10:23:54 +08:00
|
|
|
colcon build --packages-up-to go2_description --symlink-install
|
2024-09-09 22:18:19 +08:00
|
|
|
```
|
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
## 2. Visualize the robot
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-09 22:18:19 +08:00
|
|
|
To visualize and check the configuration of the robot in rviz, simply launch:
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-09 22:18:19 +08:00
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch go2_description visualize.launch.py
|
|
|
|
```
|
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
## 3. Launch ROS2 Control
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
### 3.1 Mujoco Simulator
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-09-25 21:01:50 +08:00
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-17 21:45:48 +08:00
|
|
|
ros2 launch unitree_guide_controller mujoco.launch.py
|
2024-09-25 21:01:50 +08:00
|
|
|
```
|
|
|
|
* OCS2 Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-21 21:47:25 +08:00
|
|
|
ros2 launch ocs2_quadruped_controller mujoco.launch.py
|
2024-09-25 21:01:50 +08:00
|
|
|
```
|
2024-10-10 21:22:58 +08:00
|
|
|
* RL Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-21 21:47:25 +08:00
|
|
|
ros2 launch rl_quadruped_controller mujoco.launch.py
|
2024-10-10 21:22:58 +08:00
|
|
|
```
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
### 3.2 Gazebo Classic 11 (ROS2 Humble)
|
2024-10-17 21:45:48 +08:00
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch unitree_guide_controller gazebo_classic.launch.py
|
|
|
|
```
|
|
|
|
|
2025-02-23 01:19:51 +08:00
|
|
|
### 3.3 Gazebo Harmonic (ROS2 Jazzy)
|
2024-10-10 22:44:32 +08:00
|
|
|
|
2024-10-10 10:23:54 +08:00
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-17 21:45:48 +08:00
|
|
|
ros2 launch unitree_guide_controller gazebo.launch.py
|
2024-10-10 10:23:54 +08:00
|
|
|
```
|
2025-03-01 22:08:59 +08:00
|
|
|
* OCS2 Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch ocs2_quadruped_controller gazebo.launch.py
|
|
|
|
```
|
2024-10-10 21:22:58 +08:00
|
|
|
* RL Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch go2_description gazebo_rl_control.launch.py
|
|
|
|
```
|
2024-10-10 22:44:32 +08:00
|
|
|
|