2024-10-01 13:48:49 +08:00
|
|
|
# Robot Descriptions
|
|
|
|
|
2024-10-10 10:23:54 +08:00
|
|
|
This folder contains the URDF and SRDF files for the quadruped robot.
|
2024-10-01 13:48:49 +08:00
|
|
|
|
|
|
|
* Unitree
|
2024-10-10 10:23:54 +08:00
|
|
|
* [Go1](unitree/go1_description/)
|
|
|
|
* [Go2](unitree/go2_description/)
|
|
|
|
* [A1](unitree/a1_description/)
|
|
|
|
* [Aliengo](unitree/aliengo_description/)
|
|
|
|
* [B2](unitree/b2_description/)
|
2024-10-01 13:48:49 +08:00
|
|
|
* Xiaomi
|
2024-10-10 10:23:54 +08:00
|
|
|
* [Cyberdog](xiaomi/cyberdog_description/)
|
2024-10-10 21:22:58 +08:00
|
|
|
* Deep Robotics
|
|
|
|
* [Lite 3](deep_robotics/lite3_description/)
|
2024-10-14 22:30:40 +08:00
|
|
|
* [X30](deep_robotics/x30_description/)
|
2024-10-18 22:37:36 +08:00
|
|
|
* Anybotics
|
|
|
|
* [Anymal C](anybotics/anymal_c_description/)
|
2024-10-01 13:48:49 +08:00
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
## 1. Steps to transfer urdf to Mujoco model
|
2024-10-10 10:23:54 +08:00
|
|
|
|
2024-10-01 13:48:49 +08:00
|
|
|
* Install [Mujoco](https://github.com/google-deepmind/mujoco)
|
|
|
|
* Transfer the mesh files to mujoco supported format, like stl.
|
2024-10-10 10:23:54 +08:00
|
|
|
* Adjust the urdf tile to match the mesh file. Transfer the mesh file from .dae to .stl may change the scale size of the
|
|
|
|
mesh file.
|
2024-10-01 13:48:49 +08:00
|
|
|
* use `xacro` to generate the urdf file.
|
|
|
|
```
|
|
|
|
xacro robot.xacro > ../urdf/robot.urdf
|
|
|
|
```
|
|
|
|
* use mujoco to convert the urdf file to mujoco model.
|
|
|
|
```
|
|
|
|
compile robot.urdf robot.xml
|
2024-10-10 10:23:54 +08:00
|
|
|
```
|
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
## 2. Dependencies for Gazebo Simulation
|
2024-10-10 21:22:58 +08:00
|
|
|
|
2024-10-17 21:45:48 +08:00
|
|
|
Gazebo Simulation only tested on ROS2 Jazzy. It add support for ROS2 Humble because the package name is different.
|
2024-10-10 21:22:58 +08:00
|
|
|
|
2024-10-10 10:23:54 +08:00
|
|
|
* Gazebo Harmonic
|
|
|
|
```bash
|
|
|
|
sudo apt-get install ros-jazzy-ros-gz
|
|
|
|
```
|
|
|
|
* Ros2-Control for Gazebo
|
|
|
|
```bash
|
|
|
|
sudo apt-get install ros-jazzy-gz-ros2-control
|
|
|
|
```
|
2024-10-17 21:45:48 +08:00
|
|
|
* Legged PD Controller
|
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to leg_pd_controller
|
|
|
|
```
|
|
|
|
|
|
|
|
## 2. Dependencies for Gazebo Classic Simulation
|
|
|
|
|
|
|
|
Gazebo Classic (Gazebo11) Simulation only tested on ROS2 Humble.
|
|
|
|
|
|
|
|
* Gazebo Classic
|
|
|
|
```bash
|
|
|
|
sudo apt-get install ros-humble-gazebo-ros
|
|
|
|
```
|
|
|
|
* Ros2-Control for Gazebo
|
|
|
|
```bash
|
|
|
|
sudo apt-get install ros-humble-gazebo-ros2-control
|
|
|
|
```
|
2024-10-10 10:23:54 +08:00
|
|
|
* Legged PD Controller
|
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to leg_pd_controller
|
|
|
|
```
|