26#ifndef TESSERACT_ENVIRONMENT_ADD_LINK_COMMAND_H
27#define TESSERACT_ENVIRONMENT_ADD_LINK_COMMAND_H
31#include <boost/serialization/access.hpp>
44 using Ptr = std::shared_ptr<AddLinkCommand>;
45 using ConstPtr = std::shared_ptr<const AddLinkCommand>;
97 bool replace_allowed =
false)
104 throw std::runtime_error(
"AddLinkCommand: The provided joint child link name must equal the name of the provided "
123 template <
class Archive>
124 void serialize(Archive& ar,
const unsigned int version);
128#include <boost/serialization/export.hpp>
129#include <boost/serialization/tracking.hpp>
Definition: add_link_command.h:42
AddLinkCommand(const tesseract_scene_graph::Link &link, bool replace_allowed=false)
Adds or replace a link to the environment.
Definition: add_link_command.h:67
bool replace_allowed_
Definition: add_link_command.h:120
bool operator!=(const AddLinkCommand &rhs) const
Definition: add_link_command.cpp:49
std::shared_ptr< AddLinkCommand > Ptr
Definition: add_link_command.h:44
bool replaceAllowed() const
Definition: add_link_command.h:112
AddLinkCommand(const tesseract_scene_graph::Link &link, const tesseract_scene_graph::Joint &joint, bool replace_allowed=false)
Adds a link and joint in the environment.
Definition: add_link_command.h:95
tesseract_scene_graph::Link::ConstPtr link_
Definition: add_link_command.h:118
AddLinkCommand()
Definition: add_link_command.h:47
std::shared_ptr< const AddLinkCommand > ConstPtr
Definition: add_link_command.h:45
const tesseract_scene_graph::Link::ConstPtr & getLink() const
Definition: add_link_command.h:110
bool operator==(const AddLinkCommand &rhs) const
Definition: add_link_command.cpp:40
const tesseract_scene_graph::Joint::ConstPtr & getJoint() const
Definition: add_link_command.h:111
friend class boost::serialization::access
Definition: add_link_command.h:122
tesseract_scene_graph::Joint::ConstPtr joint_
Definition: add_link_command.h:119
void serialize(Archive &ar, const unsigned int version)
Definition: add_link_command.cpp:52
std::shared_ptr< const Joint > ConstPtr
Definition: joint.h:286
const std::string & getName() const
Definition: link.h:203
std::shared_ptr< const Link > ConstPtr
Definition: link.h:191
auto clone
Definition: clone_cache_unit.cpp:126
This contains classes for recording operations applied to the environment for tracking changes....
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
Definition: macros.h:71
Definition: create_convex_hull.cpp:36
CommandType
Definition: command.h:41