Browse Source

SITL: walking robot script direction fix

c415-sdk
ashvath100 5 years ago committed by Randy Mackay
parent
commit
e21e720b12
  1. 5
      libraries/SITL/examples/JSON/pybullet/walking_robot.py

5
libraries/SITL/examples/JSON/pybullet/walking_robot.py

@ -38,7 +38,10 @@ p.changeDynamics(FixedBase,-1,lateralFriction=1.,
last_angles = [0.0] * 12 last_angles = [0.0] * 12
force = [500] * 12 force = [500] * 12
servo_direction = [1,1,1,-1,-1,-1,-1,-1,1,1,1,-1] servo_direction = [1,-1, 1,
1, 1,-1,
1,-1, 1,
1, 1,-1]
def control_joints(pwm): def control_joints(pwm):
'''control a joint based bot''' '''control a joint based bot'''
global last_angles global last_angles

Loading…
Cancel
Save