Subcontroller which handles all user interaction with the waypoint tab in the GUI, communicates with other controllers via signals and slots.
More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/WaypointController.h>
Subcontroller which handles all user interaction with the waypoint tab in the GUI, communicates with other controllers via signals and slots.
Definition at line 56 of file WaypointController.h.
◆ WaypointController()
◆ addedWaypoint
void addedWaypoint |
( |
int |
waypoint, |
|
|
bool |
insertAfter |
|
) |
| |
|
signal |
Notifies other controllers about the addition of a new waypoint with given constraints.
- Parameters
-
waypoint | Index of the waypoint |
insertAfter | Boolean determining whether to insert after the waypoint or before |
◆ addWaypoint
void addWaypoint |
( |
int |
index, |
|
|
std::vector< double > |
values, |
|
|
int |
cartesianSelection, |
|
|
bool |
isBreakpoint |
|
) |
| |
|
slot |
Adds a new waypoint to the list widget.
- Parameters
-
values | Array containting x, y, z, coordinates as well as a, b, g euler angles of the waypoint |
index | Index of the waypoint |
values | x, y, z coordinate and roll, pitch, yaw euler angles of a waypoint |
cartesianSelection | Integer representing the cartesian selection |
isBreakpoint | Boolean determining whether the waypoint is a breakpoint |
Definition at line 132 of file WaypointController.cpp.
◆ changedWaypoint [1/3]
void changedWaypoint |
( |
int |
waypoint, |
|
|
bool |
isBreakpoint |
|
) |
| |
|
signal |
Notifies other controllers about changes of the given waypoint.
- Parameters
-
waypoint | Index of the waypoint |
isBreakpoint | Boolean determining whether the waypoint is a breakpoint |
◆ changedWaypoint [2/3]
void changedWaypoint |
( |
int |
waypoint, |
|
|
int |
cartesianSelection |
|
) |
| |
|
signal |
Notifies other controllers about changes of the given waypoint.
- Parameters
-
waypoint | Index of the waypoint |
cartesianSelection | Integer representing the cartesian selection |
◆ changedWaypoint [3/3]
void changedWaypoint |
( |
int |
waypoint, |
|
|
std::vector< double > |
values |
|
) |
| |
|
signal |
Notifies other controllers about changes of the given waypoint.
- Parameters
-
waypoint | Index of the waypoint |
values | Vector containing the x, y, z coordinates and the roll, pitch, yaw euler angles |
◆ clearWaypointList
void clearWaypointList |
( |
| ) |
|
|
slot |
◆ deletedWaypoint
void deletedWaypoint |
( |
int |
waypoint | ) |
|
|
signal |
Notifies other controllers about the deletion of a given waypoint.
- Parameters
-
waypoint | Index of the deleted waypoint |
◆ enableAddButton
void enableAddButton |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the add button.
- Parameters
-
enable | Determines whether to enable or disable the add button |
Definition at line 537 of file WaypointController.cpp.
◆ enableDeleteButton
void enableDeleteButton |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the delete button.
- Parameters
-
enable | Determines whether to enable or disable the delete button |
Definition at line 530 of file WaypointController.cpp.
◆ enableIKSolutionButton
void enableIKSolutionButton |
( |
bool |
enable | ) |
|
|
signal |
Notifies other controllers whether to enable or disable the button for a new IK solution.
- Parameters
-
enable | Determines whether to enable or disable the IK solution button |
◆ enableWaypointListLineEdit
void enableWaypointListLineEdit |
( |
bool |
enable | ) |
|
|
slot |
Enables or disables the waypoint list and line edit.
- Parameters
-
enable | Determines whether to enable or disable the waypoint list and line edit |
Definition at line 544 of file WaypointController.cpp.
◆ getGuiWaypointTab()
◆ onConnectComponent()
void onConnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onDisconnectComponent()
void onDisconnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onExitComponent()
◆ onInitComponent()
◆ removeWaypoint
void removeWaypoint |
( |
int |
index | ) |
|
|
slot |
Removes the waypoint at a given index.
- Parameters
-
index | Index of the waypoint |
Definition at line 167 of file WaypointController.cpp.
◆ retranslateGui
◆ setCurrentIndex
void setCurrentIndex |
( |
int |
index | ) |
|
|
signal |
Notifies other controllers about changes of the current waypoint.
- Parameters
-
index | Index of the current waypoint |
◆ setCurrentIndexRobotVisualization
void setCurrentIndexRobotVisualization |
( |
int |
index | ) |
|
|
signal |
◆ setGuiWaypointTab()
◆ setWaypointData
void setWaypointData |
( |
int |
index, |
|
|
std::vector< double > |
values, |
|
|
int |
cartesianSelection, |
|
|
bool |
isBreakpoint |
|
) |
| |
|
slot |
Connected with signals from other controllers, sets all values of the waypoint at a given index.
- Parameters
-
index | Index of the waypoint |
values | Array containing the x, y, z coordinates and the roll, pitch, yaw euler angles |
constraints | Constraints of the waypoint: isBreakpoint, ikConstraints |
Definition at line 438 of file WaypointController.cpp.
◆ updateSelectedWaypoint
void updateSelectedWaypoint |
( |
int |
index | ) |
|
|
slot |
Updates the currently selected waypoint.
- Parameters
-
index | Index of the currently selected waypoint |
Definition at line 200 of file WaypointController.cpp.
The documentation for this class was generated from the following files: