Skip to content

Commit 4553d0f

Browse files
authoredMar 14, 2025
add box collision mesh and explicit contacts list (#3)
1 parent 9fc6055 commit 4553d0f

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed
 

‎kbot-feet/robot.mjcf

+5
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@
204204
<motor name="right_ankle_02_ctrl" joint="right_ankle_02" class="motor_02" />
205205
</actuator>
206206

207+
<contact>
208+
<pair geom1="foot1_collision_box" geom2="floor" />
209+
<pair geom1="foot3_collision_box" geom2="floor" />
210+
</contact>
211+
207212
<sensor>
208213
<accelerometer name="imu_acc" site="imu_site" noise="0.01" />
209214
<gyro name="imu_gyro" site="imu_site" noise="0.01" />

‎kbot-v2-feet/robot.mjcf

+7-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@
141141
<body name="KB_D_501R_R_LEG_FOOT" pos="-0.031300 0.292500 0.034000">
142142
<joint name="right_ankle_02" type="hinge" class="motor_02" range="-0.296706 0.785398" axis="0 0 1" />
143143
<inertial pos="-0.013265 0.028578 -0.016056" mass="0.492747" diaginertia="0.000283 0.00156 0.001485" />
144-
<geom name="KB_D_501R_R_LEG_FOOT_collision" type="mesh" mesh="KB_D_501R_R_LEG_FOOT.collision.stl" class="collision" />
145144
<geom name="KB_D_501R_R_LEG_FOOT_visual" material="KB_D_501R_R_LEG_FOOT_material" type="mesh" mesh="KB_D_501R_R_LEG_FOOT.stl" class="visual" />
145+
<geom name="KB_D_501R_R_LEG_FOOT_collision_box" type="box" pos="-0.028565 0.014366 -0.014000" size="0.105479 0.035873 0.036000" class="collision" />
146146
</body>
147147
</body>
148148
</body>
@@ -167,8 +167,8 @@
167167
<body name="KB_D_501L_L_LEG_FOOT" pos="-0.031300 -0.292500 -0.057200">
168168
<joint name="left_ankle_02" type="hinge" class="motor_02" range="-0.785398 0.296706" axis="0 0 1.0" />
169169
<inertial pos="-0.013265 -0.028578 0.011944" mass="0.492748" diaginertia="0.000283 0.00156 0.001485" />
170-
<geom name="KB_D_501L_L_LEG_FOOT_collision" type="mesh" mesh="KB_D_501L_L_LEG_FOOT.collision.stl" class="collision" />
171170
<geom name="KB_D_501L_L_LEG_FOOT_visual" material="KB_D_501R_R_LEG_FOOT_material" type="mesh" mesh="KB_D_501L_L_LEG_FOOT.stl" class="visual" />
171+
<geom name="KB_D_501L_L_LEG_FOOT_collision_box" type="box" pos="-0.028403 -0.014436 0.014000" size="0.105488 0.036200 0.036000" class="collision" />
172172
</body>
173173
</body>
174174
</body>
@@ -209,6 +209,11 @@
209209
<motor name="left_ankle_02_ctrl" joint="left_ankle_02" class="motor_02" />
210210
</actuator>
211211

212+
<contact>
213+
<pair geom1="KB_D_501R_R_LEG_FOOT_collision_box" geom2="floor" />
214+
<pair geom1="KB_D_501L_L_LEG_FOOT_collision_box" geom2="floor" />
215+
</contact>
216+
212217
<sensor>
213218
<accelerometer name="imu_acc" site="imu_site" noise="0.01" />
214219
<gyro name="imu_gyro" site="imu_site" noise="0.01" />

‎zbot-feet/robot.mjcf

+7-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
<body name="FOOT" pos="0.100000 0 0.000800" quat="-1.2247452309842457e-07 -0.7071068967259713 -0.7071066656470838 -1.22474483074382e-07">
122122
<joint name="left_ankle" type="hinge" class="motor" range="-1.570796 1.570796" axis="0 0 1" />
123123
<inertial pos="-0.015078 0.027835 0.018700" mass="0.278140" diaginertia="4.5e-05 0.000205 0.000182" />
124-
<geom name="FOOT_collision" type="mesh" mesh="FOOT.collision.stl" class="collision" />
125124
<geom name="FOOT_visual" material="L_ARM_MIRROR_1_material" type="mesh" mesh="FOOT.stl" class="visual" />
125+
<geom name="FOOT_collision_box" type="box" pos="-0.016074 0.012925 0.018700" size="0.044935 0.022707 0.020220" class="collision" />
126126
</body>
127127
</body>
128128
</body>
@@ -147,8 +147,8 @@
147147
<body name="FOOT_2" pos="0.100000 0 0.001000" quat="-1.2247452309842457e-07 -0.7071068967259713 0.7071066656470838 1.22474483074382e-07">
148148
<joint name="right_ankle" type="hinge" class="motor" range="-1.570796 1.570796" axis="0 0 1" />
149149
<inertial pos="-0.015078 -0.027835 0.018700" mass="0.278140" diaginertia="4.5e-05 0.000205 0.000182" />
150-
<geom name="FOOT_2_collision" type="mesh" mesh="FOOT_2.collision.stl" class="collision" />
151150
<geom name="FOOT_2_visual" material="L_ARM_MIRROR_1_material" type="mesh" mesh="FOOT_2.stl" class="visual" />
151+
<geom name="FOOT_2_collision_box" type="box" pos="-0.016015 -0.012928 0.018700" size="0.044976 0.022733 0.020220" class="collision" />
152152
</body>
153153
</body>
154154
</body>
@@ -182,6 +182,11 @@
182182
<motor name="right_ankle_ctrl" joint="right_ankle" class="motor" />
183183
</actuator>
184184

185+
<contact>
186+
<pair geom1="FOOT_collision_box" geom2="floor" />
187+
<pair geom1="FOOT_2_collision_box" geom2="floor" />
188+
</contact>
189+
185190
<sensor>
186191
<accelerometer name="IMU_acc" site="IMU_site" noise="0.01" />
187192
<gyro name="IMU_gyro" site="IMU_site" noise="0.01" />

0 commit comments

Comments
 (0)
Please sign in to comment.