Skip to content

Commit 958be52

Browse files
committed
convert to SystemInterface
1 parent 1947758 commit 958be52

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

robotiq_description/urdf/robotiq_gripper.urdf.xacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<xacro:include filename="$(find robotiq_description)/urdf/robotiq_gripper_macro.urdf.xacro" />
88

99
<link name="world" />
10-
<xacro:robotiq_gripper name="RobotiqGripperSystem" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)">
10+
<xacro:robotiq_gripper name="RobotiqGripperHardwareInterface" prefix="" parent="world" use_fake_hardware="$(arg use_fake_hardware)">
1111
<origin xyz="0 0 0" rpy="0 0 0" />
1212
</xacro:robotiq_gripper>
1313
</robot>

robotiq_driver/hardware_interface_plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<library path="robotiq_driver">
2-
<class name="robotiq_driver/RobotiqGripperHardwareInterface" type="robotiq_driver::RobotiqGripperHardwareInterface" base_class_type="hardware_interface::ActuatorInterface">
2+
<class name="robotiq_driver/RobotiqGripperHardwareInterface" type="robotiq_driver::RobotiqGripperHardwareInterface" base_class_type="hardware_interface::SystemInterface">
33
<description>
44
ROS2 controller for the Robotiq gripper.
55
</description>

robotiq_driver/include/robotiq_driver/hardware_interface.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <string>
3333
#include <vector>
3434

35-
#include "hardware_interface/actuator_interface.hpp"
3635
#include "hardware_interface/handle.hpp"
3736
#include "hardware_interface/hardware_info.hpp"
3837
#include "hardware_interface/system_interface.hpp"
@@ -45,7 +44,7 @@
4544

4645
namespace robotiq_driver
4746
{
48-
class RobotiqGripperHardwareInterface : public hardware_interface::ActuatorInterface
47+
class RobotiqGripperHardwareInterface : public hardware_interface::SystemInterface
4948
{
5049
public:
5150
RCLCPP_SHARED_PTR_DEFINITIONS(RobotiqGripperHardwareInterface)

robotiq_driver/launch/robotiq_control.launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def generate_launch_description():
7474
" ",
7575
LaunchConfiguration("model"),
7676
" ",
77-
"use_sim:=false",
77+
"use_fake_hardware:=false",
7878
]
7979
)
8080
robot_description_param = {

robotiq_driver/src/hardware_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ RobotiqGripperHardwareInterface::RobotiqGripperHardwareInterface()
5353
hardware_interface::CallbackReturn
5454
RobotiqGripperHardwareInterface::on_init(const hardware_interface::HardwareInfo& info)
5555
{
56-
if (hardware_interface::ActuatorInterface::on_init(info) != CallbackReturn::SUCCESS)
56+
if (hardware_interface::SystemInterface::on_init(info) != CallbackReturn::SUCCESS)
5757
{
5858
return CallbackReturn::ERROR;
5959
}
@@ -248,4 +248,4 @@ hardware_interface::return_type RobotiqGripperHardwareInterface::write(const rcl
248248

249249
#include "pluginlib/class_list_macros.hpp"
250250

251-
PLUGINLIB_EXPORT_CLASS(robotiq_driver::RobotiqGripperHardwareInterface, hardware_interface::ActuatorInterface)
251+
PLUGINLIB_EXPORT_CLASS(robotiq_driver::RobotiqGripperHardwareInterface, hardware_interface::SystemInterface)

0 commit comments

Comments
 (0)