|
The DesignerTrajectoryHolder class enables creating, deleting and getting DesignerTrajectorManagers, which are unambiguously assigned to a RobotNodeSet. More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Manager/DesignerTrajectoryHolder.h>
Public Member Functions | |
bool | createDesignerTrajectoryManager (std::string rnsName) |
Public functions. More... | |
bool | deleteDesignerTrajectoryManager (std::string rnsName) |
Deletes the DesignerTrajectoryManager assigned to the given RobotNodeSet. More... | |
DesignerTrajectoryHolder (EnvironmentPtr environment) | |
Constructor(s) More... | |
DesignerTrajectoryManagerPtr | getTrajectoryManager (std::string rnsName) |
Returns the DesignerTrajectoryManager assigned to the given RobotNodeSet. More... | |
bool | import (DesignerTrajectoryPtr designerTrajectory, bool force) |
Imports the given DesignerTrajectory. More... | |
bool | isInCollision (std::string activeColModelName, std::vector< std::string > bodyColModelsNames, unsigned int fps) |
isInCollision Checks if the given collision models (active and body) collide for the jointangle configurations given in the trajectory More... | |
bool | rnsExists (std::string rnsName) |
Checks if there is already a DesignerTrajectoryManager assigned to the given RobotNodeSet. More... | |
bool | rnsIsPartOfExistingRns (std::string rnsName) |
Checks if the given RobotNodeSet is part of a RobotNodeSet to which a DesignerTrajectoryManager is assigned to. More... | |
The DesignerTrajectoryHolder class enables creating, deleting and getting DesignerTrajectorManagers, which are unambiguously assigned to a RobotNodeSet.
Definition at line 47 of file DesignerTrajectoryHolder.h.
DesignerTrajectoryHolder | ( | EnvironmentPtr | environment | ) |
Constructor(s)
Constructor(s) /////////////////////////////////////////////////////////////////////////////////////////////////.
Definition at line 36 of file DesignerTrajectoryHolder.cpp.
bool createDesignerTrajectoryManager | ( | std::string | rnsName | ) |
Public functions.
Public functions /////////////////////////////////////////////////////////////////////////////////////////////////.
If the given RobotNodeSet is not already assigned to a DesignerTrajectoryManager a DesignerTrajectoryManager is created and assigned to this RobotNodeSet, else nothing happens.
rns | RobotNodeSet |
Definition at line 45 of file DesignerTrajectoryHolder.cpp.
bool deleteDesignerTrajectoryManager | ( | std::string | rnsName | ) |
Deletes the DesignerTrajectoryManager assigned to the given RobotNodeSet.
rns | RobotNodeSet |
Definition at line 66 of file DesignerTrajectoryHolder.cpp.
DesignerTrajectoryManagerPtr getTrajectoryManager | ( | std::string | rnsName | ) |
Returns the DesignerTrajectoryManager assigned to the given RobotNodeSet.
rns | RobotNodeSet |
Definition at line 90 of file DesignerTrajectoryHolder.cpp.
bool import | ( | DesignerTrajectoryPtr | designerTrajectory, |
bool | force = true |
||
) |
Imports the given DesignerTrajectory.
The DesignerTrajectory holds a RobotNodeSet. If this RobotNodeSet is not assigned to a DesignerTrajectoryManager then a new DesignerTrajectoryManager is created with the given DesignerTrajectory (return true). If the DesignerTrajectory's RobotNodeSet is already assigned to a DesignerTrajectoryManager there are two options:
designerTrajectory | new DesignerTrajectory |
force | Boolean indicating wheather to force the import or not |
Definition at line 102 of file DesignerTrajectoryHolder.cpp.
bool isInCollision | ( | std::string | activeColModelName, |
std::vector< std::string > | bodyColModelsNames, | ||
unsigned int | fps | ||
) |
isInCollision Checks if the given collision models (active and body) collide for the jointangle configurations given in the trajectory
t | trajectory combining all trajectories represented by the managers |
activeColModelName | the collision model of the RobotNodeSet which gets manipulated |
bodyColModelsNames | the collision models to check against |
fps | resolution for collision checking in frames per second |
Definition at line 186 of file DesignerTrajectoryHolder.cpp.
bool rnsExists | ( | std::string | rnsName | ) |
Checks if there is already a DesignerTrajectoryManager assigned to the given RobotNodeSet.
rns | RobotNodeSet |
Definition at line 129 of file DesignerTrajectoryHolder.cpp.
bool rnsIsPartOfExistingRns | ( | std::string | rnsName | ) |
Checks if the given RobotNodeSet is part of a RobotNodeSet to which a DesignerTrajectoryManager is assigned to.
rns | RobotNodeSet |
Definition at line 144 of file DesignerTrajectoryHolder.cpp.