Skip to content

Commit fc150eb

Browse files
committed
fix: update go2w asset to accelerated training
1 parent 4207530 commit fc150eb

2 files changed

Lines changed: 74 additions & 37 deletions

File tree

source/robot_lab/data/Robots/unitree/go2w_description/urdf/go2w_description.urdf

Lines changed: 70 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
<collision>
2929
<origin xyz="0 0 0" rpy="0 0 0" />
3030
<geometry>
31-
<cylinder radius="0.06" length="0.09" />
31+
<!-- <cylinder radius="0.06" length="0.09" /> -->
32+
<sphere radius="0.06" />
3233
</geometry>
3334
</collision>
3435
</link>
@@ -72,7 +73,8 @@
7273
<collision>
7374
<origin rpy="1.5707963267948966 0 0" xyz="0 0.08 0" />
7475
<geometry>
75-
<cylinder length="0.04" radius="0.046" />
76+
<!-- <cylinder length="0.04" radius="0.046" /> -->
77+
<sphere radius="0.046" />
7678
</geometry>
7779
</collision>
7880
</link>
@@ -127,7 +129,8 @@
127129
<collision>
128130
<origin rpy="0 -0.21 0" xyz="0.008 0 -0.06" />
129131
<geometry>
130-
<cylinder length="0.12" radius="0.012" />
132+
<!-- <cylinder length="0.12" radius="0.013" /> -->
133+
<box size="0.026 0.026 0.12" />
131134
</geometry>
132135
</collision>
133136
</link>
@@ -142,7 +145,8 @@
142145
<collision>
143146
<origin rpy="0 0 0" xyz="0 0 0" />
144147
<geometry>
145-
<cylinder length="0.065" radius="0.011" />
148+
<!-- <cylinder length="0.065" radius="0.011" /> -->
149+
<box size="0.022 0.022 0.065" />
146150
</geometry>
147151
</collision>
148152
</link>
@@ -156,7 +160,8 @@
156160
<collision>
157161
<origin rpy="0 0 0" xyz="0 0 0" />
158162
<geometry>
159-
<cylinder length="0.03" radius="0.0155" />
163+
<!-- <cylinder length="0.03" radius="0.0155" /> -->
164+
<box size="0.031 0.031 0.03" />
160165
</geometry>
161166
</collision>
162167
</link>
@@ -173,12 +178,12 @@
173178
<mass value="0.646" />
174179
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.0016" iyz="0" izz="0.001" />
175180
</inertial>
176-
<collision>
181+
<!-- <collision>
177182
<origin rpy="1.5707963267948966 0 0" xyz="0 0 0" />
178183
<geometry>
179184
<cylinder length="0.05" radius="0.05" />
180185
</geometry>
181-
</collision>
186+
</collision> -->
182187
</link>
183188

184189
<joint name="FL_foot_motor_joint" type="fixed">
@@ -201,11 +206,17 @@
201206
</geometry>
202207
<material name="黑色塑料_003-effect"><color rgba="0.023455 0.023455 0.023455 1" /></material>
203208
</visual>
204-
<collision>
209+
<!-- <collision>
205210
<origin rpy="0 0 0" xyz="0 0.0 0" />
206211
<geometry>
207212
<mesh filename="package://go2w_description/meshes/left_wheel.dae" />
208213
</geometry>
214+
</collision> -->
215+
<collision>
216+
<origin rpy="1.5707963267948966 0 0" xyz="0 0.048 0" />
217+
<geometry>
218+
<cylinder length="0.045" radius="0.086" />
219+
</geometry>
209220
</collision>
210221
</link>
211222
<joint name="FL_foot_joint" type="continuous">
@@ -232,7 +243,8 @@
232243
<collision>
233244
<origin rpy="1.5707963267948966 0 0" xyz="0 -0.08 0" />
234245
<geometry>
235-
<cylinder length="0.04" radius="0.046" />
246+
<!-- <cylinder length="0.04" radius="0.046" /> -->
247+
<sphere radius="0.046" />
236248
</geometry>
237249
</collision>
238250
</link>
@@ -287,7 +299,8 @@
287299
<collision>
288300
<origin rpy="0 -0.2 0" xyz="0.01 0 -0.06" />
289301
<geometry>
290-
<cylinder length="0.12" radius="0.013" />
302+
<!-- <cylinder length="0.12" radius="0.013" /> -->
303+
<box size="0.026 0.026 0.12" />
291304
</geometry>
292305
</collision>
293306
</link>
@@ -302,7 +315,8 @@
302315
<collision>
303316
<origin rpy="0 0 0" xyz="0 0 0" />
304317
<geometry>
305-
<cylinder length="0.065" radius="0.011" />
318+
<!-- <cylinder length="0.065" radius="0.011" /> -->
319+
<box size="0.022 0.022 0.065" />
306320
</geometry>
307321
</collision>
308322
</link>
@@ -316,7 +330,8 @@
316330
<collision>
317331
<origin rpy="0 0 0" xyz="0 0 0" />
318332
<geometry>
319-
<cylinder length="0.03" radius="0.0155" />
333+
<!-- <cylinder length="0.03" radius="0.0155" /> -->
334+
<box size="0.031 0.031 0.03" />
320335
</geometry>
321336
</collision>
322337
</link>
@@ -333,12 +348,12 @@
333348
<mass value="0.646" />
334349
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.0016" iyz="0" izz="0.001" />
335350
</inertial>
336-
<collision>
351+
<!-- <collision>
337352
<origin rpy="1.5707963267948966 0 0" xyz="0 0 0" />
338353
<geometry>
339354
<cylinder length="0.05" radius="0.05" />
340355
</geometry>
341-
</collision>
356+
</collision> -->
342357
</link>
343358

344359
<joint name="FR_foot_motor_joint" type="fixed">
@@ -361,11 +376,16 @@
361376
</geometry>
362377
<material name="黑色塑料_003-effect"><color rgba="0.023455 0.023455 0.023455 1" /></material>
363378
</visual>
364-
<collision>
379+
<!-- <collision>
365380
<origin rpy="0 0 0" xyz="0 -0.0 0" />
366381
<geometry>
367382
<mesh filename="package://go2w_description/meshes/right_wheel.dae" />
368-
383+
</geometry>
384+
</collision> -->
385+
<collision>
386+
<origin rpy="1.5707963267948966 0 0" xyz="0 -0.048 0" />
387+
<geometry>
388+
<cylinder length="0.045" radius="0.086" />
369389
</geometry>
370390
</collision>
371391
</link>
@@ -392,7 +412,8 @@
392412
<collision>
393413
<origin rpy="1.5707963267948966 0 0" xyz="0 0.08 0" />
394414
<geometry>
395-
<cylinder length="0.04" radius="0.046" />
415+
<!-- <cylinder length="0.04" radius="0.046" /> -->
416+
<sphere radius="0.046" />
396417
</geometry>
397418
</collision>
398419
</link>
@@ -447,7 +468,8 @@
447468
<collision>
448469
<origin rpy="0 -0.2 0" xyz="0.01 0 -0.06" />
449470
<geometry>
450-
<cylinder length="0.12" radius="0.013" />
471+
<!-- <cylinder length="0.12" radius="0.013" /> -->
472+
<box size="0.026 0.026 0.12" />
451473
</geometry>
452474
</collision>
453475
</link>
@@ -462,7 +484,8 @@
462484
<collision>
463485
<origin rpy="0 0 0" xyz="0 0 0" />
464486
<geometry>
465-
<cylinder length="0.065" radius="0.011" />
487+
<!-- <cylinder length="0.065" radius="0.011" /> -->
488+
<box size="0.022 0.022 0.065" />
466489
</geometry>
467490
</collision>
468491
</link>
@@ -476,7 +499,8 @@
476499
<collision>
477500
<origin rpy="0 0 0" xyz="0 0 0" />
478501
<geometry>
479-
<cylinder length="0.03" radius="0.0155" />
502+
<!-- <cylinder length="0.03" radius="0.0155" /> -->
503+
<box size="0.031 0.031 0.03" />
480504
</geometry>
481505
</collision>
482506
</link>
@@ -493,12 +517,12 @@
493517
<mass value="0.646" />
494518
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.0016" iyz="0" izz="0.001" />
495519
</inertial>
496-
<collision>
520+
<!-- <collision>
497521
<origin rpy="1.5707963267948966 0 0" xyz="0 0 0" />
498522
<geometry>
499523
<cylinder length="0.05" radius="0.05" />
500524
</geometry>
501-
</collision>
525+
</collision> -->
502526
</link>
503527

504528
<joint name="RL_foot_motor_joint" type="fixed">
@@ -522,11 +546,16 @@
522546
</geometry>
523547
<material name="黑色塑料_003-effect"><color rgba="0.023455 0.023455 0.023455 1" /></material>
524548
</visual>
525-
<collision>
549+
<!-- <collision>
526550
<origin rpy="0 0 0" xyz="0 0.0 0" />
527551
<geometry>
528552
<mesh filename="package://go2w_description/meshes/left_wheel.dae" />
529-
553+
</geometry>
554+
</collision> -->
555+
<collision>
556+
<origin rpy="1.5707963267948966 0 0" xyz="0 0.048 0" />
557+
<geometry>
558+
<cylinder length="0.045" radius="0.086" />
530559
</geometry>
531560
</collision>
532561
</link>
@@ -553,7 +582,8 @@
553582
<collision>
554583
<origin rpy="1.5707963267948966 0 0" xyz="0 -0.08 0" />
555584
<geometry>
556-
<cylinder length="0.04" radius="0.046" />
585+
<!-- <cylinder length="0.04" radius="0.046" /> -->
586+
<sphere radius="0.046" />
557587
</geometry>
558588
</collision>
559589
</link>
@@ -608,7 +638,8 @@
608638
<collision>
609639
<origin rpy="0 -0.2 0" xyz="0.01 0 -0.06" />
610640
<geometry>
611-
<cylinder length="0.12" radius="0.013" />
641+
<!-- <cylinder length="0.12" radius="0.013" /> -->
642+
<box size="0.026 0.026 0.12" />
612643
</geometry>
613644
</collision>
614645
</link>
@@ -623,7 +654,8 @@
623654
<collision>
624655
<origin rpy="0 0 0" xyz="0 0 0" />
625656
<geometry>
626-
<cylinder length="0.065" radius="0.011" />
657+
<!-- <cylinder length="0.065" radius="0.011" /> -->
658+
<box size="0.022 0.022 0.065" />
627659
</geometry>
628660
</collision>
629661
</link>
@@ -637,7 +669,8 @@
637669
<collision>
638670
<origin rpy="0 0 0" xyz="0 0 0" />
639671
<geometry>
640-
<cylinder length="0.03" radius="0.0155" />
672+
<!-- <cylinder length="0.03" radius="0.0155" /> -->
673+
<box size="0.031 0.031 0.03" />
641674
</geometry>
642675
</collision>
643676
</link>
@@ -654,12 +687,12 @@
654687
<mass value="0.646" />
655688
<inertia ixx="0.001" ixy="0" ixz="0" iyy="0.0016" iyz="0" izz="0.001" />
656689
</inertial>
657-
<collision>
690+
<!-- <collision>
658691
<origin rpy="1.5707963267948966 0 0" xyz="0 0 0" />
659692
<geometry>
660693
<cylinder length="0.05" radius="0.05" />
661694
</geometry>
662-
</collision>
695+
</collision> -->
663696
</link>
664697

665698
<joint name="RR_foot_motor_joint" type="fixed">
@@ -682,11 +715,16 @@
682715
</geometry>
683716
<material name="黑色塑料_003-effect"><color rgba="0.023455 0.023455 0.023455 1" /></material>
684717
</visual>
685-
<collision>
718+
<!-- <collision>
686719
<origin rpy="0 0 0" xyz="0 -0.0 0" />
687720
<geometry>
688721
<mesh filename="package://go2w_description/meshes/right_wheel.dae" />
689-
722+
</geometry>
723+
</collision> -->
724+
<collision>
725+
<origin rpy="1.5707963267948966 0 0" xyz="0 -0.048 0" />
726+
<geometry>
727+
<cylinder length="0.045" radius="0.086" />
690728
</geometry>
691729
</collision>
692730
</link>

source/robot_lab/robot_lab/assets/unitree.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
max_depenetration_velocity=1.0,
136136
),
137137
articulation_props=sim_utils.ArticulationRootPropertiesCfg(
138-
enabled_self_collisions=False, solver_position_iteration_count=4, solver_velocity_iteration_count=0
138+
enabled_self_collisions=False, solver_position_iteration_count=4, solver_velocity_iteration_count=1
139139
),
140140
joint_drive=sim_utils.UrdfConverterCfg.JointDriveCfg(
141141
gains=sim_utils.UrdfConverterCfg.JointDriveCfg.PDGainsCfg(stiffness=0, damping=0)
@@ -155,11 +155,10 @@
155155
),
156156
soft_joint_pos_limit_factor=0.9,
157157
actuators={
158-
"legs": DCMotorCfg(
158+
"legs": ImplicitActuatorCfg(
159159
joint_names_expr=["^(?!.*_foot_joint).*"],
160-
effort_limit=23.5,
161-
saturation_effort=23.5,
162-
velocity_limit=30.0,
160+
effort_limit_sim=23.5,
161+
velocity_limit_sim=30.0,
163162
stiffness=25.0,
164163
damping=0.5,
165164
friction=0.0,

0 commit comments

Comments
 (0)