1#ifndef TRAJECTORYCONTROLLER_H
2#define TRAJECTORYCONTROLLER_H
182 std::vector<double> values,
183 int cartesianSelection,
203 std::vector<double> values,
204 int cartesianSelection,
340 std::vector<double> parseToCoordinate(PoseBasePtr pose);
342 PoseBasePtr parseToPoseBasePtr(std::vector<double> values);
345 void helpAddTransitionGui(
TransitionPtr transition,
int transitionIndex);
348 void helpChangeTransitionGui(
TransitionPtr transition,
int transitionIndex);
349 void helpChangeWaypointGui(
UserWaypointPtr waypoint,
int waypointIndex);
354 void helpCreateDesignerTrajectoryManager();
356 bool helpEnableExportPreviewAll();
357 void helpEnableUndoRedo();
358 void helpEnableButtons();
360 void helpExceptionMessageBox(std::string errorMessage);
362 void helpCollision();
366 VirtualRobot::RobotNodeSetPtr rns;
368 std::string activeColModelName;
369 std::vector<std::string> bodyColModelsNames;
Abstract controller providing a set of methods which must be implemented by every controller.
Subcontroller which handles all program interaction with the modle, communicates with other controlle...
void removeTransitionWaypointGui()
Notifies WaypointTab and Transition to delete all ListWidgets.
void environmentChanged(EnvironmentPtr environment)
Set the enviroment.
void onInitComponent() override
void setActiveColModelName(QString activeColModelName)
Sets the active collision model name.
void enableIKSolutionButton(bool enable)
Enables or disables the new IK solution button.
void deleteWaypoint(int waypoint)
Deletes the given waypoint.
void undo()
Undo trajectroy.
TrajectoryController()
Creates a new TrajectoryController and assigns a QWidget to handle.
void updateTransition(int transition, int it)
Updates all values of a given transition.
void enableAdd(bool enable)
Enables or disables the add button/shortcut.
void enablePreviewAll(bool enable)
Enables or disables the prview all button/shortcut.
void addWaypointGui(int waypoint, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Notifies other controllers about the addition of a waypoint.
void cartesianSelectionChanged(VirtualRobot::IKSolver::CartesianSelection cs)
cartesianSelectionChanged recalculates the configuration of the robot joints to fit the new selection
void updateTCP(QString tcp)
Updates the selected TCP.
void onDisconnectComponent() override
void enableExportButtons(bool enable)
Enables or disables the export buttons.
void removeAllTrajectories()
Removes all trajectories from the TCP selection combo box.
void rnsChanged(VirtualRobot::RobotNodeSetPtr rns)
Notifies the VisualizationController about a changed RobotNodeSet.
void addWaypoint(int waypoint, bool insertAfter)
Adds a new waypoint relative to the given waypoint.
void updateSelectedTCP(QString trajectory)
Updates the currently displayed trajectory of the corresponding TCP.
void removeWaypointGui(int index)
Notifies other controllers about the deletion of a given waypoint.
void enableDeleteChange(bool enable)
Enables or disables the delete and change button/shortcut.
void exportTrajectory()
Stages the given trajectory for export.
void changeWaypointGui(int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Notfies other controllers about changes of an existing waypoint.
void changeTransitionGui(int transition, double duration, double start, int it)
Notifies other controllers about changes of an existing transition.
void redo()
Redo trajectory.
void enableUndo(bool enable)
Enables or disables the undo button/shortcut.
void onConnectComponent() override
void updateWaypoint(int waypoint, std::vector< double > values)
Updates all values of a given waypoint.
void enablePreview(bool enable)
Enables or disables the prview button/shortcut.
void removeTransitionGui(int index)
Notifies other controllers about the deletion of a given transtion.
void exportTrajectory(std::vector< DesignerTrajectoryPtr > trajectories)
Provides the trajectory for ExportController.
void playTrajectories()
Play all trajectories.
void setBodyColModelsNames(QStringList bodyColModelsNames)
Sets the body collision models names.
void addTransitionGui(int transition, double duration, double start, int it)
Notifies other controllers about the addition of a transition.
void onExitComponent() override
void enableRedo(bool enable)
Enables or disables the redo button/shortcut.
void playTrajectories(std::vector< DesignerTrajectoryPtr > designerTrajectories)
Provides all trajectories for VisualizationController.
void removeTrajectory(QString trajectory)
Removes the given trajectory from the TCP selection combo box.
void newTrajectory(QString trajectory)
Notifies the TCPSelcetionController about a new Trajectory.
void showTrajectory(DesignerTrajectoryPtr designerTrajectory)
Provides the trajectory for VisualizationController.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< armarx::DesignerTrajectoryManager > DesignerTrajectoryManagerPtr
Typedefinitions.
std::shared_ptr< armarx::DesignerTrajectoryHolder > DesignerTrajectoryHolderPtr
Typedefinitions.
std::shared_ptr< Environment > EnvironmentPtr
std::shared_ptr< Transition > TransitionPtr
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr
std::shared_ptr< UserWaypoint > UserWaypointPtr