File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
include/hardware_interface/distributed_control_interface
hardware_interface/distributed_control_interface Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class CommandForwarder final
2424public:
2525 explicit CommandForwarder (
2626 std::unique_ptr<hardware_interface::LoanedCommandInterface> loaned_command_interface_ptr,
27- std::chrono::milliseconds period_in_ms, const std::string & ns = " " );
27+ const std::string & ns, std::chrono::milliseconds period_in_ms );
2828
2929 CommandForwarder () = delete ;
3030
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class StatePublisher final
2222public:
2323 explicit StatePublisher (
2424 std::unique_ptr<hardware_interface::LoanedStateInterface> loaned_state_interface_ptr,
25- std::chrono::milliseconds period_in_ms, const std::string & ns = " " );
25+ const std::string & ns, std::chrono::milliseconds period_in_ms );
2626
2727 StatePublisher () = delete ;
2828
@@ -49,7 +49,7 @@ class StatePublisher final
4949
5050 std::unique_ptr<hardware_interface::LoanedStateInterface> loaned_state_interface_ptr_;
5151 const std::string namespace_;
52- std::chrono::milliseconds period_in_ms_;
52+ const std::chrono::milliseconds period_in_ms_;
5353
5454 const std::string topic_name_;
5555 std::shared_ptr<rclcpp_lifecycle::LifecycleNode> node_;
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ namespace distributed_control
1313
1414CommandForwarder::CommandForwarder (
1515 std::unique_ptr<hardware_interface::LoanedCommandInterface> loaned_command_interface_ptr,
16- std::chrono::milliseconds period_in_ms, const std::string & ns)
16+ const std::string & ns, std::chrono::milliseconds period_in_ms )
1717: loaned_command_interface_ptr_(std::move(loaned_command_interface_ptr)),
18- period_in_ms_ (period_in_ms),
1918 namespace_ (ns),
19+ period_in_ms_(period_in_ms),
2020 topic_name_(loaned_command_interface_ptr_->get_underscore_separated_name () + "_command_state")
2121{
2222 rclcpp::NodeOptions node_options;
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ namespace distributed_control
1313
1414StatePublisher::StatePublisher (
1515 std::unique_ptr<hardware_interface::LoanedStateInterface> loaned_state_interface_ptr,
16- std::chrono::milliseconds period_in_ms, const std::string & ns)
16+ const std::string & ns, std::chrono::milliseconds period_in_ms )
1717: loaned_state_interface_ptr_(std::move(loaned_state_interface_ptr)),
18- period_in_ms_ (period_in_ms),
1918 namespace_ (ns),
19+ period_in_ms_(period_in_ms),
2020 topic_name_(loaned_state_interface_ptr_->get_underscore_separated_name () + "_state")
2121{
2222 rclcpp::NodeOptions node_options;
Original file line number Diff line number Diff line change @@ -966,7 +966,7 @@ ResourceManager::create_hardware_state_publishers(
966966 auto state_publisher = std::make_shared<distributed_control::StatePublisher>(
967967 std::move (std::make_unique<hardware_interface::LoanedStateInterface>(
968968 claim_state_interface (state_interface))),
969- update_period, ns );
969+ ns, update_period );
970970
971971 resource_storage_->add_state_publisher (state_publisher);
972972 state_publishers_vec.push_back (state_publisher);
@@ -988,7 +988,7 @@ ResourceManager::create_hardware_command_forwarders(
988988 auto command_forwarder = std::make_shared<distributed_control::CommandForwarder>(
989989 std::move (std::make_unique<hardware_interface::LoanedCommandInterface>(
990990 claim_command_interface (command_interface))),
991- update_period, ns );
991+ ns, update_period );
992992
993993 resource_storage_->add_command_forwarder (command_forwarder);
994994 command_forwarders_vec.push_back (command_forwarder);
You can’t perform that action at this time.
0 commit comments