52 if(joint_limits.
empty())
59 for(
auto it = std::next(joint_limits.
begin()); it != joint_limits.
end(); ++it)
61 if(!eq_func(reference, it->second))
74 if(lhs.has_position_limits != rhs.has_position_limits)
80 if(lhs.has_position_limits && ((lhs.max_position != rhs.max_position) || (lhs.min_position != rhs.min_position))){
90 if(lhs.has_velocity_limits != rhs.has_velocity_limits)
96 if(lhs.has_velocity_limits && (lhs.max_velocity != rhs.max_velocity)){
107 if(lhs.has_acceleration_limits != rhs.has_acceleration_limits)
113 if(lhs.has_acceleration_limits && (lhs.max_acceleration != rhs.max_acceleration)){
static bool validateWithEqualFunc(bool(*eq_func)(const pilz_extensions::JointLimit &, const pilz_extensions::JointLimit &), const pilz::JointLimitsContainer &joint_limits)
static bool validateAllAccelerationLimitsEqual(const pilz::JointLimitsContainer &joint_limits)
Validates that the acceleration of all limits is equal.
static bool validateAllVelocityLimitsEqual(const pilz::JointLimitsContainer &joint_limits)
Validates that the velocity of all limits is equal.
static bool validateAllDecelerationLimitsEqual(const pilz::JointLimitsContainer &joint_limits)
Validates that the deceleration of all limits is equal.
bool has_deceleration_limits
std::map< std::string, pilz_extensions::JointLimit >::const_iterator end() const
ConstIterator to the underlying data structure.
static bool velocityEqual(const pilz_extensions::JointLimit &lhs, const pilz_extensions::JointLimit &rhs)
Container for JointLimits, essentially a map with convenience functions. Adds the ability to as for l...
std::map< std::string, pilz_extensions::JointLimit >::const_iterator begin() const
ConstIterator to the underlying data structure.
bool empty() const
Returns wether the container is empty.
static bool validateAllPositionLimitsEqual(const pilz::JointLimitsContainer &joint_limits)
Validates that the position limits of all limits are equal.
static bool positionEqual(const pilz_extensions::JointLimit &lhs, const pilz_extensions::JointLimit &rhs)
static bool accelerationEqual(const pilz_extensions::JointLimit &lhs, const pilz_extensions::JointLimit &rhs)
static bool decelerationEqual(const pilz_extensions::JointLimit &lhs, const pilz_extensions::JointLimit &rhs)