Giter Site home page Giter Site logo

Comments (2)

michaelnguyen11 avatar michaelnguyen11 commented on August 11, 2024

I print that the time difference between rectified left and right frames is around 7–13us.

For my case, to avoid some peak in a different timestamp, I put the condition in less than 100us.

-    if(left->getSequenceNum() != right->getSequenceNum()) {
+    if(left->getSequenceNum() != right->getSequenceNum() && std::chrono::duration_cast<std::chrono::microseconds>(right->getTimestamp() - left->getTimestamp()).count() >= 100) {
         RCLCPP_WARN(getROSNode()->get_logger(), "Left and right rectified frames are not synchronized!");
     } else {

from depthai-ros.

Serafadam avatar Serafadam commented on August 11, 2024

Hi, thanks for the feature idea, for now it's hard to estimate ETA on that, but feel free to open a PR with the changes, from my side following things need to be considered:

  • Adding a parameter to choose whether to sync based on the Sequence number or a timestamp
  • This needs to be checked but I assume that the timestamp difference might need to be tuned based on camera FPS
    Additionally I wanted to mention that in near future (not sure yet on the ETA) a Sync node will be added in depthai-core that will allow easier syncing of multiple messages, after that is available it will be added to depthai_ros_driver

from depthai-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.