add_scene_graph_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_ADD_SCENE_GRAPH_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_ADD_SCENE_GRAPH_COMMAND_H
28 
31 #include <memory>
32 #include <string>
33 #include <boost/serialization/export.hpp>
35 
38 
39 namespace boost::serialization
40 {
41 class access;
42 }
43 
44 namespace tesseract_environment
45 {
47 {
48 public:
49  using Ptr = std::shared_ptr<AddSceneGraphCommand>;
50  using ConstPtr = std::shared_ptr<const AddSceneGraphCommand>;
51 
63  AddSceneGraphCommand(const tesseract_scene_graph::SceneGraph& scene_graph, std::string prefix = "");
64 
76  const tesseract_scene_graph::Joint& joint,
77  std::string prefix = "");
78 
79  const std::shared_ptr<const tesseract_scene_graph::SceneGraph>& getSceneGraph() const;
80  const std::shared_ptr<const tesseract_scene_graph::Joint>& getJoint() const;
81  const std::string& getPrefix() const;
82 
83  bool operator==(const AddSceneGraphCommand& rhs) const;
84  bool operator!=(const AddSceneGraphCommand& rhs) const;
85 
86 private:
87  std::shared_ptr<const tesseract_scene_graph::SceneGraph> scene_graph_;
88  std::shared_ptr<const tesseract_scene_graph::Joint> joint_;
89  std::string prefix_;
90 
93  template <class Archive>
94  void serialize(Archive& ar, const unsigned int version); // NOLINT
95 };
96 } // namespace tesseract_environment
97 
98 BOOST_CLASS_EXPORT_KEY(tesseract_environment::AddSceneGraphCommand)
99 
100 #endif // TESSERACT_ENVIRONMENT_ADD_SCENE_GRAPH_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::Command
Definition: command.h:83
tesseract_environment::AddSceneGraphCommand::AddSceneGraphCommand
AddSceneGraphCommand()
Definition: add_scene_graph_command.cpp:42
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_scene_graph::SceneGraph
tesseract_common::Serialization
tesseract_environment::AddSceneGraphCommand::scene_graph_
std::shared_ptr< const tesseract_scene_graph::SceneGraph > scene_graph_
Definition: add_scene_graph_command.h:87
tesseract_environment::AddSceneGraphCommand::getPrefix
const std::string & getPrefix() const
Definition: add_scene_graph_command.cpp:67
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::AddSceneGraphCommand::operator!=
bool operator!=(const AddSceneGraphCommand &rhs) const
Definition: add_scene_graph_command.cpp:78
tesseract_environment::AddSceneGraphCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: add_scene_graph_command.cpp:81
tesseract_environment::AddSceneGraphCommand::prefix_
std::string prefix_
Definition: add_scene_graph_command.h:89
tesseract_environment::AddSceneGraphCommand::getSceneGraph
const std::shared_ptr< const tesseract_scene_graph::SceneGraph > & getSceneGraph() const
Definition: add_scene_graph_command.cpp:62
boost::serialization
tesseract_environment::AddSceneGraphCommand
Definition: add_scene_graph_command.h:46
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::AddSceneGraphCommand::operator==
bool operator==(const AddSceneGraphCommand &rhs) const
Definition: add_scene_graph_command.cpp:69
tesseract_environment::AddSceneGraphCommand::joint_
std::shared_ptr< const tesseract_scene_graph::Joint > joint_
Definition: add_scene_graph_command.h:88
fwd.h
tesseract_scene_graph::Joint
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::AddSceneGraphCommand::getJoint
const std::shared_ptr< const tesseract_scene_graph::Joint > & getJoint() const
Definition: add_scene_graph_command.cpp:66
tesseract_environment::AddSceneGraphCommand::access
friend class boost::serialization::access
Definition: add_scene_graph_command.h:91
macros.h


tesseract_environment
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:02:21