Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
remove_link_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
27#define TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
28
31#include <boost/serialization/access.hpp>
32#include <memory>
34
36
38{
40{
41public:
42 using Ptr = std::shared_ptr<RemoveLinkCommand>;
43 using ConstPtr = std::shared_ptr<const RemoveLinkCommand>;
44
46
54 RemoveLinkCommand(std::string link_name) : Command(CommandType::REMOVE_LINK), link_name_(std::move(link_name)) {}
55
56 const std::string& getLinkName() const { return link_name_; }
57
58 bool operator==(const RemoveLinkCommand& rhs) const;
59 bool operator!=(const RemoveLinkCommand& rhs) const;
60
61private:
62 std::string link_name_;
63
65 template <class Archive>
66 void serialize(Archive& ar, const unsigned int version); // NOLINT
67};
68
69} // namespace tesseract_environment
70
71#include <boost/serialization/export.hpp>
72#include <boost/serialization/tracking.hpp>
73BOOST_CLASS_EXPORT_KEY2(tesseract_environment::RemoveLinkCommand, "RemoveLinkCommand")
74#endif // TESSERACT_ENVIRONMENT_REMOVE_LINK_COMMAND_H
Definition: command.h:76
Definition: remove_link_command.h:40
RemoveLinkCommand()
Definition: remove_link_command.h:45
std::shared_ptr< const RemoveLinkCommand > ConstPtr
Definition: remove_link_command.h:43
RemoveLinkCommand(std::string link_name)
Removes a link from the environment.
Definition: remove_link_command.h:54
bool operator==(const RemoveLinkCommand &rhs) const
Definition: remove_link_command.cpp:39
std::string link_name_
Definition: remove_link_command.h:62
bool operator!=(const RemoveLinkCommand &rhs) const
Definition: remove_link_command.cpp:46
const std::string & getLinkName() const
Definition: remove_link_command.h:56
friend class boost::serialization::access
Definition: remove_link_command.h:64
void serialize(Archive &ar, const unsigned int version)
Definition: remove_link_command.cpp:49
std::shared_ptr< RemoveLinkCommand > Ptr
Definition: remove_link_command.h:42
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