Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::environment::AddSceneGraphCommand Class Reference
Inheritance diagram for tesseract::environment::AddSceneGraphCommand:

Public Types

using Ptr = std::shared_ptr<AddSceneGraphCommand>
using ConstPtr = std::shared_ptr<const AddSceneGraphCommand>
Public Types inherited from tesseract::environment::Command
using Ptr = std::shared_ptr<Command>
using ConstPtr = std::shared_ptr<const Command>

Public Member Functions

 AddSceneGraphCommand (const tesseract::scene_graph::SceneGraph &scene_graph, std::string prefix="")
 Merge a graph into the current environment.
 AddSceneGraphCommand (const tesseract::scene_graph::SceneGraph &scene_graph, const tesseract::scene_graph::Joint &joint, std::string prefix="")
 Merge a graph into the current environment.
const std::shared_ptr< const tesseract::scene_graph::SceneGraph > & getSceneGraph () const
const std::shared_ptr< const tesseract::scene_graph::Joint > & getJoint () const
const std::string & getPrefix () const
bool operator== (const AddSceneGraphCommand &rhs) const
bool operator!= (const AddSceneGraphCommand &rhs) const
Public Member Functions inherited from tesseract::environment::Command
 Command (CommandType type=CommandType::UNINITIALIZED)
 Command (const Command &)=default
Command & operator= (const Command &)=default
 Command (Command &&)=default
Command & operator= (Command &&)=default
CommandType getType () const
bool operator== (const Command &rhs) const
bool operator!= (const Command &rhs) const

Friends

template<class Archive>
friend void::tesseract::environment::serialize (Archive &ar, AddSceneGraphCommand &obj)

Constructor & Destructor Documentation

◆ AddSceneGraphCommand() [1/2]

tesseract::environment::AddSceneGraphCommand::AddSceneGraphCommand ( const tesseract::scene_graph::SceneGraph & scene_graph,
std::string prefix = "" )

Merge a graph into the current environment.

Parameters
scene_graphConst ref to the graph to be merged (said graph will be copied)
prefixstring Will be prepended to every link and joint of the merged graph
Returns
Return False if any link or joint name collides with current environment, otherwise True Merge a subgraph into the current environment, considering that the root of the merged graph is attached to the root of the environment by a fixed joint and no displacement. Every joint and link of the subgraph will be copied into the environment graph. The prefix argument is meant to allow adding multiple copies of the same subgraph with different names

◆ AddSceneGraphCommand() [2/2]

tesseract::environment::AddSceneGraphCommand::AddSceneGraphCommand ( const tesseract::scene_graph::SceneGraph & scene_graph,
const tesseract::scene_graph::Joint & joint,
std::string prefix = "" )

Merge a graph into the current environment.

Parameters
scene_graphConst ref to the graph to be merged (said graph will be copied)
root_jointConst ptr to the joint that connects current environment with root of the merged graph
prefixstring Will be prepended to every link and joint of the merged graph
Returns
Return False if any link or joint name collides with current environment, otherwise True Merge a subgraph into the current environment. Every joint and link of the subgraph will be copied into the environment graph. The prefix argument is meant to allow adding multiple copies of the same subgraph with different names