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.
 
void clearWaypointList ()
 Removes all items of the waypoint list.
 
void enableAddButton (bool enable)
 Enables or disables the add button.
 
void enableDeleteButton (bool enable)
 Enables or disables the delete button.
 
void enableWaypointListLineEdit (bool enable)
 Enables or disables the waypoint list and line edit.
 
void removeWaypoint (int index)
 Removes the waypoint at a given index.
 
void retranslateGui ()
 Retranslates the guiWaypointTab.
 
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.
 
void updateSelectedWaypoint (int index)
 Updates the currently selected waypoint.
 

Signals

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

Public Member Functions

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

Detailed Description

Subcontroller which handles all user interaction with the waypoint tab in the GUI, communicates with other controllers via signals and slots.

Constructor & Destructor Documentation

◆ WaypointController()

Creates a new WaypointController and assigns a WaypointTab to handle.

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

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

◆ 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.

◆ 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

◆ enableDeleteButton

void enableDeleteButton ( bool enable)
slot

Enables or disables the delete button.

Parameters
enableDetermines whether to enable or disable the delete button

◆ 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

◆ 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

◆ getGuiWaypointTab()

WaypointTabPtr getGuiWaypointTab ( )

Getter for the WaypointTab pointer to guiWaypointTab.

Returns
A Pointer to the guiWayointTab

◆ onConnectComponent()

void onConnectComponent ( )
overridevirtual

◆ onDisconnectComponent()

void onDisconnectComponent ( )
overridevirtual

◆ onExitComponent()

void onExitComponent ( )
overridevirtual

◆ onInitComponent()

void onInitComponent ( )
overridevirtual

◆ removeWaypoint

void removeWaypoint ( int index)
slot

Removes the waypoint at a given index.

Parameters
indexIndex of the waypoint

◆ retranslateGui

void retranslateGui ( )
slot

Retranslates the guiWaypointTab.

◆ setCurrentIndex

void setCurrentIndex ( int index)
signal

Notifies other controllers about changes of the current waypoint.

Parameters
indexIndex of the current waypoint

◆ 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

◆ 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

◆ updateSelectedWaypoint

void updateSelectedWaypoint ( int index)
slot

Updates the currently selected waypoint.

Parameters
indexIndex of the currently selected waypoint

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