Open smartcam3d opened 5 years ago
Hi
The underlying formula being used is an implicit PD controller. It is intended to be time-step agnostic, but time-step size will still impact behaviour because this controls the frequency at which positional errors are sampled. The higher frequency, the more frequently the PD controller detects and corrects error, so the the less error there will be. However, it should naturally converge. This is unavoidable because we are simulating continuous motion using discrete sampling.
The TGS technique, however, updates the positional error and velocity error terms fed into the PD controller formula each solver iteration. This can lead to it correcting error very quickly when there is relatively high joint stiffness and small time-steps. We have recently changed how these joint drives are simulated (not yet released), and this should give a much more consistent result regardless of iteration count or time-step.
I will try to verify this with a similar configuration ASAP (probably later this week).
Thanks
Kier
Hi,
thank you for the very fast response and helpful information! I also tried to write the reaction torques directly to the cache of the articulation. I think this method is well suited for slowly changing reaction torques and slow movements. For fast changes in drive error, I noticed, that it would be very beneficial if one could update the joint torques between every substep of the simulation. When only updating the torques once per simulation step (not once per iteration of the solver), the system very quickly gets unstable.
Is there a possibility to provide an abstract drive, where one could implement the function for the reaction torque by a custom implementation? This would give us the freedom of implementing very complex reaction torques (e. g. with backlash, actuation or a sophisticated friction model).
I am very impressed by the work behind PhysX and want to thank every developer pushing the library forward!
Best regards,
Florian
Actuation callbacks (per-iteration user-provided joint torques) are already on our TODO list. I don't have an ETA on this feature, but hopefully it should be added in the near future. The intention is that you would gain access to the full articulation state (joint position and velocity) and could use this to implement e.g. your own high-frequency updated PD controller
Hello,
per-iteration user-provided joint torques sound great and would expand the scope of application for PhysX for all kinds of robotic simulations!
Have you been able to reproduce the step-dependant static stiffness issue? Maybe there is mixup between an applied force / impulse? I am not yet very familiar with the internal structure of PhysX. Do you have a recommendation at which parts of the source code I could focus, to identify the problem?
Thank you for your support!
Best regards
Florian
Hello,
@kstorey-nvidia Did you have any luck in reproducing the described effect of the issue?
Thank you for your help and investigation!
Best regards,
Florian
We do have something that should improve/resolve this issue coming in the next release. That release is currently expected some time in the next few weeks
Thanks
Kier
Hello Kier,
is there any update on the planned release date of the next release? Thank you for your support!
Best regards,
Florian
Hello, i am writing a robotics simulator for industrial robots. Large industrial robots typically have a joint stiffness of ~ 10^6-10^7 Nm/rad. I noticed a strong dependence of the deflection of the robot on the time step of the simulation when applying a static force. Shorter timesteps lead to a higher stiffness / a smaller deflection. Due to the high stiffness and high Eigenfrequencies of the system (> 10 Hz), I chose the timestep in the range of 0.01 - 10 ms.
The most important function calls for the model creation are: Creation of the articulation:
articulation = gPhysics->createArticulationReducedCoordinate();
Creation of multiple links:
Connection of the links via spherical joints:
The solver properties for the articulation are adjusted and the articulation is added to the scene:
Applying a constant / static Force to the last link before each simulation step:
pxLastLink->addForce(force);
The difference in the simulated deflection seems to be less dependant on the time step when using PxForceMode::eIMPULSE when using the method addForce.
EDIT: The problem seems to appear with the new temporal Gauss-Seidel solver. The projected solver seems to be less dependant on the step size.
The PhysX Setup is set as follows:
Is the variing stiffness of the reduced articulation a known issue? Is there a workaround? Shouldn't the deflection be independent of the time step for static loads?
Thank you for your help!
Best regards,
Florian