Tesseract
Motion Planning Environment
Loading...
Searching...
No Matches
change_joint_acceleration_limits_command.h
Go to the documentation of this file.
1
26#ifndef TESSERACT_ENVIRONMENT_CHANGE_JOINT_ACCELERATION_LIMITS_COMMAND_H
27#define TESSERACT_ENVIRONMENT_CHANGE_JOINT_ACCELERATION_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<ChangeJointAccelerationLimitsCommand>;
46 using ConstPtr = std::shared_ptr<const ChangeJointAccelerationLimitsCommand>;
47
49
55 ChangeJointAccelerationLimitsCommand(std::string joint_name, double limit);
56
61 ChangeJointAccelerationLimitsCommand(std::unordered_map<std::string, double> limits);
62
63 const std::unordered_map<std::string, double>& getLimits() const;
64
67
68private:
69 std::unordered_map<std::string, double> limits_;
70
72 template <class Archive>
73 void serialize(Archive& ar, const unsigned int version); // NOLINT
74};
75} // namespace tesseract_environment
76
77#include <boost/serialization/export.hpp>
78#include <boost/serialization/tracking.hpp>
80 "ChangeJointAccelerationLimitsCommand")
81#endif // TESSERACT_ENVIRONMENT_CHANGE_JOINT_ACCELERATION_LIMITS_COMMAND_H
Definition: change_joint_acceleration_limits_command.h:43
ChangeJointAccelerationLimitsCommand()
Definition: change_joint_acceleration_limits_command.cpp:43
void serialize(Archive &ar, const unsigned int version)
Definition: change_joint_acceleration_limits_command.cpp:77
std::unordered_map< std::string, double > limits_
Definition: change_joint_acceleration_limits_command.h:69
std::shared_ptr< ChangeJointAccelerationLimitsCommand > Ptr
Definition: change_joint_acceleration_limits_command.h:45
std::shared_ptr< const ChangeJointAccelerationLimitsCommand > ConstPtr
Definition: change_joint_acceleration_limits_command.h:46
bool operator!=(const ChangeJointAccelerationLimitsCommand &rhs) const
Definition: change_joint_acceleration_limits_command.cpp:71
friend class boost::serialization::access
Definition: change_joint_acceleration_limits_command.h:71
bool operator==(const ChangeJointAccelerationLimitsCommand &rhs) const
Definition: change_joint_acceleration_limits_command.cpp:64
const std::unordered_map< std::string, double > & getLimits() const
Definition: change_joint_acceleration_limits_command.cpp:59
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
joint_1 mimic joint_name
Definition: tesseract_scene_graph_joint_unit.cpp:163