Add right shoulder DOFs

This commit is contained in:
Aditya Vasantharao 2021-01-30 14:50:08 -05:00
parent 6a92c5c734
commit 8b2501fa46
2 changed files with 48 additions and 2 deletions

View File

@ -34,9 +34,9 @@ def main():
else: else:
pos -= 0.2 pos -= 0.2
if pos >= 3: if pos >= 6:
add = False add = False
elif pos <= -3: elif pos <= -6:
add = True add = True
# Enter here exit cleanup code. # Enter here exit cleanup code.

View File

@ -122,6 +122,52 @@ Robot {
} }
} }
} }
BallJoint {
jointParameters BallJointParameters {
anchor 0.33 1.6 0
}
jointParameters2 JointParameters {
}
jointParameters3 JointParameters {
axis 1 0 0
}
device [
RotationalMotor {
name "right_shoulder_roll"
}
]
device2 [
RotationalMotor {
name "right_shoulder_yaw"
minPosition -1.5707963267948966
maxPosition 1.5707963267948966
}
]
device3 [
RotationalMotor {
name "right_shoulder_pitch"
}
]
endPoint Solid {
translation 0.33 1.37 0
children [
DEF right_shoulder Shape {
appearance PBRAppearance {
roughness 1
metalness 0
}
geometry Capsule {
height 0.35
radius 0.075
}
}
]
name "solid(1)"
boundingObject USE right_shoulder
physics Physics {
}
}
}
] ]
boundingObject USE Body boundingObject USE Body
physics Physics { physics Physics {