intel / ros2_intel_realsense

This project is deprecated and no more maintained. Please visit https://github.com/IntelRealSense/realsense-ros for ROS2 wrapper.
Apache License 2.0
139 stars 95 forks source link

How to publish ROS2 msg in loop? #156

Open MikoyChinese opened 3 years ago

MikoyChinese commented 3 years ago

Hi, I am newer for ROS2, and I check your code that I have no idea about how to publish ROS2 msg in loop. The only timer in node is: https://github.com/intel/ros2_intel_realsense/blob/99bbe9197983c31df42ed52cfe6b84b7c41fdb94/realsense_ros2_camera/src/realsense_camera_node.cpp#L181

So how can you always update color and depth msg?