Skip to content

Commit 67a6f74

Browse files
mass of toe and sole now depends on toe ratio
1 parent 8e864d7 commit 67a6f74

File tree

1 file changed

+7
-7
lines changed
  • bitbots_wolfgang/wolfgang_webots_sim/protos/robots/Wolfgang

1 file changed

+7
-7
lines changed

bitbots_wolfgang/wolfgang_webots_sim/protos/robots/Wolfgang/Wolfgang.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ PROTO Wolfgang [
108108
0.2 0.2 0.2
109109
]
110110
%{
111-
TOE_FRACTION = 0.3
111+
TOE_RATIO = 0.3
112112
FOOT_LENGTH = 0.18
113113
FOOT_MASS = 0.26824
114-
TOE_LENGTH = FOOT_LENGTH * TOE_FRACTION
115-
REAR_FOOT_LENGTH = FOOT_LENGTH * (1-TOE_FRACTION)
114+
TOE_LENGTH = FOOT_LENGTH * TOE_RATIO
115+
REAR_FOOT_LENGTH = FOOT_LENGTH * (1-TOE_RATIO)
116116
}%
117117
%{
118118
if fields.name.value ~= '' then
@@ -2169,7 +2169,7 @@ PROTO Wolfgang [
21692169
}
21702170
physics Physics {
21712171
density -1
2172-
mass 0.1
2172+
mass %{=TOE_RATIO * FOOT_MASS}%
21732173
}
21742174
}
21752175
}
@@ -2204,7 +2204,7 @@ PROTO Wolfgang [
22042204
%{if fields.enablePhysics.value then}%
22052205
physics Physics {
22062206
density -1
2207-
mass 0.268240
2207+
mass %{=(1-TOE_RATIO) * FOOT_MASS}%
22082208
centerOfMass [ 0.011970 0.091109 -0.029858 ]
22092209
inertiaMatrix [
22102210
8.841070e-04 3.178300e-04 1.153640e-03
@@ -3595,7 +3595,7 @@ PROTO Wolfgang [
35953595
}
35963596
physics Physics {
35973597
density -1
3598-
mass 0.1
3598+
mass %{=TOE_RATIO * FOOT_MASS}%
35993599
}
36003600
}
36013601
}
@@ -3631,7 +3631,7 @@ PROTO Wolfgang [
36313631
%{if fields.enablePhysics.value then}%
36323632
physics Physics {
36333633
density -1
3634-
mass 0.168240
3634+
mass %{=(1-TOE_RATIO) * FOOT_MASS}%
36353635
centerOfMass [ -0.012040 0.091109 -0.029858 ]
36363636
inertiaMatrix [
36373637
8.841070e-04 3.173780e-04 1.153190e-03

0 commit comments

Comments
 (0)