2024-10-01 19:54:17 +08:00
|
|
|
# Unitree A1 Description
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +08:00
|
|
|
This repository contains the urdf model of A1.
|
|
|
|
|
2024-10-10 22:44:32 +08:00
|
|
|
![A1](../../../.images/a1.png)
|
2024-10-01 19:54:17 +08:00
|
|
|
|
|
|
|
Tested environment:
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +08:00
|
|
|
* Ubuntu 24.04
|
|
|
|
* ROS2 Jazzy
|
|
|
|
|
|
|
|
## Build
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +08:00
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
2024-10-08 21:36:42 +08:00
|
|
|
colcon build --packages-up-to a1_description --symlink-install
|
2024-10-01 19:54:17 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Visualize the robot
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +08:00
|
|
|
To visualize and check the configuration of the robot in rviz, simply launch:
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +08:00
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch a1_description visualize.launch.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Launch ROS2 Control
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-08 21:36:42 +08:00
|
|
|
### Mujoco Simulator
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-01 19:54:17 +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 pkg_description:=a1_description
|
2024-10-01 19:54:17 +08:00
|
|
|
```
|
|
|
|
* OCS2 Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-18 11:47:31 +08:00
|
|
|
ros2 launch ocs2_quadruped_controller mujoco.launch.py pkg_description:=a1_description
|
2024-10-01 19:54:17 +08:00
|
|
|
```
|
2024-10-10 21:22:58 +08:00
|
|
|
* RL Quadruped Controller
|
2024-10-04 20:14:34 +08:00
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-21 17:40:42 +08:00
|
|
|
ros2 launch rl_quadruped_controller mujoco.launch.py pkg_description:=a1_description
|
2024-10-04 20:14:34 +08:00
|
|
|
```
|
2024-10-08 21:36:42 +08:00
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
### Gazebo Classic 11 (ROS2 Humble)
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-08 21:36:42 +08:00
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-24 21:02:55 +08:00
|
|
|
ros2 launch unitree_guide_controller gazebo_classic.launch.py pkg_description:=a1_description height:=0.43
|
2024-10-17 21:45:48 +08:00
|
|
|
```
|
2024-10-24 21:02:55 +08:00
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
### Gazebo Harmonic (ROS2 Jazzy)
|
2024-10-20 12:42:34 +08:00
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-20 12:42:34 +08:00
|
|
|
ros2 launch unitree_guide_controller gazebo.launch.py pkg_description:=a1_description height:=0.43
|
2024-10-08 21:36:42 +08:00
|
|
|
```
|
2024-10-10 21:22:58 +08:00
|
|
|
* RL Quadruped Controller
|
2024-10-08 21:36:42 +08:00
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-21 21:47:25 +08:00
|
|
|
ros2 launch rl_quadruped_controller gazebo.launch.py pkg_description:=a1_description height:=0.43
|
2024-10-08 21:36:42 +08:00
|
|
|
```
|