Skip to content

Commit

Permalink
return std::string instead of const ref as char * are returned by lif…
Browse files Browse the repository at this point in the history
…ecycle node
  • Loading branch information
saikishor committed Dec 31, 2024
1 parent 3838f45 commit f201856
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class ControllerInterfaceBase : public rclcpp_lifecycle::node_interfaces::Lifecy
*/
void wait_for_trigger_update_to_finish();

const std::string & get_name() const;
std::string get_name() const;

/// Enable or disable introspection of the controller.
/**
Expand Down
2 changes: 1 addition & 1 deletion controller_interface/src/controller_interface_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void ControllerInterfaceBase::wait_for_trigger_update_to_finish()
}
}

const std::string & ControllerInterfaceBase::get_name() const { return get_node()->get_name(); }
std::string ControllerInterfaceBase::get_name() const { return get_node()->get_name(); }

void ControllerInterfaceBase::enable_introspection(bool enable)
{
Expand Down

0 comments on commit f201856

Please sign in to comment.