scene_state.h
Go to the documentation of this file.
1 
30 #ifndef TESSERACT_SCENE_GRAPH_SCENE_STATE_H
31 #define TESSERACT_SCENE_GRAPH_SCENE_STATE_H
32 
35 #include <boost/serialization/export.hpp>
36 #include <Eigen/Core>
37 #include <unordered_map>
38 #include <vector>
39 #include <memory>
41 
42 #include <tesseract_common/fwd.h>
44 
45 namespace boost::serialization
46 {
47 class access;
48 }
49 
50 namespace tesseract_scene_graph
51 {
59 struct SceneState
60 {
61  // LCOV_EXCL_START
62  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
63  // LCOV_EXCL_STOP
64 
65  using Ptr = std::shared_ptr<SceneState>;
66  using ConstPtr = std::shared_ptr<const SceneState>;
67  using UPtr = std::unique_ptr<SceneState>;
68  using ConstUPtr = std::unique_ptr<const SceneState>;
69 
71  std::unordered_map<std::string, double> joints;
72 
75 
78 
81 
82  Eigen::VectorXd getJointValues(const std::vector<std::string>& joint_names) const;
83 
84  tesseract_common::TransformMap getFloatingJointValues(const std::vector<std::string>& joint_names) const;
85 
86  bool operator==(const SceneState& rhs) const;
87  bool operator!=(const SceneState& rhs) const;
88 
89 private:
92  template <class Archive>
93  void serialize(Archive& ar, const unsigned int version); // NOLINT
94 };
95 } // namespace tesseract_scene_graph
96 
97 BOOST_CLASS_EXPORT_KEY(tesseract_scene_graph::SceneState)
98 #endif // TESSERACT_SCENE_GRAPH_SCENE_STATE_H
tesseract_scene_graph::SceneState::floating_joints
tesseract_common::TransformMap floating_joints
The floating joint values used for calculating the joint and link transforms.
Definition: scene_state.h:74
tesseract_scene_graph::SceneState::ConstPtr
std::shared_ptr< const SceneState > ConstPtr
Definition: scene_state.h:66
tesseract_scene_graph::SceneState::ConstUPtr
std::unique_ptr< const SceneState > ConstUPtr
Definition: scene_state.h:68
tesseract_common::TransformMap
AlignedMap< std::string, Eigen::Isometry3d > TransformMap
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
tesseract_scene_graph::SceneState
This holds a state of the scene.
Definition: scene_state.h:59
tesseract_scene_graph::SceneState::Ptr
std::shared_ptr< SceneState > Ptr
Definition: scene_state.h:65
tesseract_scene_graph::SceneState::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: scene_state.cpp:82
tesseract_scene_graph::SceneState::getFloatingJointValues
tesseract_common::TransformMap getFloatingJointValues(const std::vector< std::string > &joint_names) const
Definition: scene_state.cpp:55
tesseract_scene_graph::SceneState::joints
std::unordered_map< std::string, double > joints
The joint values used for calculating the joint and link transforms.
Definition: scene_state.h:71
tesseract_scene_graph::SceneState::operator==
bool operator==(const SceneState &rhs) const
Definition: scene_state.cpp:64
boost::serialization
tesseract_scene_graph::SceneState::UPtr
std::unique_ptr< SceneState > UPtr
Definition: scene_state.h:67
fwd.h
tesseract_scene_graph::SceneState::operator!=
bool operator!=(const SceneState &rhs) const
Definition: scene_state.cpp:79
tesseract_scene_graph::SceneState::access
friend class boost::serialization::access
Definition: scene_state.h:90
eigen_types.h
tesseract_scene_graph::SceneState::joint_transforms
tesseract_common::TransformMap joint_transforms
The joint transforms in world coordinate system.
Definition: scene_state.h:80
TESSERACT_COMMON_IGNORE_WARNINGS_POP
#define TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_scene_graph::SceneState::getJointValues
Eigen::VectorXd getJointValues(const std::vector< std::string > &joint_names) const
Definition: scene_state.cpp:45
tesseract_scene_graph::SceneState::link_transforms
tesseract_common::TransformMap link_transforms
The link transforms in world coordinate system.
Definition: scene_state.h:77
macros.h
tesseract_scene_graph
Definition: fwd.h:32


tesseract_scene_graph
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:49