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

Add check box to reverse the sequence

parent 5d963b74
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxWPReverse">
<property name="text">
<string>Reverse list</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
......
......@@ -25,6 +25,7 @@
#include <VirtualRobot/Util/json.h>
#include <ArmarXCore/util/CPPUtility/container.h>
#include <RobotAPI/libraries/core/remoterobot/RemoteRobot.h>
#include "CartesianWaypointControlGuiWidgetController.h"
......@@ -154,7 +155,7 @@ namespace armarx
_controller->activateController();
ARMARX_IMPORTANT << "trigger execution of " << _lastParsedWPs.size()
<< " waypoints on " << _controllerName;
_controller->setWaypoints(_lastParsedWPs);
_controller->setWaypoints(_ui.checkBoxWPReverse->isChecked() ? reverse(_lastParsedWPs) : _lastParsedWPs);
}
}
......
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