From 6b02791ae2c29e5de804d7b075aede0ba71ab6c2 Mon Sep 17 00:00:00 2001 From: Kuwagata Date: Thu, 2 Nov 2023 18:53:26 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=95=B0=E5=8C=96=E3=81=AE=E8=A7=A3?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sciurus17_control/src/sciurus17_hardware.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sciurus17_control/src/sciurus17_hardware.cpp b/sciurus17_control/src/sciurus17_hardware.cpp index e096348e..97cdeb68 100644 --- a/sciurus17_control/src/sciurus17_hardware.cpp +++ b/sciurus17_control/src/sciurus17_hardware.cpp @@ -180,8 +180,8 @@ CallbackReturn Sciurus17Hardware::on_activate(const rclcpp_lifecycle::State & /* read(prev_comm_timestamp_, rclcpp::Duration::from_seconds(0)); for (const auto & joint : info_.joints) { const auto present_position = hw_position_states_[joint.name]; - const auto limit_min = present_position; - const auto limit_max = present_position; + auto limit_min = present_position; + auto limit_max = present_position; for (const auto & interface : joint.command_interfaces) { if (interface.name == "position") { limit_min = std::stod(interface.min);