26 constexpr
double kNormEps = std::numeric_limits<double>::epsilon();
59 2.1750 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[1],
60 2.1750 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[2],
61 2.1750 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[3],
62 2.6100 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[4],
63 2.6100 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[5],
64 2.6100 - kLimitEps - kTolNumberPacketsLost* kDeltaT* kMaxJointAcceleration[6]}};
120 std::array<double, 7>
limitRate(
const std::array<double, 7>& max_derivatives,
121 const std::array<double, 7>& commanded_values,
122 const std::array<double, 7>& last_commanded_values);
142 double max_acceleration,
144 double commanded_velocity,
145 double last_commanded_velocity,
146 double last_commanded_acceleration);
167 double max_acceleration,
169 double commanded_position,
170 double last_commanded_position,
171 double last_commanded_velocity,
172 double last_commanded_acceleration);
191 std::array<double, 7>
limitRate(
const std::array<double, 7>& max_velocity,
192 const std::array<double, 7>& max_acceleration,
193 const std::array<double, 7>& max_jerk,
194 const std::array<double, 7>& commanded_velocities,
195 const std::array<double, 7>& last_commanded_velocities,
196 const std::array<double, 7>& last_commanded_accelerations);
216 std::array<double, 7>
limitRate(
const std::array<double, 7>& max_velocity,
217 const std::array<double, 7>& max_acceleration,
218 const std::array<double, 7>& max_jerk,
219 const std::array<double, 7>& commanded_positions,
220 const std::array<double, 7>& last_commanded_positions,
221 const std::array<double, 7>& last_commanded_velocities,
222 const std::array<double, 7>& last_commanded_accelerations);
245 double max_translational_velocity,
246 double max_translational_acceleration,
247 double max_translational_jerk,
248 double max_rotational_velocity,
249 double max_rotational_acceleration,
250 double max_rotational_jerk,
251 const std::array<double, 6>& O_dP_EE_c,
252 const std::array<double, 6>& last_O_dP_EE_c,
253 const std::array<double, 6>& last_O_ddP_EE_c);
277 double max_translational_velocity,
278 double max_translational_acceleration,
279 double max_translational_jerk,
280 double max_rotational_velocity,
281 double max_rotational_acceleration,
282 double max_rotational_jerk,
283 const std::array<double, 16>& O_T_EE_c,
284 const std::array<double, 16>& last_O_T_EE_c,
285 const std::array<double, 6>& last_O_dP_EE_c,
286 const std::array<double, 6>& last_O_ddP_EE_c);
constexpr double kMaxElbowJerk
Maximum elbow jerk.
constexpr std::array< double, 7 > kMaxJointVelocity
Maximum joint velocity.
constexpr double kMaxTranslationalVelocity
Maximum translational velocity.
constexpr double kMaxTranslationalAcceleration
Maximum translational acceleration.
constexpr double kNormEps
Epsilon value for limiting Cartesian accelerations/jerks or not.
constexpr std::array< double, 7 > kMaxTorqueRate
Maximum torque rate.
constexpr std::array< double, 7 > kMaxJointJerk
Maximum joint jerk.
std::array< double, 7 > limitRate(const std::array< double, 7 > &max_derivatives, const std::array< double, 7 > &commanded_values, const std::array< double, 7 > &last_commanded_values)
Limits the rate of an input vector of per-joint commands considering the maximum allowed time derivat...
constexpr double kMaxElbowAcceleration
Maximum elbow acceleration.
constexpr double kFactorCartesianRotationPoseInterface
Factor for the definition of rotational limits using the Cartesian Pose interface.
constexpr double kTolNumberPacketsLost
Number of packets losts considered for the definition of velocity limits.
constexpr double kLimitEps
Epsilon value for checking limits.
constexpr double kMaxTranslationalJerk
Maximum translational jerk.
constexpr double kMaxRotationalJerk
Maximum rotational jerk.
constexpr double kMaxElbowVelocity
Maximum elbow velocity.
constexpr double kMaxRotationalAcceleration
Maximum rotational acceleration.
constexpr std::array< double, 7 > kMaxJointAcceleration
Maximum joint acceleration.
constexpr double kMaxRotationalVelocity
Maximum rotational velocity.
constexpr double kDeltaT
Sample time constant.