Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class DynamixelHardware : public
* @return Callback return indicating success or error.
*/
DYNAMIXEL_HARDWARE_INTERFACE_PUBLIC
hardware_interface::CallbackReturn on_init(const hardware_interface::HardwareInfo & info)
override;
hardware_interface::CallbackReturn on_init(
const hardware_interface::HardwareComponentInterfaceParams & params) override;
Comment on lines +119 to +120
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While the function signature is correctly updated, the corresponding Doxygen comment at line 115 is now out of sync. Please update the @param tag to reflect the new parameter name and type for better code clarity and maintainability.

For example:

   * @param params Parameters for the hardware component interface.


/**
* @brief Exports state interfaces for ROS2.
Expand Down
4 changes: 2 additions & 2 deletions src/dynamixel_hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ DynamixelHardware::~DynamixelHardware()
}

hardware_interface::CallbackReturn DynamixelHardware::on_init(
const hardware_interface::HardwareInfo & info)
const hardware_interface::HardwareComponentInterfaceParams & params)
{
if (hardware_interface::SystemInterface::on_init(info) !=
if (hardware_interface::SystemInterface::on_init(params) !=
hardware_interface::CallbackReturn::SUCCESS)
{
RCLCPP_ERROR_STREAM(logger_, "Failed to initialize DynamixelHardware");
Expand Down