change_link_origin_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_CHANGE_LINK_ORIGIN_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_CHANGE_LINK_ORIGIN_COMMAND_H
28 
31 #include <memory>
32 #include <Eigen/Geometry>
33 #include <boost/serialization/export.hpp>
35 
37 
38 namespace boost::serialization
39 {
40 class access;
41 }
42 
43 namespace tesseract_environment
44 {
46 {
47 public:
48  // LCOV_EXCL_START
49  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
50  // LCOV_EXCL_STOP
51 
52  using Ptr = std::shared_ptr<ChangeLinkOriginCommand>;
53  using ConstPtr = std::shared_ptr<const ChangeLinkOriginCommand>;
54 
56 
57  ChangeLinkOriginCommand(std::string link_name, const Eigen::Isometry3d& origin);
58 
59  const std::string& getLinkName() const;
60  const Eigen::Isometry3d& getOrigin() const;
61 
62  bool operator==(const ChangeLinkOriginCommand& rhs) const;
63  bool operator!=(const ChangeLinkOriginCommand& rhs) const;
64 
65 private:
66  std::string link_name_;
67  Eigen::Isometry3d origin_{ Eigen::Isometry3d::Identity() };
68 
71  template <class Archive>
72  void serialize(Archive& ar, const unsigned int version); // NOLINT
73 };
74 } // namespace tesseract_environment
75 
77 #endif // TESSERACT_ENVIRONMENT_CHANGE_LINK_ORIGIN_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::ChangeLinkOriginCommand::operator==
bool operator==(const ChangeLinkOriginCommand &rhs) const
Definition: change_link_origin_command.cpp:54
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
tesseract_environment::ChangeLinkOriginCommand::link_name_
std::string link_name_
Definition: change_link_origin_command.h:66
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::ChangeLinkOriginCommand::ChangeLinkOriginCommand
ChangeLinkOriginCommand()
Definition: change_link_origin_command.cpp:43
tesseract_environment::ChangeLinkOriginCommand::access
friend class boost::serialization::access
Definition: change_link_origin_command.h:69
tesseract_environment::ChangeLinkOriginCommand::origin_
Eigen::Isometry3d origin_
Definition: change_link_origin_command.h:67
tesseract_environment::ChangeLinkOriginCommand::operator!=
bool operator!=(const ChangeLinkOriginCommand &rhs) const
Definition: change_link_origin_command.cpp:62
boost::serialization
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::ChangeLinkOriginCommand::getOrigin
const Eigen::Isometry3d & getOrigin() const
Definition: change_link_origin_command.cpp:52
tesseract_environment::ChangeLinkOriginCommand
Definition: change_link_origin_command.h:45
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
macros.h
tesseract_environment::ChangeLinkOriginCommand::getLinkName
const std::string & getLinkName() const
Definition: change_link_origin_command.cpp:51
tesseract_environment::ChangeLinkOriginCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: change_link_origin_command.cpp:65


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