|
The DesignerTrajectoryManager class enables easy interaction with the model. More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Manager/DesignerTrajectoryManager.h>
Public Member Functions | |
void | addWaypoint (const PoseBasePtr pose) |
Adds a UserWaypoint to the end of this manager's DesignerTrajectory. More... | |
void | deleteWaypoint (unsigned int index) |
Deletes a UserWaypoint from this manager's DesignerTrajectory. More... | |
DesignerTrajectoryManager (std::string rnsName, EnvironmentPtr environment_) | |
Constructor(s) More... | |
void | editWaypointIKSelection (unsigned int index, VirtualRobot::IKSolver::CartesianSelection ikSelection) |
Edits the IKSelection of a UserWaypoint. More... | |
void | editWaypointPoseBase (unsigned int index, const PoseBasePtr pose) |
Edits the pose of a UserWaypoint. More... | |
DesignerTrajectoryPtr | getDesignerTrajectory () const |
Returns a deep copy of this manager's DesignerTrajectory. More... | |
bool | getIsInitialized () |
True if the DesignerTrajectory is initialized. More... | |
bool | import (DesignerTrajectoryPtr newDesignerTrajectory) |
Overrides the current DesignerTrajectory with the given DesignerTrajectory. More... | |
void | initializeDesignerTrajectory (std::vector< double > &jointAngles) |
Public functions. More... | |
void | insertWaypoint (unsigned int index, const PoseBasePtr pose) |
Inserts a UserWaypoint at the given position to this manager's DesignerTrajectory. More... | |
bool | redo () |
redo More... | |
bool | redoPossible () |
void | setTransitionInterpolation (unsigned int index, InterpolationType it) |
Sets the InterpolationType of a Transition from this manager's DesignerTrajectory. More... | |
void | setTransitionUserDuration (unsigned int index, double duration) |
Sets the desired duration of a Transition. More... | |
void | setWaypointAsBreakpoint (unsigned int index, bool b) |
Sets a UserWaypoint as (not-) breakpoint. More... | |
bool | undo () |
undo More... | |
bool | undoPossible () |
setCollisionModels Sets the collision models on the collision detection attribute More... | |
The DesignerTrajectoryManager class enables easy interaction with the model.
Using this class, the model is always self-consistent.
Definition at line 54 of file DesignerTrajectoryManager.h.
DesignerTrajectoryManager | ( | std::string | rnsName, |
EnvironmentPtr | environment_ | ||
) |
Constructor(s)
Constructor of this class.
rns | RobotNodeSet |
Definition at line 798 of file DesignerTrajectoryManager.cpp.
void addWaypoint | ( | const PoseBasePtr | pose | ) |
Adds a UserWaypoint to the end of this manager's DesignerTrajectory.
To create this UserWaypoint the following parameters are needed:
pose | pose of the UserWaypoint |
Definition at line 840 of file DesignerTrajectoryManager.cpp.
void deleteWaypoint | ( | unsigned int | index | ) |
Deletes a UserWaypoint from this manager's DesignerTrajectory.
index | index of the UserWaypoint to delete |
Definition at line 960 of file DesignerTrajectoryManager.cpp.
void editWaypointIKSelection | ( | unsigned int | index, |
VirtualRobot::IKSolver::CartesianSelection | ikSelection | ||
) |
Edits the IKSelection of a UserWaypoint.
index | index of the UserWaypoint to edit |
ikSelection | new IKSelection |
Definition at line 944 of file DesignerTrajectoryManager.cpp.
void editWaypointPoseBase | ( | unsigned int | index, |
const PoseBasePtr | pose | ||
) |
Edits the pose of a UserWaypoint.
index | index of the UserWaypoint to edit |
pose | new pose |
Definition at line 891 of file DesignerTrajectoryManager.cpp.
DesignerTrajectoryPtr getDesignerTrajectory | ( | ) | const |
Returns a deep copy of this manager's DesignerTrajectory.
Definition at line 1063 of file DesignerTrajectoryManager.cpp.
bool getIsInitialized | ( | ) |
True if the DesignerTrajectory is initialized.
Definition at line 560 of file DesignerTrajectoryManager.cpp.
bool import | ( | DesignerTrajectoryPtr | newDesignerTrajectory | ) |
Overrides the current DesignerTrajectory with the given DesignerTrajectory.
designerTrajectory | new DesignerTrajectory |
Definition at line 1078 of file DesignerTrajectoryManager.cpp.
void initializeDesignerTrajectory | ( | std::vector< double > & | jointAngles | ) |
Public functions.
Public Functions.
Initializes the DesignerTrajectory object of this manager instance.
jointAngles | start jointangle-configuration of the trajectory |
Definition at line 812 of file DesignerTrajectoryManager.cpp.
void insertWaypoint | ( | unsigned int | index, |
const PoseBasePtr | pose | ||
) |
Inserts a UserWaypoint at the given position to this manager's DesignerTrajectory.
To create this UserWaypoint the following parameters are needed:
index | position to insert the UserWaypoint into |
pb | pose of the UserWaypoint |
Definition at line 857 of file DesignerTrajectoryManager.cpp.
bool redo | ( | ) |
bool redoPossible | ( | ) |
Definition at line 1138 of file DesignerTrajectoryManager.cpp.
void setTransitionInterpolation | ( | unsigned int | index, |
InterpolationType | it | ||
) |
Sets the InterpolationType of a Transition from this manager's DesignerTrajectory.
index | index of the Transition to edit |
it | new InterpolationType |
Definition at line 1008 of file DesignerTrajectoryManager.cpp.
void setTransitionUserDuration | ( | unsigned int | index, |
double | duration | ||
) |
Sets the desired duration of a Transition.
index | index of the Transition to edit |
duration | desired duration |
Definition at line 1040 of file DesignerTrajectoryManager.cpp.
void setWaypointAsBreakpoint | ( | unsigned int | index, |
bool | b | ||
) |
Sets a UserWaypoint as (not-) breakpoint.
index | index of the UserWaypoint to edit |
b | true when the selected UserWaypoint should be a breakpoint false when the selected UserWaypoint should not be a breakpoint |
Definition at line 1024 of file DesignerTrajectoryManager.cpp.
bool undo | ( | ) |
bool undoPossible | ( | ) |
setCollisionModels Sets the collision models on the collision detection attribute
activeCollisionModel | The collision model of the RobotNodeSet which gets manipulated |
bodyCollisionModels | The collision models to check against |
Definition at line 1133 of file DesignerTrajectoryManager.cpp.