Skip to content

Commit

Permalink
定数化の解除
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuwamai committed Nov 2, 2023
1 parent 5ca919c commit 6b02791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sciurus17_control/src/sciurus17_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b02791

Please sign in to comment.