Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
move_link_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_MOVE_LINK_COMMAND_H
27#define TESSERACT_ENVIRONMENT_MOVE_LINK_COMMAND_H
28
31#include <boost/serialization/access.hpp>
32#include <memory>
34
37
39{
41{
42public:
43 using Ptr = std::shared_ptr<MoveLinkCommand>;
44 using ConstPtr = std::shared_ptr<const MoveLinkCommand>;
45
47
56 : Command(CommandType::MOVE_LINK), joint_(std::make_shared<tesseract_scene_graph::Joint>(joint.clone()))
57 {
58 }
59
61
62 bool operator==(const MoveLinkCommand& rhs) const;
63 bool operator!=(const MoveLinkCommand& rhs) const;
64
65private:
67
69 template <class Archive>
70 void serialize(Archive& ar, const unsigned int version); // NOLINT
71};
72} // namespace tesseract_environment
73
74#include <boost/serialization/export.hpp>
75#include <boost/serialization/tracking.hpp>
76BOOST_CLASS_EXPORT_KEY2(tesseract_environment::MoveLinkCommand, "MoveLinkCommand")
77#endif // TESSERACT_ENVIRONMENT_MOVE_LINK_COMMAND_H
Definition: command.h:76
Definition: move_link_command.h:41
const tesseract_scene_graph::Joint::ConstPtr & getJoint() const
Definition: move_link_command.h:60
bool operator!=(const MoveLinkCommand &rhs) const
Definition: move_link_command.cpp:47
MoveLinkCommand()
Definition: move_link_command.h:46
bool operator==(const MoveLinkCommand &rhs) const
Definition: move_link_command.cpp:40
void serialize(Archive &ar, const unsigned int version)
Definition: move_link_command.cpp:50
std::shared_ptr< MoveLinkCommand > Ptr
Definition: move_link_command.h:43
friend class boost::serialization::access
Definition: move_link_command.h:68
MoveLinkCommand(const tesseract_scene_graph::Joint &joint)
Move a link in the environment.
Definition: move_link_command.h:55
tesseract_scene_graph::Joint::ConstPtr joint_
Definition: move_link_command.h:66
std::shared_ptr< const MoveLinkCommand > ConstPtr
Definition: move_link_command.h:44
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