WaypointController Class Reference

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>

+ Inheritance diagram for WaypointController:

Public Slots

void addWaypoint (int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
 Adds a new waypoint to the list widget. More...
 
void clearWaypointList ()
 Removes all items of the waypoint list. More...
 
void enableAddButton (bool enable)
 Enables or disables the add button. More...
 
void enableDeleteButton (bool enable)
 Enables or disables the delete button. More...
 
void enableWaypointListLineEdit (bool enable)
 Enables or disables the waypoint list and line edit. More...
 
void removeWaypoint (int index)
 Removes the waypoint at a given index. More...
 
void retranslateGui ()
 Retranslates the guiWaypointTab. More...
 
void setWaypointData (int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
 Connected with signals from other controllers, sets all values of the waypoint at a given index. More...
 
void updateSelectedWaypoint (int index)
 Updates the currently selected waypoint. More...
 

Signals

void addedWaypoint (int waypoint, bool insertAfter)
 Notifies other controllers about the addition of a new waypoint with given constraints. More...
 
void changedWaypoint (int waypoint, bool isBreakpoint)
 Notifies other controllers about changes of the given waypoint. More...
 
void changedWaypoint (int waypoint, int cartesianSelection)
 Notifies other controllers about changes of the given waypoint. More...
 
void changedWaypoint (int waypoint, std::vector< double > values)
 Notifies other controllers about changes of the given waypoint. More...
 
void deletedWaypoint (int waypoint)
 Notifies other controllers about the deletion of a given waypoint. More...
 
void enableIKSolutionButton (bool enable)
 Notifies other controllers whether to enable or disable the button for a new IK solution. More...
 
void setCurrentIndex (int index)
 Notifies other controllers about changes of the current waypoint. More...
 
void setCurrentIndexRobotVisualization (int index)
 Notifies RobotVisualizationController about changes of the current waypoint. More...
 

Public Member Functions

WaypointTabPtr getGuiWaypointTab ()
 Getter for the WaypointTab pointer to guiWaypointTab. More...
 
void onConnectComponent () override
 
void onDisconnectComponent () override
 
void onExitComponent () override
 
void onInitComponent () override
 
void setGuiWaypointTab (WaypointTabPtr guiWaypointTab)
 Setter for the WaypointTab pointer to guiWaypointTab. More...
 
 WaypointController (WaypointTabPtr guiWaypointTab)
 Creates a new WaypointController and assigns a WaypointTab to handle. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WaypointController()

WaypointController ( WaypointTabPtr  guiWaypointTab)

Creates a new WaypointController and assigns a WaypointTab to handle.

Parameters
guiWaypointTabPointer to the WaypointTab whose user interaction is handled by the WaypointController

Definition at line 112 of file WaypointController.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addedWaypoint

void addedWaypoint ( int  waypoint,
bool  insertAfter 
)
signal

Notifies other controllers about the addition of a new waypoint with given constraints.

Parameters
waypointIndex of the waypoint
insertAfterBoolean 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
valuesArray containting x, y, z, coordinates as well as a, b, g euler angles of the waypoint
indexIndex of the waypoint
valuesx, y, z coordinate and roll, pitch, yaw euler angles of a waypoint
cartesianSelectionInteger representing the cartesian selection
isBreakpointBoolean determining whether the waypoint is a breakpoint

Definition at line 132 of file WaypointController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ changedWaypoint [1/3]

void changedWaypoint ( int  waypoint,
bool  isBreakpoint 
)
signal

Notifies other controllers about changes of the given waypoint.

Parameters
waypointIndex of the waypoint
isBreakpointBoolean 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
waypointIndex of the waypoint
cartesianSelectionInteger 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
waypointIndex of the waypoint
valuesVector containing the x, y, z coordinates and the roll, pitch, yaw euler angles

◆ clearWaypointList

void clearWaypointList ( )
slot

Removes all items of the waypoint list.

Definition at line 508 of file WaypointController.cpp.

◆ deletedWaypoint

void deletedWaypoint ( int  waypoint)
signal

Notifies other controllers about the deletion of a given waypoint.

Parameters
waypointIndex of the deleted waypoint

◆ enableAddButton

void enableAddButton ( bool  enable)
slot

Enables or disables the add button.

Parameters
enableDetermines 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
enableDetermines 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
enableDetermines whether to enable or disable the IK solution button
+ Here is the caller graph for this function:

◆ enableWaypointListLineEdit

void enableWaypointListLineEdit ( bool  enable)
slot

Enables or disables the waypoint list and line edit.

Parameters
enableDetermines whether to enable or disable the waypoint list and line edit

Definition at line 544 of file WaypointController.cpp.

◆ getGuiWaypointTab()

WaypointTabPtr getGuiWaypointTab ( )

Getter for the WaypointTab pointer to guiWaypointTab.

Returns
A Pointer to the guiWayointTab

Definition at line 119 of file WaypointController.cpp.

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 42 of file WaypointController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 102 of file WaypointController.cpp.

◆ onExitComponent()

void onExitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 107 of file WaypointController.cpp.

◆ onInitComponent()

void onInitComponent ( )
overridevirtual
See also
AbstractController

Implements AbstractController.

Definition at line 27 of file WaypointController.cpp.

+ Here is the caller graph for this function:

◆ removeWaypoint

void removeWaypoint ( int  index)
slot

Removes the waypoint at a given index.

Parameters
indexIndex of the waypoint

Definition at line 167 of file WaypointController.cpp.

+ Here is the caller graph for this function:

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiWaypointTab.

Definition at line 503 of file WaypointController.cpp.

◆ setCurrentIndex

void setCurrentIndex ( int  index)
signal

Notifies other controllers about changes of the current waypoint.

Parameters
indexIndex of the current waypoint
+ Here is the caller graph for this function:

◆ setCurrentIndexRobotVisualization

void setCurrentIndexRobotVisualization ( int  index)
signal

Notifies RobotVisualizationController about changes of the current waypoint.

Parameters
indexIndex of the current waypoint

◆ setGuiWaypointTab()

void setGuiWaypointTab ( WaypointTabPtr  guiWaypointTab)

Setter for the WaypointTab pointer to guiWaypointTab.

Parameters
guiWaypointTabPointer to the WaypointTab whose user interaction is handled by the WaypointController

Definition at line 124 of file WaypointController.cpp.

◆ 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
indexIndex of the waypoint
valuesArray containing the x, y, z coordinates and the roll, pitch, yaw euler angles
constraintsConstraints 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
indexIndex of the currently selected waypoint

Definition at line 200 of file WaypointController.cpp.

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: