2024-09-30 17:48:59 +08:00
|
|
|
# Unitree B2 Description
|
|
|
|
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
|
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to b2_description
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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 b2_description visualize.launch.py
|
|
|
|
```
|
|
|
|
|
|
|
|
## Launch ROS2 Control
|
|
|
|
* Unitree Guide Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch b2_description unitree_guide.launch.py
|
|
|
|
```
|
|
|
|
* OCS2 Quadruped Controller
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 launch b2_description ocs2_control.launch.py
|
|
|
|
```
|
|
|
|
|
|
|
|
|