Convergence Detection Does not Terminate in Some Case
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.
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.
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.