RobotWebTools / rclnodejs

Node.js version of ROS 2.0 client
https://docs.ros.org/en/jazzy/Concepts/Basic/About-Client-Libraries.html#community-maintained
Apache License 2.0
332 stars 72 forks source link

Wrong topic type for /clock #927

Closed AntoninRousset closed 1 year ago

AntoninRousset commented 1 year ago

Description According to the ROS documentation, clock messages have type rosgraph_msgs/Clock, but rclnodejs uses builtin_interfaces/msg/Time.

Steps To Reproduce

node <your_rclnodejs_node>.js --ros-args -p use_sim_time:=true

Expected Behavior Subscibe to /clock with type rosgraph_msgs/msg/Clock.

Actual Behavior Subscribe to /clock with type builtin_interfaces/msg/Time.

minggangw commented 1 year ago

@AntoninRousset v0.22.3 rolls out with your patch, thanks for fixing this issue, close it now.