quadruped_ros2_control/descriptions/unitree/b2_description/README.md

45 lines
942 B
Markdown
Raw Normal View History

2024-09-30 17:48:59 +08:00
# Unitree B2 Description
2024-10-10 22:44:32 +08:00
2024-09-30 17:48:59 +08:00
This repository contains the urdf model of b2.
2024-10-01 13:48:49 +08:00
![B2](../../../.images/b2.png)
2024-09-30 17:48:59 +08:00
## Build
2024-10-10 22:44:32 +08:00
2024-09-30 17:48:59 +08:00
```bash
cd ~/ros2_ws
2024-10-10 22:44:32 +08:00
colcon build --packages-up-to b2_description --symlink-install
2024-09-30 17:48:59 +08:00
```
## Visualize the robot
2024-10-10 22:44:32 +08:00
2024-09-30 17:48:59 +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-30 17:48:59 +08:00
```bash
source ~/ros2_ws/install/setup.bash
ros2 launch b2_description visualize.launch.py
```
## Launch ROS2 Control
2024-10-10 22:44:32 +08:00
### Mujoco Simulator
2024-09-30 17:48:59 +08:00
* Unitree Guide Controller
```bash
source ~/ros2_ws/install/setup.bash
ros2 launch unitree_guide_controller mujoco.launch.py pkg_description:=b2_description
2024-09-30 17:48:59 +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:=b2_description
2024-09-30 17:48:59 +08:00
```
2024-10-18 11:47:31 +08:00
2024-10-10 22:44:32 +08:00
### Gazebo Simulator
2024-09-30 17:48:59 +08:00
2024-10-10 22:44:32 +08:00
* Unitree Guide Controller
```bash
source ~/ros2_ws/install/setup.bash
ros2 launch b2_description gazebo.launch.py
2024-10-10 22:44:32 +08:00
```