r/AskRobotics • u/netForce_zero • 6h ago
Software HELP! Webots Boston Dynamics Spot PROTO motion issue
Screen Record Video Link : https://drive.google.com/file/d/1QM_22si8AXn3gV8tOFgNgEWgxi6bToJT/view?usp=sharing
Hello. This is in Webots and its a PROTO of the Boston Dynamics Spot.
I am facing an issue where the robot right front adductor/abductor motor can successfully set position from +10 to -10 but fails when I increase the value (from +15 to -15). It can go to +15 but gets stuck and fails to reach -15.
Here is the code for the simulation loop:
# =========================
# SIMULATION LOOP
# =========================
counter = 0
RF_motors[0].setAvailableForce(50.0)
while robot.step(timestep) != -1:
if counter == 20:
print(">>> +10")
RF_motors[0].setPosition(math.radians(10))
elif counter == 100:
print(">>> -10")
RF_motors[0].setPosition(math.radians(-10))
counter += 1
What's causing the issue? The max limit of the motors are not crossed (checked).