37 : min_position(std::numeric_limits<double>::quiet_NaN()),
38 max_position(std::numeric_limits<double>::quiet_NaN()),
39 max_velocity(std::numeric_limits<double>::quiet_NaN()),
40 max_acceleration(std::numeric_limits<double>::quiet_NaN()),
41 max_deceleration(std::numeric_limits<double>::quiet_NaN()),
42 max_jerk(std::numeric_limits<double>::quiet_NaN()),
43 max_effort(std::numeric_limits<double>::quiet_NaN()),
44 has_position_limits(
false),
45 has_velocity_limits(
false),
46 has_acceleration_limits(
false),
47 has_deceleration_limits(
false),
48 has_jerk_limits(
false),
49 has_effort_limits(
false),
50 angle_wraparound(
false)
57 double max_acceleration;
58 double max_deceleration;
62 bool has_position_limits;
63 bool has_velocity_limits;
64 bool has_acceleration_limits;
65 bool has_deceleration_limits;
67 bool has_effort_limits;
68 bool angle_wraparound;
70 std::string to_string()
const
72 std::stringstream ss_output;
74 ss_output <<
" has position limits: " << (has_position_limits ?
"true" :
"false") <<
" ["
75 << min_position <<
", " << max_position <<
"]\n";
76 ss_output <<
" has velocity limits: " << (has_velocity_limits ?
"true" :
"false") <<
" ["
77 << max_velocity <<
"]\n";
78 ss_output <<
" has acceleration limits: " << (has_acceleration_limits ?
"true" :
"false")
79 <<
" [" << max_acceleration <<
"]\n";
80 ss_output <<
" has deceleration limits: " << (has_deceleration_limits ?
"true" :
"false")
81 <<
" [" << max_deceleration <<
"]\n";
82 ss_output <<
" has jerk limits: " << (has_jerk_limits ?
"true" :
"false") <<
" [" << max_jerk
84 ss_output <<
" has effort limits: " << (has_effort_limits ?
"true" :
"false") <<
" ["
85 << max_effort <<
"]\n";
86 ss_output <<
" angle wraparound: " << (angle_wraparound ?
"true" :
"false");
88 return ss_output.str();
115 : min_position(std::numeric_limits<double>::quiet_NaN()),
116 max_position(std::numeric_limits<double>::quiet_NaN()),
117 k_position(std::numeric_limits<double>::quiet_NaN()),
118 k_velocity(std::numeric_limits<double>::quiet_NaN())
127 std::string to_string()
const
129 std::stringstream ss_output;
131 ss_output <<
" soft position limits: "
132 <<
"[" << min_position <<
", " << max_position <<
"]\n";
134 ss_output <<
" k-position: "
135 <<
"[" << k_position <<
"]\n";
137 ss_output <<
" k-velocity: "
138 <<
"[" << k_velocity <<
"]\n";
140 return ss_output.str();