Skip to content

Fix bugs in hand-eye-calibration script and ROS2 compatibility layer#147

Merged
saierd merged 2 commits intomasterfrom
ros2-fix-hac-script
Jan 30, 2026
Merged

Fix bugs in hand-eye-calibration script and ROS2 compatibility layer#147
saierd merged 2 commits intomasterfrom
ros2-fix-hac-script

Conversation

@benthie
Copy link
Contributor

@benthie benthie commented Jan 30, 2026

Replace the original compatibility function with duration_from_seconds.
Reminder: This function returns a numeric value for ROS2, because there
the Duration type is not (yet) supported in messages.

The Duration keyword is now again available in the namespace.

* Implement add and sub functions for durations, because ROS2 does not
  support them yet.
* Implement helper function duration_to_seconds becuase ROS2 durations
  only return nanoseconds.

ROS1:
* Sleep accepts both numeric values and Duration objects
* Arithmetic on Time objects results in Duration objects
* Arithmetic on Duration objects results in Duration objects

ROS2:
* Sleep not existing, implemented in our ros2.py
* Arithmetic on Time objects results in Duration objects
* Arithmetic on Duration objects not implemented yet
* Overloads implemented in rclpy #1387 (next release)
@benthie benthie requested a review from saierd January 30, 2026 07:10
@benthie benthie self-assigned this Jan 30, 2026
@saierd saierd merged commit 6f2c2c5 into master Jan 30, 2026
17 checks passed
@benthie benthie deleted the ros2-fix-hac-script branch January 30, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants