add_trajectory_link_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_ADD_TRAJECTORY_LINK_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_ADD_TRAJECTORY_LINK_COMMAND_H
28 
31 #include <memory>
32 #include <boost/serialization/export.hpp>
34 
37 
38 namespace boost::serialization
39 {
40 class access;
41 }
42 
43 namespace tesseract_environment
44 {
46 {
47 public:
48  using Ptr = std::shared_ptr<AddTrajectoryLinkCommand>;
49  using ConstPtr = std::shared_ptr<const AddTrajectoryLinkCommand>;
50 
73  AddTrajectoryLinkCommand(std::string link_name,
74  std::string parent_link_name,
76  bool replace_allowed = false);
77 
78  const std::string& getLinkName() const;
79  const std::string& getParentLinkName() const;
81  bool replaceAllowed() const;
82 
83  bool operator==(const AddTrajectoryLinkCommand& rhs) const;
84  bool operator!=(const AddTrajectoryLinkCommand& rhs) const;
85 
86 private:
87  std::string link_name_;
88  std::string parent_link_name_;
90  bool replace_allowed_{ false };
91 
94  template <class Archive>
95  void serialize(Archive& ar, const unsigned int version); // NOLINT
96 };
97 } // namespace tesseract_environment
98 
100 
101 #endif // TESSERACT_ENVIRONMENT_ADD_TRAJECTORY_LINK_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::Command
Definition: command.h:83
tesseract_environment::AddTrajectoryLinkCommand::getTrajectory
const tesseract_common::JointTrajectory & getTrajectory() const
Definition: add_trajectory_link_command.cpp:56
tesseract_environment::AddTrajectoryLinkCommand::replaceAllowed
bool replaceAllowed() const
Definition: add_trajectory_link_command.cpp:57
tesseract_environment::AddTrajectoryLinkCommand::getLinkName
const std::string & getLinkName() const
Definition: add_trajectory_link_command.cpp:54
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
tesseract_environment::AddTrajectoryLinkCommand
Definition: add_trajectory_link_command.h:45
tesseract_environment::AddTrajectoryLinkCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: add_trajectory_link_command.cpp:72
tesseract_environment::AddTrajectoryLinkCommand::replace_allowed_
bool replace_allowed_
Definition: add_trajectory_link_command.h:90
tesseract_environment::AddTrajectoryLinkCommand::AddTrajectoryLinkCommand
AddTrajectoryLinkCommand()
Definition: add_trajectory_link_command.cpp:40
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::AddTrajectoryLinkCommand::trajectory_
tesseract_common::JointTrajectory trajectory_
Definition: add_trajectory_link_command.h:89
tesseract_environment::AddTrajectoryLinkCommand::getParentLinkName
const std::string & getParentLinkName() const
Definition: add_trajectory_link_command.cpp:55
tesseract_common::JointTrajectory
tesseract_environment::AddTrajectoryLinkCommand::parent_link_name_
std::string parent_link_name_
Definition: add_trajectory_link_command.h:88
boost::serialization
joint_state.h
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::AddTrajectoryLinkCommand::operator==
bool operator==(const AddTrajectoryLinkCommand &rhs) const
Definition: add_trajectory_link_command.cpp:59
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::AddTrajectoryLinkCommand::operator!=
bool operator!=(const AddTrajectoryLinkCommand &rhs) const
Definition: add_trajectory_link_command.cpp:69
macros.h
tesseract_environment::AddTrajectoryLinkCommand::link_name_
std::string link_name_
Definition: add_trajectory_link_command.h:87
tesseract_environment::AddTrajectoryLinkCommand::access
friend class boost::serialization::access
Definition: add_trajectory_link_command.h:92


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