Skip to content

Commit

Permalink
renamed variables for consistentcy
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Oct 8, 2024
1 parent 62e98b9 commit f819ef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ class ChainableControllerInterface : public ControllerInterfaceBase
// BEGIN (Handle export change): for backward compatibility
std::vector<double> reference_interfaces_;
// END
std::vector<hardware_interface::CommandInterface::SharedPtr> ordered_reference_interfaces_;
std::vector<hardware_interface::CommandInterface::SharedPtr>
ordered_exported_reference_interfaces_;
std::unordered_map<std::string, hardware_interface::CommandInterface::SharedPtr>
reference_interfaces_ptrs_;

Expand Down
4 changes: 2 additions & 2 deletions controller_interface/src/chainable_controller_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ChainableControllerInterface::export_reference_interfaces()
std::vector<hardware_interface::CommandInterface::SharedPtr> reference_interfaces_ptrs_vec;
reference_interfaces_ptrs_vec.reserve(reference_interfaces.size());
exported_reference_interface_names_.reserve(reference_interfaces.size());
ordered_reference_interfaces_.reserve(reference_interfaces.size());
ordered_exported_reference_interfaces_.reserve(reference_interfaces.size());

// BEGIN (Handle export change): for backward compatibility
// check if the "reference_interfaces_" variable is resized to number of interfaces
Expand Down Expand Up @@ -155,7 +155,7 @@ ChainableControllerInterface::export_reference_interfaces()
reference_interfaces_ptrs_vec.clear();
throw std::runtime_error(error_msg);
}
ordered_reference_interfaces_.push_back(reference_interface);
ordered_exported_reference_interfaces_.push_back(reference_interface);
exported_reference_interface_names_.push_back(inteface_name);
reference_interfaces_ptrs_vec.push_back(reference_interface);
}
Expand Down

0 comments on commit f819ef2

Please sign in to comment.