We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef5eab5 commit ef21eefCopy full SHA for ef21eef
example_14/hardware/rrbot_sensor_for_position_feedback.cpp
@@ -252,8 +252,8 @@ hardware_interface::return_type RRBotSensorPositionFeedback::read(
252
}
253
254
// integrate velocity to position
255
- auto name = info_.joints[0].name + "/" + hardware_interface::HW_IF_POSITION;
256
- auto new_value = get_state(name) + (last_measured_velocity_ * duration.seconds()) / hw_slowdown_;
+ const auto name = info_.joints[0].name + "/" + hardware_interface::HW_IF_POSITION;
+ const auto new_value = get_state(name) + (last_measured_velocity_ * duration.seconds()) / hw_slowdown_;
257
set_state(name, new_value);
258
259
ss << std::fixed << std::setprecision(2);
0 commit comments