Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
change_joint_position_limits_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_CHANGE_JOINT_POSITION_LIMITS_COMMAND_H
27#define TESSERACT_ENVIRONMENT_CHANGE_JOINT_POSITION_LIMITS_COMMAND_H
28
31#include <boost/serialization/access.hpp>
32#include <memory>
33#include <unordered_map>
34#include <cassert>
35#include <algorithm>
37
39
41{
43{
44public:
45 using Ptr = std::shared_ptr<ChangeJointPositionLimitsCommand>;
46 using ConstPtr = std::shared_ptr<const ChangeJointPositionLimitsCommand>;
47
49
55 ChangeJointPositionLimitsCommand(std::string joint_name, double lower, double upper);
56
62 ChangeJointPositionLimitsCommand(std::unordered_map<std::string, std::pair<double, double>> limits);
63
64 const std::unordered_map<std::string, std::pair<double, double>>& getLimits() const;
65
66 bool operator==(const ChangeJointPositionLimitsCommand& rhs) const;
67 bool operator!=(const ChangeJointPositionLimitsCommand& rhs) const;
68
69private:
70 std::unordered_map<std::string, std::pair<double, double>> limits_;
71
73 template <class Archive>
74 void serialize(Archive& ar, const unsigned int version); // NOLINT
75};
76} // namespace tesseract_environment
77
78#include <boost/serialization/export.hpp>
79#include <boost/serialization/tracking.hpp>
80BOOST_CLASS_EXPORT_KEY2(tesseract_environment::ChangeJointPositionLimitsCommand, "ChangeJointPositionLimitsCommand")
81#endif // TESSERACT_ENVIRONMENT_CHANGE_JOINT_POSITION_LIMITS_COMMAND_H
Definition: change_joint_position_limits_command.h:43
std::shared_ptr< const ChangeJointPositionLimitsCommand > ConstPtr
Definition: change_joint_position_limits_command.h:46
bool operator!=(const ChangeJointPositionLimitsCommand &rhs) const
Definition: change_joint_position_limits_command.cpp:77
void serialize(Archive &ar, const unsigned int version)
Definition: change_joint_position_limits_command.cpp:83
bool operator==(const ChangeJointPositionLimitsCommand &rhs) const
Definition: change_joint_position_limits_command.cpp:65
const std::unordered_map< std::string, std::pair< double, double > > & getLimits() const
Definition: change_joint_position_limits_command.cpp:60
ChangeJointPositionLimitsCommand()
Definition: change_joint_position_limits_command.cpp:43
friend class boost::serialization::access
Definition: change_joint_position_limits_command.h:72
std::unordered_map< std::string, std::pair< double, double > > limits_
Definition: change_joint_position_limits_command.h:70
std::shared_ptr< ChangeJointPositionLimitsCommand > Ptr
Definition: change_joint_position_limits_command.h:45
Definition: command.h:76
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
joint_1 limits
Definition: tesseract_scene_graph_joint_unit.cpp:153
j lower
Definition: tesseract_scene_graph_joint_unit.cpp:39
joint_1 mimic joint_name
Definition: tesseract_scene_graph_joint_unit.cpp:163
j upper
Definition: tesseract_scene_graph_joint_unit.cpp:40