change_joint_velocity_limits_command.h
Go to the documentation of this file.
1 
26 #ifndef TESSERACT_ENVIRONMENT_CHANGE_JOINT_VELOCITY_LIMITS_COMMAND_H
27 #define TESSERACT_ENVIRONMENT_CHANGE_JOINT_VELOCITY_LIMITS_COMMAND_H
28 
31 #include <memory>
32 #include <string>
33 #include <unordered_map>
34 #include <boost/serialization/export.hpp>
36 
38 
39 namespace boost::serialization
40 {
41 class access;
42 }
43 
44 namespace tesseract_environment
45 {
47 {
48 public:
49  using Ptr = std::shared_ptr<ChangeJointVelocityLimitsCommand>;
50  using ConstPtr = std::shared_ptr<const ChangeJointVelocityLimitsCommand>;
51 
53 
59  ChangeJointVelocityLimitsCommand(std::string joint_name, double limit);
60 
65  ChangeJointVelocityLimitsCommand(std::unordered_map<std::string, double> limits);
66 
67  const std::unordered_map<std::string, double>& getLimits() const;
68 
69  bool operator==(const ChangeJointVelocityLimitsCommand& rhs) const;
70  bool operator!=(const ChangeJointVelocityLimitsCommand& rhs) const;
71 
72 private:
73  std::unordered_map<std::string, double> limits_;
74 
77  template <class Archive>
78  void serialize(Archive& ar, const unsigned int version); // NOLINT
79 };
80 } // namespace tesseract_environment
81 
83 #endif // TESSERACT_ENVIRONMENT_CHANGE_JOINT_VELOCITY_LIMITS_COMMAND_H
tesseract_environment::Command::Ptr
std::shared_ptr< Command > Ptr
Definition: command.h:86
tesseract_environment
Definition: command.h:45
tesseract_environment::ChangeJointVelocityLimitsCommand::operator!=
bool operator!=(const ChangeJointVelocityLimitsCommand &rhs) const
Definition: change_joint_velocity_limits_command.cpp:66
tesseract_environment::Command
Definition: command.h:83
TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
#define TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
tesseract_common::Serialization
command.h
This contains classes for recording operations applied to the environment for tracking changes....
tesseract_environment::ChangeJointVelocityLimitsCommand::access
friend class boost::serialization::access
Definition: change_joint_velocity_limits_command.h:75
boost::serialization
TESSERACT_COMMON_IGNORE_WARNINGS_POP
tesseract_environment::ChangeJointVelocityLimitsCommand::getLimits
const std::unordered_map< std::string, double > & getLimits() const
Definition: change_joint_velocity_limits_command.cpp:57
tesseract_environment::ChangeJointVelocityLimitsCommand
Definition: change_joint_velocity_limits_command.h:46
tesseract_environment::Command::ConstPtr
std::shared_ptr< const Command > ConstPtr
Definition: command.h:87
tesseract_environment::ChangeJointVelocityLimitsCommand::ChangeJointVelocityLimitsCommand
ChangeJointVelocityLimitsCommand()
Definition: change_joint_velocity_limits_command.cpp:42
tesseract_environment::ChangeJointVelocityLimitsCommand::serialize
void serialize(Archive &ar, const unsigned int version)
Definition: change_joint_velocity_limits_command.cpp:72
tesseract_environment::ChangeJointVelocityLimitsCommand::limits_
std::unordered_map< std::string, double > limits_
Definition: change_joint_velocity_limits_command.h:73
macros.h
tesseract_environment::ChangeJointVelocityLimitsCommand::operator==
bool operator==(const ChangeJointVelocityLimitsCommand &rhs) const
Definition: change_joint_velocity_limits_command.cpp:59


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