Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
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 <boost/serialization/access.hpp>
32#include <memory>
33#include <Eigen/Geometry>
35
37
39{
41{
42public:
43 // LCOV_EXCL_START
44 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
45 // LCOV_EXCL_STOP
46
47 using Ptr = std::shared_ptr<ChangeLinkOriginCommand>;
48 using ConstPtr = std::shared_ptr<const ChangeLinkOriginCommand>;
49
51
52 ChangeLinkOriginCommand(std::string link_name, const Eigen::Isometry3d& origin)
53 : Command(CommandType::CHANGE_LINK_ORIGIN), link_name_(std::move(link_name)), origin_(origin)
54 {
55 }
56
57 const std::string& getLinkName() const { return link_name_; }
58 const Eigen::Isometry3d& getOrigin() const { return origin_; }
59
60 bool operator==(const ChangeLinkOriginCommand& rhs) const;
61 bool operator!=(const ChangeLinkOriginCommand& rhs) const;
62
63private:
64 std::string link_name_;
65 Eigen::Isometry3d origin_{ Eigen::Isometry3d::Identity() };
66
68 template <class Archive>
69 void serialize(Archive& ar, const unsigned int version); // NOLINT
70};
71} // namespace tesseract_environment
72
73#include <boost/serialization/export.hpp>
74#include <boost/serialization/tracking.hpp>
75BOOST_CLASS_EXPORT_KEY2(tesseract_environment::ChangeLinkOriginCommand, "ChangeLinkOriginCommand")
76#endif // TESSERACT_ENVIRONMENT_CHANGE_LINK_ORIGIN_COMMAND_H
Definition: change_link_origin_command.h:41
const Eigen::Isometry3d & getOrigin() const
Definition: change_link_origin_command.h:58
bool operator!=(const ChangeLinkOriginCommand &rhs) const
Definition: change_link_origin_command.cpp:52
bool operator==(const ChangeLinkOriginCommand &rhs) const
Definition: change_link_origin_command.cpp:44
Eigen::Isometry3d origin_
Definition: change_link_origin_command.h:65
std::shared_ptr< ChangeLinkOriginCommand > Ptr
Definition: change_link_origin_command.h:47
std::shared_ptr< const ChangeLinkOriginCommand > ConstPtr
Definition: change_link_origin_command.h:48
std::string link_name_
Definition: change_link_origin_command.h:64
const std::string & getLinkName() const
Definition: change_link_origin_command.h:57
friend class boost::serialization::access
Definition: change_link_origin_command.h:67
void serialize(Archive &ar, const unsigned int version)
Definition: change_link_origin_command.cpp:55
ChangeLinkOriginCommand()
Definition: change_link_origin_command.h:50
ChangeLinkOriginCommand(std::string link_name, const Eigen::Isometry3d &origin)
Definition: change_link_origin_command.h:52
Definition: command.h:76
This contains classes for recording operations applied to the environment for tracking changes....
Common Tesseract Macros.
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
Definition: command.h:39
CommandType
Definition: command.h:41