Skip to content

Commit

Permalink
I dont like supporting multiple versions
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-palmer committed Jun 24, 2024
1 parent bec46a9 commit a41eccd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thruster_hardware/src/hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,12 @@ std::vector<hardware_interface::StateInterface> ThrusterHardware::export_state_i

std::vector<hardware_interface::CommandInterface> ThrusterHardware::export_command_interfaces()
{
// std::vector<hardware_interface::CommandInterface> command_interfaces;
// command_interfaces.reserve(info_.joints.size());
std::vector<hardware_interface::CommandInterface> command_interfaces;
command_interfaces.reserve(info_.joints.size());

// for (size_t i = 0; i < info_.joints.size(); ++i) {
// command_interfaces.emplace_back(info_.joints[i].name, "pwm", &hw_commands_pwm_[i]);
// }
for (size_t i = 0; i < info_.joints.size(); ++i) {
command_interfaces.emplace_back(info_.joints[i].name, "pwm", &hw_commands_pwm_[i]);
}

return command_interfaces;
}
Expand Down

0 comments on commit a41eccd

Please sign in to comment.