robot-control-stack icon indicating copy to clipboard operation
robot-control-stack copied to clipboard

Convergence Detection Does not Terminate in Some Case

Open juelg opened this issue 2 years ago • 2 comments

In some cases the convergence detection in the sim does not terminate. For example when the gripper collides with the floor. Then it is not converged as it the end effector has not reach its final position, but it also has not collided as the end effector is allowed to collide with objects.

Instead there should be a break up criterion which should be based on the number of iterations and should be configurable.

juelg avatar Jul 24 '24 16:07 juelg

In the previous iteration of the sim I implemented another check which worked quite well:

if (!collision && !moving && !arrived)
    break;

Would also be an option. Then we do not have an additional configuration option.

pkrack avatar Jul 25 '24 06:07 pkrack

Good point to also include this check. However, I think that there should be an iteration cap in any case to avoid an infinite loop in the sim.

juelg avatar Jul 25 '24 07:07 juelg