move_link_command.cpp
Go to the documentation of this file.
1 
28 #include <boost/serialization/access.hpp>
29 #include <boost/serialization/nvp.hpp>
30 #include <boost/serialization/shared_ptr.hpp>
31 #include <memory>
33 
35 #include <tesseract_common/utils.h>
37 
38 namespace tesseract_environment
39 {
41 
43  : Command(CommandType::MOVE_LINK), joint_(std::make_shared<tesseract_scene_graph::Joint>(joint.clone()))
44 {
45 }
46 
48 
50 {
51  bool equal = true;
52  equal &= Command::operator==(rhs);
54  return equal;
55 }
56 bool MoveLinkCommand::operator!=(const MoveLinkCommand& rhs) const { return !operator==(rhs); }
57 
58 template <class Archive>
59 void MoveLinkCommand::serialize(Archive& ar, const unsigned int /*version*/)
60 {
61  ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Command);
62  ar& BOOST_SERIALIZATION_NVP(joint_);
63 }
64 } // namespace tesseract_environment
65 
68 BOOST_CLASS_EXPORT_IMPLEMENT(tesseract_environment::MoveLinkCommand)
tesseract_environment::Command::operator==
bool operator==(const Command &rhs) const
Definition: command.cpp:60
tesseract_environment
Definition: command.h:45
tesseract_environment::MoveLinkCommand::getJoint
const std::shared_ptr< const tesseract_scene_graph::Joint > & getJoint() const
Definition: move_link_command.cpp:47
tesseract_environment::Command
Definition: command.h:83
utils.h
tesseract_environment::MoveLinkCommand::operator!=
bool operator!=(const MoveLinkCommand &rhs) const
Definition: move_link_command.cpp:56
tesseract_common::pointersEqual
bool pointersEqual(const std::shared_ptr< T > &p1, const std::shared_ptr< T > &p2)
TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE
#define TESSERACT_SERIALIZE_ARCHIVES_INSTANTIATE(Type)
joint.h
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_environment::CommandType::MOVE_LINK
@ MOVE_LINK
tesseract_scene_graph::Joint::ConstPtr
std::shared_ptr< const Joint > ConstPtr
tesseract_environment::MoveLinkCommand::joint_
std::shared_ptr< const tesseract_scene_graph::Joint > joint_
Definition: move_link_command.h:68
serialization.h
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_scene_graph::Joint
tesseract_environment::MoveLinkCommand::MoveLinkCommand
MoveLinkCommand()
Definition: move_link_command.cpp:40
tesseract_environment::MoveLinkCommand
Definition: move_link_command.h:45
tesseract_environment::MoveLinkCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: move_link_command.cpp:59
tesseract_environment::MoveLinkCommand::operator==
bool operator==(const MoveLinkCommand &rhs) const
Definition: move_link_command.cpp:49
macros.h
tesseract_scene_graph
tesseract_environment::CommandType
CommandType
Definition: command.h:47


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