Page 1 of 1

Error on sim.rmlMoveToJointPositions

Posted: 10 Dec 2020, 13:25
by m_jau
I run the same Program for 50 times. on the begin i bring the robot to the JointPos and it works.
After the Second or third time the function returns a -1.
Is there a options to debug and find the reason why returns a -1 ?

Thanks.

Re: Error on sim.rmlMoveToJointPositions

Posted: 11 Dec 2020, 14:20
by coppelia
Hello,

it is very difficult to guess what is happeining in your simulation, let alone guess what kind of simulation/set-up you have.
Did you try to print some variable from within your code?
You can also use the assert directive to trigger an error when some specific conditions are met/not met.

Cheers