replace_joint_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::REPLACE_JOINT), joint_(std::make_shared<tesseract_scene_graph::Joint>(joint.clone()))
44 {
46  {
47  // if ()
49  }
50 }
51 
53 
55 {
56  bool equal = true;
57  equal &= Command::operator==(rhs);
59  return equal;
60 }
61 bool ReplaceJointCommand::operator!=(const ReplaceJointCommand& rhs) const { return !operator==(rhs); }
62 
63 template <class Archive>
64 void ReplaceJointCommand::serialize(Archive& ar, const unsigned int /*version*/)
65 {
66  ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Command);
67  ar& BOOST_SERIALIZATION_NVP(joint_);
68 }
69 } // namespace tesseract_environment
70 
73 BOOST_CLASS_EXPORT_IMPLEMENT(tesseract_environment::ReplaceJointCommand)
tesseract_environment::Command::operator==
bool operator==(const Command &rhs) const
Definition: command.cpp:60
tesseract_environment::ReplaceJointCommand::ReplaceJointCommand
ReplaceJointCommand()
Definition: replace_joint_command.cpp:40
tesseract_environment
Definition: command.h:45
tesseract_environment::ReplaceJointCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: replace_joint_command.cpp:64
tesseract_environment::Command
Definition: command.h:83
utils.h
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)
tesseract_environment::ReplaceJointCommand::operator!=
bool operator!=(const ReplaceJointCommand &rhs) const
Definition: replace_joint_command.cpp:61
joint.h
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
replace_joint_command.h
Used to replace joint in environment.
tesseract_scene_graph::Joint::ConstPtr
std::shared_ptr< const Joint > ConstPtr
tesseract_environment::ReplaceJointCommand::getJoint
const std::shared_ptr< const tesseract_scene_graph::Joint > & getJoint() const
Definition: replace_joint_command.cpp:52
serialization.h
tesseract_environment::CommandType::REPLACE_JOINT
@ REPLACE_JOINT
tesseract_environment::ReplaceJointCommand
Definition: replace_joint_command.h:44
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_scene_graph::Joint
tesseract_environment::ReplaceJointCommand::joint_
std::shared_ptr< const tesseract_scene_graph::Joint > joint_
Definition: replace_joint_command.h:73
macros.h
tesseract_scene_graph
tesseract_environment::ReplaceJointCommand::operator==
bool operator==(const ReplaceJointCommand &rhs) const
Definition: replace_joint_command.cpp:54
tesseract_environment::CommandType
CommandType
Definition: command.h:47
tesseract_scene_graph::JointType::FIXED
@ FIXED


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