Replies: 1 comment
-
I just ran into potentially the same issue, where damping/friction would seemingly be very high even when set to zero in the URDF and in the p.changeDynamics() API. The issue was that each joint I added was not, as I had first assumed, a dumb constraint. The joint was instead modeled as a motor/actuator, with a default motor force that needed to be exceeded for any movement to occur in a force/torque controlled application. So, to enable torque/external-force control, I had to first set all the motor forces to zero to turn it back into a dumb constraint, like so: # Disable the motors:
joint_indexes = [j for j in range(p.getNumJoints(robot_id))]
joint_forces_zero = [0.0 for j in range(p.getNumJoints(robot_id))]
p.setJointMotorControlArray(robot_id, joint_indexes, p.VELOCITY_CONTROL, forces=joint_forces_zero) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After adding in 2 prismatic joint to constrain motion in the xy plane in #2336 , there now seems to be damping/friction that I can't remove.
For the ball (urdf below), I'm trying to get it to move in the xy plane with a very small force. I set gravity to 0 in all dimensions, friction and damping in the tag of the main link to be 0, and made sure all link damping was 0 with
p.changeDynamics(ball, i, lateralFriction=0, linearDamping=0, angularDamping=0)
However the ball still refuses to move under a certain applied force (behaviour seems like countering static friction), and comes to a stop very quickly.
This wasn't happening before I added the planar movement constraint; how are these affecting the damping and what can I do to control this damping/friction?
ball urdf:
Beta Was this translation helpful? Give feedback.
All reactions