Skip to content
Snippets Groups Projects
Commit 27279d4a authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add check for nan to PositionThroughVelocityControllerWithAccelerationBounds::validParameters

parent 1803bfce
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -571,6 +571,8 @@ namespace armarx
bool PositionThroughVelocityControllerWithAccelerationAndPositionBounds::validParameters() const
{
return PositionThroughVelocityControllerWithAccelerationBounds::validParameters() &&
! std::isnan(positionLimitLo) &&
! std::isnan(positionLimitHi) &&
positionLimitLo < positionLimitHi &&
targetPosition <= positionLimitHi &&
positionLimitLo <= targetPosition;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment