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_jerk(std::numeric_limits<double>::quiet_NaN()),
42 max_effort(std::numeric_limits<double>::quiet_NaN()),
43 has_position_limits(
false),
44 has_velocity_limits(
false),
45 has_acceleration_limits(
false),
46 has_jerk_limits(
false),
47 has_effort_limits(
false),
48 angle_wraparound(
false)
55 double max_acceleration;
59 bool has_position_limits;
60 bool has_velocity_limits;
61 bool has_acceleration_limits;
63 bool has_effort_limits;
64 bool angle_wraparound;
66 std::string to_string()
68 std::stringstream ss_output;
70 ss_output <<
" has position limits: " << (has_position_limits ?
"true" :
"false") <<
" ["
71 << min_position <<
", " << max_position <<
"]\n";
72 ss_output <<
" has velocity limits: " << (has_velocity_limits ?
"true" :
"false") <<
" ["
73 << max_velocity <<
"]\n";
74 ss_output <<
" has acceleration limits: " << (has_acceleration_limits ?
"true" :
"false")
75 <<
" [" << max_acceleration <<
"]\n";
76 ss_output <<
" has jerk limits: " << (has_jerk_limits ?
"true" :
"false") <<
" [" << max_jerk
78 ss_output <<
" has effort limits: " << (has_effort_limits ?
"true" :
"false") <<
" ["
79 << max_effort <<
"]\n";
80 ss_output <<
" angle wraparound: " << (angle_wraparound ?
"true" :
"false");
82 return ss_output.str();
109 : min_position(std::numeric_limits<double>::quiet_NaN()),
110 max_position(std::numeric_limits<double>::quiet_NaN()),
111 k_position(std::numeric_limits<double>::quiet_NaN()),
112 k_velocity(std::numeric_limits<double>::quiet_NaN())
121 std::string to_string()
123 std::stringstream ss_output;
125 ss_output <<
" soft position limits: "
126 <<
"[" << min_position <<
", " << max_position <<
"]\n";
128 ss_output <<
" k-position: "
129 <<
"[" << k_position <<
"]\n";
131 ss_output <<
" k-velocity: "
132 <<
"[" << k_velocity <<
"]\n";
134 return ss_output.str();