diff --git a/robotiq_controllers/src/robotiq_activation_controller.cpp b/robotiq_controllers/src/robotiq_activation_controller.cpp index aa63d21..e4ebf07 100644 --- a/robotiq_controllers/src/robotiq_activation_controller.cpp +++ b/robotiq_controllers/src/robotiq_activation_controller.cpp @@ -108,11 +108,11 @@ bool RobotiqActivationController::reactivateGripper(std_srvs::srv::Trigger::Requ command_interfaces_[REACTIVATE_GRIPPER_RESPONSE].set_value(ASYNC_WAITING); command_interfaces_[REACTIVATE_GRIPPER_CMD].set_value(1.0); - while (command_interfaces_[REACTIVATE_GRIPPER_RESPONSE].get_value() == ASYNC_WAITING) + while (command_interfaces_[REACTIVATE_GRIPPER_RESPONSE].get_optional().value() == ASYNC_WAITING) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); } - resp->success = command_interfaces_[REACTIVATE_GRIPPER_RESPONSE].get_value(); + resp->success = command_interfaces_[REACTIVATE_GRIPPER_RESPONSE].get_optional().value(); return resp->success; } diff --git a/robotiq_driver/include/robotiq_driver/hardware_interface.hpp b/robotiq_driver/include/robotiq_driver/hardware_interface.hpp index 517249a..9af6c57 100644 --- a/robotiq_driver/include/robotiq_driver/hardware_interface.hpp +++ b/robotiq_driver/include/robotiq_driver/hardware_interface.hpp @@ -77,7 +77,7 @@ class RobotiqGripperHardwareInterface : public hardware_interface::SystemInterfa * parsed or CallbackReturn::ERROR if any error happens or data are missing. */ ROBOTIQ_DRIVER_PUBLIC - CallbackReturn on_init(const hardware_interface::HardwareInfo& info) override; + CallbackReturn on_init(const hardware_interface::HardwareComponentInterfaceParams& params) override; /** * Connect to the hardware. diff --git a/robotiq_driver/src/hardware_interface.cpp b/robotiq_driver/src/hardware_interface.cpp index b837af5..1b77464 100644 --- a/robotiq_driver/src/hardware_interface.cpp +++ b/robotiq_driver/src/hardware_interface.cpp @@ -72,11 +72,12 @@ RobotiqGripperHardwareInterface::RobotiqGripperHardwareInterface(std::unique_ptr { } -hardware_interface::CallbackReturn RobotiqGripperHardwareInterface::on_init(const hardware_interface::HardwareInfo& info) +hardware_interface::CallbackReturn +RobotiqGripperHardwareInterface::on_init(const hardware_interface::HardwareComponentInterfaceParams& params) { RCLCPP_DEBUG(kLogger, "on_init"); - if (hardware_interface::SystemInterface::on_init(info) != CallbackReturn::SUCCESS) + if (hardware_interface::SystemInterface::on_init(params) != CallbackReturn::SUCCESS) { return CallbackReturn::ERROR; }