Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
replace_joint_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_REPLACE_JOINT_COMMAND_H
27#define TESSERACT_ENVIRONMENT_REPLACE_JOINT_COMMAND_H
30#include <boost/serialization/access.hpp>
31#include <memory>
33
36
38{
40{
41public:
42 using Ptr = std::shared_ptr<ReplaceJointCommand>;
43 using ConstPtr = std::shared_ptr<const ReplaceJointCommand>;
44
46
61 : Command(CommandType::REPLACE_JOINT), joint_(std::make_shared<tesseract_scene_graph::Joint>(joint.clone()))
62 {
64 {
65 // if ()
67 }
68 }
69
71
72 bool operator==(const ReplaceJointCommand& rhs) const;
73 bool operator!=(const ReplaceJointCommand& rhs) const;
74
75private:
77
79 template <class Archive>
80 void serialize(Archive& ar, const unsigned int version); // NOLINT
81};
82
83} // namespace tesseract_environment
84
85#include <boost/serialization/export.hpp>
86#include <boost/serialization/tracking.hpp>
87BOOST_CLASS_EXPORT_KEY2(tesseract_environment::ReplaceJointCommand, "ReplaceJointCommand")
88#endif // TESSERACT_ENVIRONMENT_REPLACE_JOINT_COMMAND_H
Definition: command.h:76
Definition: replace_joint_command.h:40
void serialize(Archive &ar, const unsigned int version)
Definition: replace_joint_command.cpp:50
std::shared_ptr< ReplaceJointCommand > Ptr
Definition: replace_joint_command.h:42
const tesseract_scene_graph::Joint::ConstPtr & getJoint() const
Definition: replace_joint_command.h:70
ReplaceJointCommand(const tesseract_scene_graph::Joint &joint)
Replace a joint in the environment.
Definition: replace_joint_command.h:60
ReplaceJointCommand()
Definition: replace_joint_command.h:45
friend class boost::serialization::access
Definition: replace_joint_command.h:78
tesseract_scene_graph::Joint::ConstPtr joint_
Definition: replace_joint_command.h:76
bool operator==(const ReplaceJointCommand &rhs) const
Definition: replace_joint_command.cpp:40
bool operator!=(const ReplaceJointCommand &rhs) const
Definition: replace_joint_command.cpp:47
std::shared_ptr< const ReplaceJointCommand > ConstPtr
Definition: replace_joint_command.h:43
Definition: joint.h:281
std::shared_ptr< const Joint > ConstPtr
Definition: joint.h:286
auto clone
Definition: clone_cache_unit.cpp:126
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
Definition: graph.h:82