2024-10-14 22:30:40 +08:00
|
|
|
# DeepRobotics X30 Description
|
|
|
|
This repository contains the urdf model of x30.
|
|
|
|
|
|
|
|
![x30](../../../.images/x30.png)
|
|
|
|
|
|
|
|
Tested environment:
|
|
|
|
* Ubuntu 24.04
|
|
|
|
* ROS2 Jazzy
|
|
|
|
|
|
|
|
## Build
|
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to x30_description --symlink-install
|
|
|
|
```
|
|
|
|
|
|
|
|
## Visualize the robot
|
|
|
|
To visualize and check the configuration of the robot in rviz, simply launch:
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch x30_description visualize.launch.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Launch ROS2 Control
|
2024-10-17 21:45:48 +08:00
|
|
|
### Mujoco Simulator
|
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch unitree_guide_controller mujoco.launch.py pkg_description:=x30_description
|
|
|
|
```
|
2024-10-18 16:23:49 +08:00
|
|
|
* OCS2 Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch ocs2_quadruped_controller mujoco.launch.py pkg_description:=x30_description
|
|
|
|
```
|
2024-10-14 22:30:40 +08:00
|
|
|
|
|
|
|
### Gazebo Simulator
|
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-10-17 21:45:48 +08:00
|
|
|
ros2 launch x30_description gazebo.launch.py
|
2024-10-14 22:30:40 +08:00
|
|
|
```
|
|
|
|
* Legged Gym Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch x30_description gazebo_rl_control.launch.py
|
|
|
|
```
|