From 7deedc2de2b34273c39e5ac07a1974a464d95262 Mon Sep 17 00:00:00 2001 From: Kuwamai Date: Thu, 2 Nov 2023 18:42:26 +0900 Subject: [PATCH] =?UTF-8?q?auto=E5=9E=8B=E6=8E=A8=E5=AE=9A=E3=81=AE?= =?UTF-8?q?=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Shota Aoki --- sciurus17_control/src/sciurus17_hardware.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sciurus17_control/src/sciurus17_hardware.cpp b/sciurus17_control/src/sciurus17_hardware.cpp index 2fc169b..bd21e4a 100644 --- a/sciurus17_control/src/sciurus17_hardware.cpp +++ b/sciurus17_control/src/sciurus17_hardware.cpp @@ -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);