Skip to content

Commit

Permalink
Fix the export naming in the pid_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Feb 5, 2025
1 parent 9167331 commit 091b68c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pid_controller/src/pid_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,8 @@ std::vector<hardware_interface::StateInterface> PidController::on_export_state_i
for (const auto & dof_name : reference_and_state_dof_names_)
{
state_interfaces.push_back(hardware_interface::StateInterface(
get_node()->get_name(), dof_name + "/" + interface, &state_interfaces_values_[index]));
std::string(get_node()->get_name()) + "/" + dof_name, interface,
&state_interfaces_values_[index]));
++index;
}
}
Expand Down

0 comments on commit 091b68c

Please sign in to comment.