Skip to content

Commit 8268493

Browse files
committed
ADD: ignore modbus connection check
1 parent 203ea01 commit 8268493

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

robotiq_hande_driver/hardware/include/robotiq_hande_driver/communication.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace robotiq_hande_driver {
99

10-
static constexpr auto DEBUG_MODBUS = true;
10+
static constexpr auto DEBUG_MODBUS = false;
1111
static constexpr auto FAILURE_MODBUS = -1;
1212

1313
static constexpr uint16_t GRIPPER_OUTPUT_FIRST_REG = 0x07D0;

robotiq_hande_driver/hardware/src/hande_hardware_interface.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ HWI::CallbackReturn RobotiqHandeHardwareInterface::on_configure(
8282
stop_bit_);
8383
result = gripper_driver_.configure();
8484

85-
if(result == FAILURE_MODBUS) {
86-
RCLCPP_INFO(get_logger(), "Failed to configure Hand-E Gripper");
87-
return HWI::CallbackReturn::FAILURE;
88-
}
89-
RCLCPP_INFO(get_logger(), "Configured Hand-E Gripper");
85+
// TODO(issue#10) Modbus connection check always fails
86+
// if(result == FAILURE_MODBUS) {
87+
// RCLCPP_INFO(get_logger(), "Failed to configure Hand-E Gripper");
88+
// return HWI::CallbackReturn::FAILURE;
89+
// }
90+
RCLCPP_INFO(get_logger(), "Configured Hand-E Gripper: %d", result);
9091
return HWI::CallbackReturn::SUCCESS;
9192
}
9293

0 commit comments

Comments
 (0)