2024-09-10 22:30:30 +08:00
|
|
|
# Unitree Guide Controller
|
|
|
|
|
2024-09-20 15:29:44 +08:00
|
|
|
This is a ros2-control controller based on unitree guide. The original unitree guide project could be
|
|
|
|
found [here](https://github.com/unitreerobotics/unitree_guide). I used KDL for the kinematic and dynamic calculation, so
|
|
|
|
the controller performance has difference with the original one (sometimes very unstable).
|
2024-09-10 22:30:30 +08:00
|
|
|
|
2024-09-20 17:56:00 +08:00
|
|
|
Tested environment:
|
|
|
|
* Ubuntu 24.04
|
|
|
|
* ROS2 Jazzy
|
|
|
|
* Ubuntu 22.04
|
|
|
|
* ROS2 Humble
|
|
|
|
|
2024-09-30 17:48:59 +08:00
|
|
|
[![](http://i1.hdslb.com/bfs/archive/310e6208920985ac43015b2da31c01ec15e2c5f9.jpg)](https://www.bilibili.com/video/BV1aJbAeZEuo/)
|
2024-09-20 17:56:00 +08:00
|
|
|
|
2024-09-20 15:29:44 +08:00
|
|
|
## 1. Interfaces
|
|
|
|
|
|
|
|
Required hardware interfaces:
|
|
|
|
|
|
|
|
* command:
|
|
|
|
* joint position
|
|
|
|
* joint velocity
|
|
|
|
* joint effort
|
|
|
|
* KP
|
|
|
|
* KD
|
|
|
|
* state:
|
|
|
|
* joint effort
|
|
|
|
* joint position
|
|
|
|
* joint velocity
|
|
|
|
* imu sensor
|
|
|
|
* linear acceleration
|
|
|
|
* angular velocity
|
|
|
|
* orientation
|
|
|
|
|
|
|
|
## 2. Build
|
2024-09-10 22:30:30 +08:00
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to unitree_guide_controller
|
|
|
|
```
|
|
|
|
|
2024-09-20 15:29:44 +08:00
|
|
|
## 3. Run
|
|
|
|
* [Go2 in mujoco simulation](../../descriptions/go2_description)
|
|
|
|
* [Go1/A1 in gazebo simulation](../../descriptions/quadruped_gazebo)
|