Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
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/access.hpp>
36#include <Eigen/Core>
37#include <unordered_map>
38#include <vector>
39#include <memory>
41
43
45{
54{
55 // LCOV_EXCL_START
56 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
57 // LCOV_EXCL_STOP
58
59 using Ptr = std::shared_ptr<SceneState>;
60 using ConstPtr = std::shared_ptr<const SceneState>;
61 using UPtr = std::unique_ptr<SceneState>;
62 using ConstUPtr = std::unique_ptr<const SceneState>;
63
65 std::unordered_map<std::string, double> joints;
66
69
72
73 Eigen::VectorXd getJointValues(const std::vector<std::string>& joint_names) const;
74
75 bool operator==(const SceneState& rhs) const;
76 bool operator!=(const SceneState& rhs) const;
77
78private:
80 template <class Archive>
81 void serialize(Archive& ar, const unsigned int version); // NOLINT
82};
83} // namespace tesseract_scene_graph
84
85#include <boost/serialization/export.hpp>
86#include <boost/serialization/tracking.hpp>
87BOOST_CLASS_EXPORT_KEY2(tesseract_scene_graph::SceneState, "SceneState")
88#endif // TESSERACT_SCENE_GRAPH_SCENE_STATE_H
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
AlignedMap< std::string, Eigen::Isometry3d > TransformMap
Definition: types.h:66
Definition: graph.h:82
This holds a state of the scene.
Definition: scene_state.h:54
std::unique_ptr< const SceneState > ConstUPtr
Definition: scene_state.h:62
void serialize(Archive &ar, const unsigned int version)
Definition: scene_state.cpp:73
tesseract_common::TransformMap link_transforms
The link transforms in world coordinate system.
Definition: scene_state.h:68
Eigen::VectorXd getJointValues(const std::vector< std::string > &joint_names) const
Definition: scene_state.cpp:46
std::shared_ptr< const SceneState > ConstPtr
Definition: scene_state.h:60
bool operator==(const SceneState &rhs) const
Definition: scene_state.cpp:56
friend class boost::serialization::access
Definition: scene_state.h:79
std::unordered_map< std::string, double > joints
The joint values used for calculating the joint and link transforms.
Definition: scene_state.h:65
bool operator!=(const SceneState &rhs) const
Definition: scene_state.cpp:70
tesseract_common::TransformMap joint_transforms
The joint transforms in world coordinate system.
Definition: scene_state.h:71
std::shared_ptr< SceneState > Ptr
Definition: scene_state.h:59
std::unique_ptr< SceneState > UPtr
Definition: scene_state.h:61
Common Tesseract Types.
joint_state joint_names
Definition: tesseract_common_serialization_unit.cpp:75