Skip to content
Snippets Groups Projects
Commit e0b6bb8d authored by Simon Ottenhaus's avatar Simon Ottenhaus
Browse files

added getStatusText in PositionControllerHelper

parent 4ba8639d
No related branches found
No related tags found
No related merge requests found
......@@ -148,3 +148,11 @@ void PositionControllerHelper::setNullSpaceControl(bool enabled)
{
velocityControllerHelper->setNullSpaceControl(enabled);
}
std::string PositionControllerHelper::getStatusText()
{
std::stringstream ss;
ss.precision(2);
ss << std::fixed << "Waypoint: " << (currentWaypointIndex + 1) << "/" << waypoints.size() << " distance: " << getPositionError() << " mm " << VirtualRobot::MathTools::rad2deg(getOrientationError()) << " deg";
return ss.str();
}
......@@ -70,6 +70,8 @@ namespace armarx
void setNullSpaceControl(bool enabled);
std::string getStatusText();
CartesianPositionController posController;
VelocityControllerHelperPtr velocityControllerHelper;
......
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