Skip to content
Snippets Groups Projects
Commit 9fe8ba41 authored by Pascal Weiner's avatar Pascal Weiner
Browse files

Add setting to waypoint controller to not skip to the closest waypoint

parent 90237532
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,10 @@ namespace armarx
_publishWpsNum = r.wps.size();
_rtHasWps = !r.wps.empty();
_rtWpController->swapWaypoints(r.wps);
_rtWpController->skipToClosestWaypoint(r.skipRad2mmFactor);
if (r.cfg.skipToClosestWaypoint)
{
_rtWpController->skipToClosestWaypoint(r.skipRad2mmFactor);
}
}
_publishIsAtForceLimit = false;
}
......
......@@ -77,6 +77,7 @@ namespace armarx
float skipRad2mmFactor = 500;
bool wpsUpdated = false;
bool cfgUpdated = false;
bool skipToClosestWaypoint = true;
};
struct RtToNonRtData
......
......@@ -36,6 +36,7 @@ module armarx
float forceThreshold = -1; // < 0 -> no limit
bool forceThresholdInRobotRootZ = true;
bool optimizeNullspaceIfTargetWasReached = false;
bool skipToClosestWaypoint = true;
};
class NJointCartesianWaypointControllerConfig extends NJointControllerConfig
......
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