@@ -81,63 +81,63 @@ class Robot : public franka::Robot {
8181 * @brief Translational velocity limit [m/s].
8282 */
8383 DynamicsLimit<double > translation_velocity_limit{
84- " translational velocity" , 1.7 , 0.7 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
84+ " translational velocity" , 1.7 , 0.7 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
8585
8686 /* *
8787 * @brief Rotational velocity limit [rad/s].
8888 */
8989 DynamicsLimit<double > rotation_velocity_limit{
90- " rotational velocity" , 2.5 , 2.5 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
90+ " rotational velocity" , 2.5 , 2.5 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
9191
9292 /* *
9393 * @brief Elbow velocity limit [rad/s].
9494 */
9595 DynamicsLimit<double > elbow_velocity_limit{
96- " elbow velocity" , 2.175 , 2.175 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
96+ " elbow velocity" , 2.175 , 2.175 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
9797
9898 /* *
9999 * @brief Translational acceleration limit [m/s²].
100100 */
101101 DynamicsLimit<double > translation_acceleration_limit{
102- " translational acceleration" , 13.0 , 2.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
102+ " translational acceleration" , 13.0 , 2.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
103103
104104 /* *
105105 * @brief Rotational acceleration limit [rad/s²].
106106 */
107107 DynamicsLimit<double > rotation_acceleration_limit{
108- " rotational acceleration" , 25.0 , 10.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
108+ " rotational acceleration" , 25.0 , 10.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
109109
110110 /* *
111111 * @brief Elbow acceleration limit [rad/s²].
112112 */
113113 DynamicsLimit<double > elbow_acceleration_limit{
114- " elbow acceleration" , 10.0 , 4.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
114+ " elbow acceleration" , 10.0 , 4.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
115115
116116 /* *
117117 * @brief Translational jerk limit [m/s³].
118118 */
119119 DynamicsLimit<double > translation_jerk_limit{
120- " translational jerk" , 6500.0 , 500.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
120+ " translational jerk" , 6500.0 , 500.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
121121
122122 /* *
123123 * @brief Rotational jerk limit [rad/s³].
124124 */
125125 DynamicsLimit<double > rotation_jerk_limit{
126- " rotational jerk" , 12500.0 , 2000.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
126+ " rotational jerk" , 12500.0 , 2000.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
127127
128128 /* *
129129 * @brief Elbow jerk limit [rad/s³].
130130 */
131131 DynamicsLimit<double > elbow_jerk_limit{
132- " elbow jerk" , 5000.0 , 800.0 , control_mutex_, std::bind (&Robot::is_in_control_unsafe, this ) };
132+ " elbow jerk" , 5000.0 , 800.0 , control_mutex_, [ this ] { return is_in_control_unsafe (); } };
133133
134134 /* *
135135 * @brief Joint velocity limit [rad/s].
136136 */
137137#define MAX_JOINT_VEL toEigenD<7 >({2.175 , 2.175 , 2.175 , 2.175 , 2.610 , 2.610 , 2.610 })
138138 DynamicsLimit<Vector7d> joint_velocity_limit{
139139 " joint_velocity" , MAX_JOINT_VEL, MAX_JOINT_VEL, control_mutex_,
140- std::bind (&Robot::is_in_control_unsafe, this )
140+ [ this ] { return is_in_control_unsafe (); }
141141 };
142142
143143 /* *
@@ -146,7 +146,7 @@ class Robot : public franka::Robot {
146146#define MAX_JOINT_ACC toEigenD<7 >({15.0 , 7.5 , 10.0 , 12.5 , 15.0 , 20.0 , 20.0 })
147147 DynamicsLimit<Vector7d> joint_acceleration_limit{
148148 " joint_acceleration" , MAX_JOINT_ACC, MAX_JOINT_ACC * 0.3 , control_mutex_,
149- std::bind (&Robot::is_in_control_unsafe, this )
149+ [ this ] { return is_in_control_unsafe (); }
150150 };
151151
152152 /* *
@@ -155,7 +155,7 @@ class Robot : public franka::Robot {
155155#define MAX_JOINT_JERK toEigenD<7 >({7500.0 , 3750.0 , 5000.0 , 6250.0 , 7500.0 , 10000.0 , 10000.0 })
156156 DynamicsLimit<Vector7d> joint_jerk_limit{
157157 " joint_jerk" , MAX_JOINT_JERK, MAX_JOINT_JERK * 0.3 , control_mutex_,
158- std::bind (&Robot::is_in_control_unsafe, this )
158+ [ this ] { return is_in_control_unsafe (); }
159159 };
160160
161161 // clang-format on
0 commit comments