Git Product home page Git Product logo

Comments (3)

felixendres avatar felixendres commented on June 27, 2024

For stereo the data an image synced with a pointcloud is received here
and a depth image is computed from the cloud here. This doesn't seem to work, as this function says there are no depth values in your cloud.

Not sure why it crashes then. I don't have time to investigate. As a quick fix, I recommend you insert the check for depth-less cloud/depth-image somewhere here and just abort processing of that image+cloud in that case (just return from stereoCallback()).

from rgbdslam_v2.

MasterRoboticist avatar MasterRoboticist commented on June 27, 2024

Thanks! Turns out the problem isn't related to the depth image. I implemented your fix and it skips depth-less depth images, but when the depth image isn't empty, it throws the same warning and opencv error and then crashes (re-copied below for clarity). We'll keep looking into it ourselves, but if you have any ideas we would be grateful.

`[ WARN] [1607436291.753501698, 24.719500000]: "openni_rgb_optical_frame" passed to lookupTransform argument target_frame does not exist.
[ WARN] [1607436291.753555448, 24.719500000]: Using Standard kinect /openni_camera -> /openni_rgb_optical_frame as transformation (This message is throttled to 1 per 5 seconds)
OpenCV Error: Assertion failed (i1 >= 0 && j < ndsts && dst[j].depth() == depth) in mixChannels, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/convert.cpp, line 614
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/convert.cpp:614: error: (-215) i1 >= 0 && j < ndsts && dst[j].depth() == depth in function mixChannels

REQUIRED process [rgbdslam-25] has died!
`

from rgbdslam_v2.

felixendres avatar felixendres commented on June 27, 2024

Then, the best first step is finding out where the error occurs. Try obtaining a stack trace. Either run rgbdslam in gdb (see here for to do it with a launch file), or enable core dumps (ulimit -c unlimited) and inspect it with gdb (gdb /path/to/rgbdslam ./core). In gdb "bt" will give you the backtrace. You may need to switch to the respective thread first.

from rgbdslam_v2.

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.