DesignerTrajectoryHolder Class Reference

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...
 

Detailed Description

The DesignerTrajectoryHolder class enables creating, deleting and getting DesignerTrajectorManagers, which are unambiguously assigned to a RobotNodeSet.

See also
DesignerTrajectoryManager

Definition at line 47 of file DesignerTrajectoryHolder.h.

Constructor & Destructor Documentation

◆ DesignerTrajectoryHolder()

Constructor(s)

Constructor(s) /////////////////////////////////////////////////////////////////////////////////////////////////.

Definition at line 36 of file DesignerTrajectoryHolder.cpp.

Member Function Documentation

◆ createDesignerTrajectoryManager()

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.

Parameters
rnsRobotNodeSet
Returns
true, if the given RobotNodeSet was not already assigned to a DesignerTrajectoryManager; false, if the given RobotNodeSet was already assigned to a DesignerTrajectoryManager.

Definition at line 45 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:

◆ deleteDesignerTrajectoryManager()

bool deleteDesignerTrajectoryManager ( std::string  rnsName)

Deletes the DesignerTrajectoryManager assigned to the given RobotNodeSet.

Parameters
rnsRobotNodeSet
Returns
true, if DesignerTrajectoryManager existed and was successfully deleted; false, if no DesignerTrajectoryManager was assigned to the given RobotNodeSet

Definition at line 66 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:

◆ getTrajectoryManager()

DesignerTrajectoryManagerPtr getTrajectoryManager ( std::string  rnsName)

Returns the DesignerTrajectoryManager assigned to the given RobotNodeSet.

Parameters
rnsRobotNodeSet
Returns
DesignerTrajectoryManager assigned to the given RobotNodeSet.

Definition at line 90 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:

◆ import()

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:

Parameters
designerTrajectorynew DesignerTrajectory
forceBoolean indicating wheather to force the import or not
Returns
(see detailed function description)

Definition at line 102 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:

◆ isInCollision()

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

Parameters
ttrajectory combining all trajectories represented by the managers
activeColModelNamethe collision model of the RobotNodeSet which gets manipulated
bodyColModelsNamesthe collision models to check against
fpsresolution for collision checking in frames per second
Returns
true in case of a collision

Definition at line 186 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:

◆ rnsExists()

bool rnsExists ( std::string  rnsName)

Checks if there is already a DesignerTrajectoryManager assigned to the given RobotNodeSet.

Parameters
rnsRobotNodeSet
Returns
true, if a DesignerTrajectoryManager assigned to the given RobotNodeSet exists; false, if no DesignerTrajectoryManager is assigned to the given RobotNodeSet

Definition at line 129 of file DesignerTrajectoryHolder.cpp.

+ Here is the caller graph for this function:

◆ rnsIsPartOfExistingRns()

bool rnsIsPartOfExistingRns ( std::string  rnsName)

Checks if the given RobotNodeSet is part of a RobotNodeSet to which a DesignerTrajectoryManager is assigned to.

Parameters
rnsRobotNodeSet
Returns
true, if the given RobotNodeSet is part of a existing one; false, if the given RobotNodeSet is not part of a existing one

Definition at line 144 of file DesignerTrajectoryHolder.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: