Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::environment::ChangeJointPositionLimitsCommand Class Reference
Inheritance diagram for tesseract::environment::ChangeJointPositionLimitsCommand:

Public Types

using Ptr = std::shared_ptr<ChangeJointPositionLimitsCommand>
using ConstPtr = std::shared_ptr<const ChangeJointPositionLimitsCommand>
Public Types inherited from tesseract::environment::Command
using Ptr = std::shared_ptr<Command>
using ConstPtr = std::shared_ptr<const Command>

Public Member Functions

 ChangeJointPositionLimitsCommand (common::JointId joint_id, double lower, double upper)
 Changes the position limits associated with a joint.
 ChangeJointPositionLimitsCommand (std::unordered_map< common::JointId, std::pair< double, double > > limits)
 Changes the position limits associated with one or more joints.
const std::unordered_map< common::JointId, std::pair< double, double > > & getLimits () const
bool operator== (const ChangeJointPositionLimitsCommand &rhs) const
bool operator!= (const ChangeJointPositionLimitsCommand &rhs) const
Public Member Functions inherited from tesseract::environment::Command
 Command (CommandType type=CommandType::UNINITIALIZED)
 Command (const Command &)=default
Command & operator= (const Command &)=default
 Command (Command &&)=default
Command & operator= (Command &&)=default
CommandType getType () const
bool operator== (const Command &rhs) const
bool operator!= (const Command &rhs) const

Friends

template<class Archive>
friend void::tesseract::environment::serialize (Archive &ar, ChangeJointPositionLimitsCommand &obj)

Constructor & Destructor Documentation

◆ ChangeJointPositionLimitsCommand() [1/2]

tesseract::environment::ChangeJointPositionLimitsCommand::ChangeJointPositionLimitsCommand ( common::JointId joint_id,
double lower,
double upper )

Changes the position limits associated with a joint.

Parameters
joint_idId of the joint to be updated
limitsNew position limits to be set as the joint limits

◆ ChangeJointPositionLimitsCommand() [2/2]

tesseract::environment::ChangeJointPositionLimitsCommand::ChangeJointPositionLimitsCommand ( std::unordered_map< common::JointId, std::pair< double, double > > limits)

Changes the position limits associated with one or more joints.

Parameters
limitsA map of joint ids to new position limits. For each limit pair, first is the lower limit second is the upper limit