Git Product home page Git Product logo

Comments (5)

MartyG-RealSense avatar MartyG-RealSense commented on June 27, 2024

Hi @shrutichakraborty If you just wanted depth and color to have their closest frames gathered together and sent with the same timetag then adding enable_sync:=true to your ros2 launch instruction may help to achieve your goal.

As you mention callbacks though, it sounds as though you wish to subscribe via code. The ROS2 wrapper's example Python node script rs2_listener.py and its imageColorCallback may be a helpful script reference.

https://github.com/IntelRealSense/realsense-ros/blob/ros2-development/realsense2_camera/scripts/rs2_listener.py#L85-L92

from realsense-ros.

shrutichakraborty avatar shrutichakraborty commented on June 27, 2024

Hi @shrutichakraborty If you just wanted depth and color to have their closest frames gathered together and sent with the same timetag then adding enable_sync:=true to your ros2 launch instruction may help to achieve your goal.

As you mention callbacks though, it sounds as though you wish to subscribe via code. The ROS2 wrapper's example Python node script rs2_listener.py and its imageColorCallback may be a helpful script reference.

https://github.com/IntelRealSense/realsense-ros/blob/ros2-development/realsense2_camera/scripts/rs2_listener.py#L85-L92

Hi yes I wish to create a subscriber on ros2. I have gone through the code on the link, however I'd like to be able to subscribe to the colour and depth image at the same time, that is I'd like that the colour image and depth image correspond (for I have a camera mounted on robot). In ros1 I could achieve this by messag filters which had time synchronisation, how can this be achieved in ros2?

Thanks!

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on June 27, 2024

Would it be an option for you to install a ROS2 package that provides message filter functionality for the purpose of time synchronization, like https://github.com/ros2/message_filters

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on June 27, 2024

Hi @shrutichakraborty Do you require further assistance with this case, please? Thanks!

from realsense-ros.

MartyG-RealSense avatar MartyG-RealSense commented on June 27, 2024

Case closed due to no further comments received.

from realsense-ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.