Go to the documentation of this file. 1 #ifndef TRAJECTORYCONTROLLER_H
2 #define TRAJECTORYCONTROLLER_H
4 #include "../Manager/DesignerTrajectoryHolder.h"
5 #include "../Manager/DesignerTrajectoryManager.h"
200 void addWaypointGui(
int waypoint, std::vector<double>
values,
int cartesianSelection,
bool isBreakpoint);
215 void addTransitionGui(
int transition,
double duration,
double start,
int it);
232 void rnsChanged(VirtualRobot::RobotNodeSetPtr rns);
267 void playTrajectories(std::vector<DesignerTrajectoryPtr> designerTrajectories);
335 std::vector<double>parseToCoordinate(PoseBasePtr pose);
337 PoseBasePtr parseToPoseBasePtr(std::vector<double>
values);
340 void helpAddTransitionGui(
TransitionPtr transition,
int transitionIndex);
343 void helpChangeTransitionGui(
TransitionPtr transition,
int transitionIndex);
344 void helpChangeWaypointGui(
UserWaypointPtr waypoint,
int waypointIndex);
349 void helpCreateDesignerTrajectoryManager();
351 bool helpEnableExportPreviewAll();
352 void helpEnableUndoRedo();
353 void helpEnableButtons();
355 void helpExceptionMessageBox(std::string errorMessage);
357 void helpCollision();
361 VirtualRobot::RobotNodeSetPtr rns;
363 std::string activeColModelName;
364 std::vector<std::string> bodyColModelsNames;
370 #endif // TRAJECTORYCONTROLLER_H
void removeTrajectory(QString trajectory)
Removes the given trajectory from the TCP selection combo box.
std::shared_ptr< UserWaypoint > UserWaypointPtr
void updateTransition(int transition, int it)
Updates all values of a given transition.
void enableIKSolutionButton(bool enable)
Enables or disables the new IK solution button.
std::shared_ptr< armarx::DesignerTrajectoryHolder > DesignerTrajectoryHolderPtr
Typedefinitions.
void updateWaypoint(int waypoint, std::vector< double > values)
Updates all values of a given waypoint.
void updateSelectedTCP(QString trajectory)
Updates the currently displayed trajectory of the corresponding TCP.
void newTrajectory(QString trajectory)
Notifies the TCPSelcetionController about a new Trajectory.
void enableExportButtons(bool enable)
Enables or disables the export buttons.
void enableUndo(bool enable)
Enables or disables the undo button/shortcut.
void onDisconnectComponent() override
TrajectoryController()
Creates a new TrajectoryController and assigns a QWidget to handle.
void addWaypoint(int waypoint, bool insertAfter)
Adds a new waypoint relative to the given waypoint.
void changeTransitionGui(int transition, double duration, double start, int it)
Notifies other controllers about changes of an existing transition.
void onExitComponent() override
void updateTCP(QString tcp)
Updates the selected TCP.
std::shared_ptr< Environment > EnvironmentPtr
void redo()
Redo trajectory.
void enableAdd(bool enable)
Enables or disables the add button/shortcut.
void enableRedo(bool enable)
Enables or disables the redo button/shortcut.
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 removeTransitionGui(int index)
Notifies other controllers about the deletion of a given transtion.
void showTrajectory(DesignerTrajectoryPtr designerTrajectory)
Provides the trajectory for VisualizationController.
void enablePreviewAll(bool enable)
Enables or disables the prview all button/shortcut.
std::shared_ptr< Transition > TransitionPtr
void deleteWaypoint(int waypoint)
Deletes the given waypoint.
std::shared_ptr< TrajectoryController > TrajectoryControllerPtr
void enableDeleteChange(bool enable)
Enables or disables the delete and change button/shortcut.
std::shared_ptr< armarx::DesignerTrajectoryManager > DesignerTrajectoryManagerPtr
Typedefinitions.
void onInitComponent() override
void removeAllTrajectories()
Removes all trajectories from the TCP selection combo box.
std::shared_ptr< DesignerTrajectory > DesignerTrajectoryPtr
void undo()
Undo trajectroy.
void onConnectComponent() override
void setActiveColModelName(QString activeColModelName)
Sets the active collision model name.
void rnsChanged(VirtualRobot::RobotNodeSetPtr rns)
Notifies the VisualizationController about a changed RobotNodeSet.
void changeWaypointGui(int index, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Notfies other controllers about changes of an existing waypoint.
void cartesianSelectionChanged(VirtualRobot::IKSolver::CartesianSelection cs)
cartesianSelectionChanged recalculates the configuration of the robot joints to fit the new selection
void addWaypointGui(int waypoint, std::vector< double > values, int cartesianSelection, bool isBreakpoint)
Notifies other controllers about the addition of a waypoint.
void enablePreview(bool enable)
Enables or disables the prview button/shortcut.
void removeWaypointGui(int index)
Notifies other controllers about the deletion of a given waypoint.
void exportTrajectory()
Stages the given trajectory for export.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void removeTransitionWaypointGui()
Notifies WaypointTab and Transition to delete all ListWidgets.
void environmentChanged(EnvironmentPtr environment)
Set the enviroment.
void playTrajectories()
Play all trajectories.