Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
move_joint_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_MOVE_JOINT_COMMAND_H
27#define TESSERACT_ENVIRONMENT_MOVE_JOINT_COMMAND_H
28
31#include <boost/serialization/access.hpp>
32#include <memory>
34
36
38{
40{
41public:
42 using Ptr = std::shared_ptr<MoveJointCommand>;
43 using ConstPtr = std::shared_ptr<const MoveJointCommand>;
44
46
55 MoveJointCommand(std::string joint_name, std::string parent_link)
56 : Command(CommandType::MOVE_JOINT), joint_name_(std::move(joint_name)), parent_link_(std::move(parent_link))
57 {
58 }
59
60 const std::string& getJointName() const { return joint_name_; }
61 const std::string& getParentLink() const { return parent_link_; }
62
63 bool operator==(const MoveJointCommand& rhs) const;
64 bool operator!=(const MoveJointCommand& rhs) const;
65
66private:
67 std::string joint_name_;
68 std::string parent_link_;
69
71 template <class Archive>
72 void serialize(Archive& ar, const unsigned int version); // NOLINT
73};
74} // namespace tesseract_environment
75
76#include <boost/serialization/export.hpp>
77#include <boost/serialization/tracking.hpp>
78BOOST_CLASS_EXPORT_KEY2(tesseract_environment::MoveJointCommand, "MoveJointCommand")
79
80#endif // TESSERACT_ENVIRONMENT_MOVE_JOINT_COMMAND_H
Definition: command.h:76
Definition: move_joint_command.h:40
void serialize(Archive &ar, const unsigned int version)
Definition: move_joint_command.cpp:50
MoveJointCommand(std::string joint_name, std::string parent_link)
Move a joint from one link to another.
Definition: move_joint_command.h:55
MoveJointCommand()
Definition: move_joint_command.h:45
const std::string & getJointName() const
Definition: move_joint_command.h:60
std::string parent_link_
Definition: move_joint_command.h:68
bool operator==(const MoveJointCommand &rhs) const
Definition: move_joint_command.cpp:39
const std::string & getParentLink() const
Definition: move_joint_command.h:61
std::string joint_name_
Definition: move_joint_command.h:67
std::shared_ptr< MoveJointCommand > Ptr
Definition: move_joint_command.h:42
bool operator!=(const MoveJointCommand &rhs) const
Definition: move_joint_command.cpp:47
std::shared_ptr< const MoveJointCommand > ConstPtr
Definition: move_joint_command.h:43
friend class boost::serialization::access
Definition: move_joint_command.h:70
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
joint_1 mimic joint_name
Definition: tesseract_scene_graph_joint_unit.cpp:163