|
|
Subcontroller which handles all program interaction with the modle, communicates with other controllers via signals and slots. More...
#include <RobotAPI/libraries/core/TrajectoryController.h>
Public Slots | |
| void | addWaypoint (int waypoint, bool insertAfter) |
| Adds a new waypoint relative to the given waypoint. More... | |
| void | deleteWaypoint (int waypoint) |
| Deletes the given waypoint. More... | |
| void | environmentChanged (EnvironmentPtr environment) |
| Set the enviroment. More... | |
| void | exportTrajectory () |
| Stages the given trajectory for export. More... | |
| void | exportTrajectory (int fps) |
| Stages the given trajectory for export. More... | |
| void | import (DesignerTrajectoryPtr designerTrajectory) |
| Imports a given trajectory into the model. More... | |
| void | playTrajectories () |
| Play all trajectories. More... | |
| void | redo () |
| Redo trajectory. More... | |
| void | setActiveColModelName (QString activeColModelName) |
| Sets the active collision model name. More... | |
| void | setBodyColModelsNames (QStringList bodyColModelsNames) |
| Sets the body collision models names. More... | |
| void | undo () |
| Undo trajectroy. More... | |
| void | updateTCP (QString tcp) |
| Updates the selected TCP. More... | |
| void | updateTransition (int transition, double duration) |
| Updates all values of a given transition. More... | |
| void | updateTransition (int transition, int it) |
| Updates all values of a given transition. More... | |
| void | updateWaypoint (int waypoint) |
| Updates all values of a given waypoint. More... | |
| void | updateWaypoint (int waypoint, bool isBreakpoint) |
| Updates isBreakpoint value of a given waypoint. More... | |
| void | updateWaypoint (int waypoint, int cartesianSelection) |
| Updates CartesianSelection value of a given waypoint. More... | |
| void | updateWaypoint (int waypoint, PoseBasePtr newPoseBase) |
| Updates all values of a given waypoint. More... | |
| void | updateWaypoint (int waypoint, std::vector< double > values) |
| Updates all values of a given waypoint. More... | |
Signals | |
| void | addTransitionGui (int transition, double duration, double start, int it) |
| Notifies other controllers about the addition of a transition. More... | |
| void | addWaypointGui (int waypoint, std::vector< double > values, int cartesianSelection, bool isBreakpoint) |
| Notifies other controllers about the addition of a waypoint. More... | |
| void | cartesianSelectionChanged (VirtualRobot::IKSolver::CartesianSelection cs) |
| cartesianSelectionChanged recalculates the configuration of the robot joints to fit the new selection More... | |
| void | changeTransitionGui (int transition, double duration, double start, int it) |
| Notifies other controllers about changes of an existing transition. More... | |
| void | changeWaypointGui (int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint) |
| Notfies other controllers about changes of an existing waypoint. More... | |
| void | enableAdd (bool enable) |
| Enables or disables the add button/shortcut. More... | |
| void | enableDeleteChange (bool enable) |
| Enables or disables the delete and change button/shortcut. More... | |
| void | enableExportButtons (bool enable) |
| Enables or disables the export buttons. More... | |
| void | enableIKSolutionButton (bool enable) |
| Enables or disables the new IK solution button. More... | |
| void | enablePreview (bool enable) |
| Enables or disables the prview button/shortcut. More... | |
| void | enablePreviewAll (bool enable) |
| Enables or disables the prview all button/shortcut. More... | |
| void | enableRedo (bool enable) |
| Enables or disables the redo button/shortcut. More... | |
| void | enableUndo (bool enable) |
| Enables or disables the undo button/shortcut. More... | |
| void | exportTrajectory (std::vector< DesignerTrajectoryPtr > trajectories) |
| Provides the trajectory for ExportController. More... | |
| void | newTrajectory (QString trajectory) |
| Notifies the TCPSelcetionController about a new Trajectory. More... | |
| void | playTrajectories (std::vector< DesignerTrajectoryPtr > designerTrajectories) |
| Provides all trajectories for VisualizationController. More... | |
| void | removeAllTrajectories () |
| Removes all trajectories from the TCP selection combo box. More... | |
| void | removeTrajectory (QString trajectory) |
| Removes the given trajectory from the TCP selection combo box. More... | |
| void | removeTransitionGui (int index) |
| Notifies other controllers about the deletion of a given transtion. More... | |
| void | removeTransitionWaypointGui () |
| Notifies WaypointTab and Transition to delete all ListWidgets. More... | |
| void | removeWaypointGui (int index) |
| Notifies other controllers about the deletion of a given waypoint. More... | |
| void | rnsChanged (VirtualRobot::RobotNodeSetPtr rns) |
| Notifies the VisualizationController about a changed RobotNodeSet. More... | |
| void | showTrajectory (DesignerTrajectoryPtr designerTrajectory) |
| Provides the trajectory for VisualizationController. More... | |
| void | updateSelectedTCP (QString trajectory) |
| Updates the currently displayed trajectory of the corresponding TCP. More... | |
Public Member Functions | |
| const Eigen::VectorXf & | getCurrentError () const |
| double | getCurrentTimestamp () const |
| const Eigen::VectorXf & | getPositions () const |
| const TrajectoryPtr & | getTraj () const |
| void | onConnectComponent () override |
| void | onDisconnectComponent () override |
| void | onExitComponent () override |
| void | onInitComponent () override |
| TrajectoryController () | |
| Creates a new TrajectoryController and assigns a QWidget to handle. More... | |
| TrajectoryController (const TrajectoryPtr &traj, float kp, float ki=0.0f, float kd=0.0f, bool threadSafe=true, float maxIntegral=std::numeric_limits< float >::max()) | |
| const Eigen::VectorXf & | update (double deltaT, const Eigen::VectorXf ¤tPosition) |
Static Public Member Functions | |
| static void | FoldLimitlessJointPositions (TrajectoryPtr traj) |
| static void | UnfoldLimitlessJointPositions (TrajectoryPtr traj) |
Protected Attributes | |
| Eigen::VectorXf | currentError |
| double | currentTimestamp |
| MultiDimPIDControllerPtr | pid |
| Eigen::VectorXf | positions |
| TrajectoryPtr | traj |
| Eigen::VectorXf | veloctities |
Subcontroller which handles all program interaction with the modle, communicates with other controllers via signals and slots.
Definition at line 32 of file TrajectoryController.h.
| TrajectoryController | ( | const TrajectoryPtr & | traj, |
| float | kp, | ||
| float | ki = 0.0f, |
||
| float | kd = 0.0f, |
||
| bool | threadSafe = true, |
||
| float | maxIntegral = std::numeric_limits<float>::max() |
||
| ) |
Creates a new TrajectoryController and assigns a QWidget to handle.
Definition at line 38 of file TrajectoryController.cpp.
|
signal |
Notifies other controllers about the addition of a transition.
| duration | Duration of the transition |
| start | Start time of the transition |
| it | Index of the interpolation of the transition |
| transition | Index of the transition |
|
slot |
Adds a new waypoint relative to the given waypoint.
| constraints | Constraints of the new waypoint: isBreakpoint, ikConstraints, insertBefore/-After |
| waypoint | Index of the waypoint |
| cartesianSelection | Integer representing the cartesian selection |
| insertAfter | Boolean determining whether to insert after the waypoint or before |
| isBreakpoint | Boolean determining whether the waypoint is a breakpoint |
Definition at line 304 of file TrajectoryController.cpp.
|
signal |
Notifies other controllers about the addition of a waypoint.
| values | Array containting x, y, z, coordinates as well as r, p, y euler angles of the waypoint |
| constraints | Constraints of the waypoint: isBreakpoint, ikConstraints |
| waypoint | Index of the waypoint |
|
signal |
cartesianSelectionChanged recalculates the configuration of the robot joints to fit the new selection
| cs | the new CartesianSelection |
|
signal |
Notifies other controllers about changes of an existing transition.
| duration | Duration of the transition |
| start | Start time of the transition |
| it | Index of interpolation of the transition |
| transition | Index of the transition |
|
signal |
Notfies other controllers about changes of an existing waypoint.
| values | Array containting x, y, z, coordinates as well as a, b, g euler angles of the waypoint |
| constraints | Constraints of the waypoint: isBreakpoint, ikConstraints |
| waypoint | Index of the waypoint |
|
slot |
Deletes the given waypoint.
| waypoint | Index of the waypoint |
Definition at line 406 of file TrajectoryController.cpp.
|
signal |
Enables or disables the add button/shortcut.
| enable | Determines whether to enable or disable the add button/shortcut |
|
signal |
Enables or disables the delete and change button/shortcut.
| enable | Determines whether to enable or disable the delete and change button/shortcut |
|
signal |
Enables or disables the export buttons.
| enable | Determines whether to enable or disable the export buttons |
|
signal |
Enables or disables the new IK solution button.
| enable | Determines whether to enable or disable the ik solution button |
|
signal |
Enables or disables the prview button/shortcut.
| enable | Determines whether to enable or disable the previes button/shortcut |
|
signal |
Enables or disables the prview all button/shortcut.
| enable | Determines whether to enable or disable the previes button/shortcut |
|
signal |
Enables or disables the redo button/shortcut.
| enable | Determines whether to enable or disable the redo button/shortcut |
|
signal |
Enables or disables the undo button/shortcut.
| enable | Determines whether to enable or disable the undo button/shortcut |
|
slot |
Set the enviroment.
| The | new enviroment |
Definition at line 607 of file TrajectoryController.cpp.
|
slot |
Stages the given trajectory for export.
Definition at line 539 of file TrajectoryController.cpp.
Here is the call graph for this function:
|
slot |
Stages the given trajectory for export.
| fps | for export to MMM |
Definition at line 519 of file TrajectoryController.cpp.
Here is the call graph for this function:
|
signal |
Provides the trajectory for ExportController.
| trajectory | Trajectory to provide |
|
static |
Definition at line 178 of file TrajectoryController.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| const Eigen::VectorXf & getCurrentError | ( | ) | const |
Definition at line 205 of file TrajectoryController.cpp.
| double getCurrentTimestamp | ( | ) | const |
Definition at line 129 of file TrajectoryController.cpp.
Here is the caller graph for this function:| const Eigen::VectorXf & getPositions | ( | ) | const |
Definition at line 211 of file TrajectoryController.cpp.
| const TrajectoryPtr & getTraj | ( | ) | const |
Definition at line 135 of file TrajectoryController.cpp.
Here is the caller graph for this function:
|
slot |
Imports a given trajectory into the model.
| designerTrajectory | Trajectory which is being imported |
Definition at line 483 of file TrajectoryController.cpp.
|
signal |
Notifies the TCPSelcetionController about a new Trajectory.
| trajectory | new trajectory |
|
override |
Definition at line 19 of file TrajectoryController.cpp.
|
override |
Definition at line 25 of file TrajectoryController.cpp.
|
override |
Definition at line 31 of file TrajectoryController.cpp.
|
override |
Definition at line 13 of file TrajectoryController.cpp.
|
slot |
Play all trajectories.
Definition at line 592 of file TrajectoryController.cpp.
Here is the call graph for this function:
|
signal |
Provides all trajectories for VisualizationController.
| designerTrajectories | Trajectories to play |
|
slot |
Redo trajectory.
Definition at line 575 of file TrajectoryController.cpp.
|
signal |
Removes all trajectories from the TCP selection combo box.
|
signal |
Removes the given trajectory from the TCP selection combo box.
| trajectory | String identifier of the trajectory |
|
signal |
Notifies other controllers about the deletion of a given transtion.
| index | Index of the transition |
|
signal |
Notifies WaypointTab and Transition to delete all ListWidgets.
|
signal |
Notifies other controllers about the deletion of a given waypoint.
| index | Index of the waypoitn |
|
signal |
Notifies the VisualizationController about a changed RobotNodeSet.
| rns | new RobotNodeSet |
|
slot |
Sets the active collision model name.
| activeColModelName | Active collision model name |
Definition at line 620 of file TrajectoryController.cpp.
|
slot |
Sets the body collision models names.
| activeColModelName | Body collision models names |
Definition at line 627 of file TrajectoryController.cpp.
|
signal |
Provides the trajectory for VisualizationController.
| designerTrajectory | Trajectory to provide |
|
slot |
Undo trajectroy.
Definition at line 558 of file TrajectoryController.cpp.
|
static |
Definition at line 141 of file TrajectoryController.cpp.
Here is the caller graph for this function:| const Eigen::VectorXf & update | ( | double | deltaT, |
| const Eigen::VectorXf & | currentPosition | ||
| ) |
Definition at line 67 of file TrajectoryController.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
signal |
Updates the currently displayed trajectory of the corresponding TCP.
| trajectory | String identifier of the trajectory |
|
slot |
Updates the selected TCP.
| index | Index of the selected TCP |
Definition at line 45 of file TrajectoryController.cpp.
|
slot |
Updates all values of a given transition.
| transition | Index of the transition |
| duration | Duration of the transition |
Definition at line 133 of file TrajectoryController.cpp.
|
slot |
Updates all values of a given transition.
| transition | Index of the transition |
| it | Index of the interpolation of the transition |
Definition at line 103 of file TrajectoryController.cpp.
|
slot |
Updates all values of a given waypoint.
| waypoint | Index of the waypoint |
Definition at line 183 of file TrajectoryController.cpp.
|
slot |
Updates isBreakpoint value of a given waypoint.
| waypoint | Index of the waypoint |
| isBreakpoint | Boolean determining whether the waypoint is a breakpoint |
Definition at line 273 of file TrajectoryController.cpp.
|
slot |
Updates CartesianSelection value of a given waypoint.
| waypoint | Index of the waypoint |
| cartesianSelection | Integer representing the cartesian selection or before |
Definition at line 240 of file TrajectoryController.cpp.
|
slot |
Updates all values of a given waypoint.
| waypoint | Index of the waypoint |
| newPoseBase | Is the new PoseBase of the waypoint |
Definition at line 210 of file TrajectoryController.cpp.
|
slot |
Updates all values of a given waypoint.
| waypoint | Index of the waypoint |
| values | Array containing the x, y, z, coordinates of a waypoint as well as the r, p, y euler angles |
Definition at line 155 of file TrajectoryController.cpp.
|
protected |
Definition at line 63 of file TrajectoryController.h.
|
protected |
Definition at line 60 of file TrajectoryController.h.
|
protected |
Definition at line 58 of file TrajectoryController.h.
|
protected |
Definition at line 61 of file TrajectoryController.h.
|
protected |
Definition at line 57 of file TrajectoryController.h.
|
protected |
Definition at line 62 of file TrajectoryController.h.