Skip to content

Commit 44804ae

Browse files
authored
Merge pull request #37 from AGH-CEAI/bugfix/wait_activation
Wait for ready state before starting communication
2 parents 90f0de6 + b4bc5f5 commit 44804ae

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

robotiq_hande_driver/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Fixed
1616

17+
* [PR-37](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/37) - Fixed missing readiness check during activation.
1718
* [PR-34](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/34) - Fixed check for dropping request to set the same gripper position.
1819
* [PR-34](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/34) - Fixed non-deterministic control node's frequency hicups by removing call to the modbus write in time-critical code block.
1920
* [PR-33](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/33) - Fixed missing ros2_control_test_assets dependency in CMakeLists.txt that causes build failures after ROS2 Humble package updates.

robotiq_hande_driver/hardware/src/hande_hardware_interface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ HWI::CallbackReturn RobotiqHandeHardwareInterface::on_activate(
186186
th_comm_enabled_.store(true, std::memory_order_relaxed);
187187
th_comm_.emplace(&RobotiqHandeHardwareInterface::gripper_communication, this);
188188
}
189+
190+
RCLCPP_INFO(
191+
get_logger(), "%sWaiting for Hand-E complete activation%s", color::BCYAN, color::RESET);
192+
while(!gripper_driver_.get_status().is_ready) {
193+
std::this_thread::sleep_for(th_sleep_rate_);
194+
}
189195
} catch(const std::exception& e) {
190196
RCLCPP_ERROR(
191197
get_logger(),

0 commit comments

Comments
 (0)