Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 15 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,48 @@
## go2_urdf
This repository contains the urdf model of go2.
This repository contains the urdf/xacro model of go2.


## Build the library
Create a new catkin workspace:
Create a new workspace:
```
# Create the directories
# Do not forget to change <...> parts
mkdir -p <directory_to_ws>/<catkin_ws_name>/src
cd <directory_to_ws>/<catkin_ws_name>/

# Initialize the catkin workspace
catkin init
mkdir -p <directory_to_ws>/<ws_name>/src
cd <directory_to_ws>/<ws_name>/
```

Clone this library:
```
# Navigate to the directory of src
# Do not forget to change <...> parts
cd <directory_to_ws>/<catkin_ws_name>/src
cd <directory_to_ws>/<ws_name>/src
git clone git@github.com:unitreerobotics/go2_urdf.git
```

Build:
```
# Build it
catkin build
colcon build --symlink-install

# Source it
source <directory_to_ws>/<catkin_ws_name>/devel/setup.bash
source <directory_to_ws>/<ws_name>/devel/setup.bash
```



## Run the library
```
# Show urdf model of go2 in Rviz
# Show the go2 model in Rviz
roslaunch go2_description go2_rviz.launch

```

## When used for isaac gym or other similiar engine
## Note - isaac gym (or other similiar engine) usage

Collision parameters in urdf can be amended to better train the robot:

Open "go2_description.urdf" in "./go2_description/urdf",
and amend the ` box size="0.213 0.0245 0.034" ` in links of "FL_thigh", "FR_thigh", "RL_thigh", "RR_thigh".

For example, change previous values to ` box size="0.11 0.0245 0.034" ` means the length of the thigh is shortened from 0.213 to 0.11, which can avoid unnecessary collision between the thigh link and the calf link.

The collision model before and after the above amendment are shown as "Normal_collision_model.png" and "Amended_collision_model.png" respectively.

Open "go2_description.urdf" in "./go2_description/urdf" and amend
`box size="0.213 0.0245 0.034"` in the "FL_thigh", "FR_thigh", "RL_thigh",
"RR_thigh" links.

For example, changing to `box size="0.11 0.0245 0.034"` shortens the length of
the thigh is shortened from 0.213 to 0.11, which may avoid unnecessary collisions
between the thigh link and the calf link.
Empty file modified meshes/calf.dae
100755 → 100644
Empty file.
Empty file modified meshes/calf_mirror.dae
100755 → 100644
Empty file.
Empty file modified meshes/foot.dae
100755 → 100644
Empty file.
Empty file modified meshes/hip.dae
100755 → 100644
Empty file.
Empty file modified meshes/thigh.dae
100755 → 100644
Empty file.
Empty file modified meshes/thigh_mirror.dae
100755 → 100644
Empty file.
Empty file modified meshes/trunk.dae
100755 → 100644
Empty file.
Empty file modified xacro/const.xacro
100755 → 100644
Empty file.
Empty file modified xacro/leg.xacro
100755 → 100644
Empty file.
Empty file modified xacro/materials.xacro
100755 → 100644
Empty file.
Empty file modified xacro/robot.xacro
100755 → 100644
Empty file.
Empty file modified xacro/transmission.xacro
100755 → 100644
Empty file.