From b26e6f5a6db03bd3c9ca4c9b714b41c26f2aea73 Mon Sep 17 00:00:00 2001 From: sljunkie Date: Mon, 1 Dec 2025 09:53:07 -0300 Subject: [PATCH] Istructions for ROS2 build --- README.md | 36 +++++++++++++++--------------------- meshes/calf.dae | 0 meshes/calf_mirror.dae | 0 meshes/foot.dae | 0 meshes/hip.dae | 0 meshes/thigh.dae | 0 meshes/thigh_mirror.dae | 0 meshes/trunk.dae | 0 xacro/const.xacro | 0 xacro/leg.xacro | 0 xacro/materials.xacro | 0 xacro/robot.xacro | 0 xacro/transmission.xacro | 0 13 files changed, 15 insertions(+), 21 deletions(-) mode change 100755 => 100644 meshes/calf.dae mode change 100755 => 100644 meshes/calf_mirror.dae mode change 100755 => 100644 meshes/foot.dae mode change 100755 => 100644 meshes/hip.dae mode change 100755 => 100644 meshes/thigh.dae mode change 100755 => 100644 meshes/thigh_mirror.dae mode change 100755 => 100644 meshes/trunk.dae mode change 100755 => 100644 xacro/const.xacro mode change 100755 => 100644 xacro/leg.xacro mode change 100755 => 100644 xacro/materials.xacro mode change 100755 => 100644 xacro/robot.xacro mode change 100755 => 100644 xacro/transmission.xacro diff --git a/README.md b/README.md index 357633c..274aab1 100644 --- a/README.md +++ b/README.md @@ -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 //src -cd // - -# Initialize the catkin workspace -catkin init +mkdir -p //src +cd // ``` Clone this library: ``` # Navigate to the directory of src # Do not forget to change <...> parts -cd //src +cd //src git clone git@github.com:unitreerobotics/go2_urdf.git ``` Build: ``` # Build it -catkin build +colcon build --symlink-install # Source it -source //devel/setup.bash +source //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. diff --git a/meshes/calf.dae b/meshes/calf.dae old mode 100755 new mode 100644 diff --git a/meshes/calf_mirror.dae b/meshes/calf_mirror.dae old mode 100755 new mode 100644 diff --git a/meshes/foot.dae b/meshes/foot.dae old mode 100755 new mode 100644 diff --git a/meshes/hip.dae b/meshes/hip.dae old mode 100755 new mode 100644 diff --git a/meshes/thigh.dae b/meshes/thigh.dae old mode 100755 new mode 100644 diff --git a/meshes/thigh_mirror.dae b/meshes/thigh_mirror.dae old mode 100755 new mode 100644 diff --git a/meshes/trunk.dae b/meshes/trunk.dae old mode 100755 new mode 100644 diff --git a/xacro/const.xacro b/xacro/const.xacro old mode 100755 new mode 100644 diff --git a/xacro/leg.xacro b/xacro/leg.xacro old mode 100755 new mode 100644 diff --git a/xacro/materials.xacro b/xacro/materials.xacro old mode 100755 new mode 100644 diff --git a/xacro/robot.xacro b/xacro/robot.xacro old mode 100755 new mode 100644 diff --git a/xacro/transmission.xacro b/xacro/transmission.xacro old mode 100755 new mode 100644