Page 1 of 1

Doubts about setJointMotorControl2 implementation

Posted: Mon Oct 26, 2020 10:06 pm
by locked21
Hi, first of all thanks for making this wonderful platform available.

I've been working on some car navigation problems for reinforcement learning. Before using PyBullet, I was using a kinematic system of differential equations (simplified bycicle model) to simulate the car motion.

From what I understand from the documentation, PyBullet seems to control a motor by defining a reference input position or velocity to the motor.

Of course, in the real world, when we define a reference velocity for a PID controller, for example, the actual velocity does not follow immediately the reference value (like the angular speed vs. time plot in figure attached).

PyBullet takes that into account? The simulation looks completely fine, I just need this information for documentation purposes.

Thank you.

Re: Doubts about setJointMotorControl2 implementation

Posted: Fri Nov 13, 2020 10:17 pm
by Erwin Coumans
PyBullet setJointMotorControl2 also has regular PD control. When using velocity control, it is up to the maximum force how fast the target is reached.