Skip to content

Commit

Permalink
auto型推定の使用
Browse files Browse the repository at this point in the history
Co-authored-by: Shota Aoki <[email protected]>
  • Loading branch information
Kuwamai and Shota Aoki authored Nov 2, 2023
1 parent a469bb7 commit 7deedc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sciurus17_control/src/sciurus17_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ CallbackReturn Sciurus17Hardware::on_activate(const rclcpp_lifecycle::State & /*
// Set present joint positions to hw_position_commands for safe start-up.
read(prev_comm_timestamp_, rclcpp::Duration::from_seconds(0));
for (auto joint : info_.joints) {
double present_position = hw_position_states_[joint.name];
double limit_min = present_position;
double limit_max = present_position;
const auto present_position = hw_position_states_[joint.name];
const auto limit_min = present_position;
const auto limit_max = present_position;
for (auto interface : joint.command_interfaces) {
if (interface.name == "position") {
limit_min = std::stod(interface.min);
Expand Down

0 comments on commit 7deedc2

Please sign in to comment.