Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. VOXL 2
  4. MPA to ROS node crash when subscribing to Disparity

MPA to ROS node crash when subscribing to Disparity

Scheduled Pinned Locked Moved VOXL 2
5 Posts 4 Posters 979 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • vivek rkV Offline
    vivek rkV Offline
    vivek rk
    Contributor
    wrote on last edited by vivek rk
    #1

    When I run the stock voxl_mpa_to_ros node on the VOXL2 and subscribe to the topic for stereo_disparity, the stereo interface throws the following error

    Stereo interface received non-stereo frame, exiting stereo

    I checked out the code and noticed that the problem is here in the stereo_interface.cpp at line 111

    if(meta.format != IMAGE_FORMAT_STEREO_RAW8){
           printf("Stereo interface received non-stereo frame, exiting stereo\n");
           interface->StopPublishing();
           interface->StopAdvertising();
       }
    

    I added a printf to see what format is being received using a printf statement and it is an integer with value 0 or IMAGE_FORMAT_RAW8
    got format 0

    So i modified the node to be the following

    if(meta.format != IMAGE_FORMAT_STEREO_RAW8){// && meta.format != IMAGE_FORMAT_RAW8){
           printf("Stereo interface received non-stereo frame, exiting stereo\n");
           printf("got format %d\n", meta.format);
           interface->StopPublishing();
           interface->StopAdvertising();
       }
    

    The node crashes once more and this time, without any error. When running with GDB i see that it crashes at line 152, which is

    memcpy(&(imgR.data[0]), &frame[dataSize], dataSize)
    

    Commenting this line allows the node to work, but now i cant access the right stereo images via ROS

    I am running system image 1.5.5-M0054-14.1a-perf with voxl-suite: 0.9.5

    Seems like there should be a quick fix for this, can someone help me out here ?

    P 1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      @vivek-rk said in MPA to ROS node crash when subscribing to Disparity:

      f(meta.format != IMAGE_FORMAT_STEREO_RAW8){
      printf("Stereo interface received non-stereo frame, exiting stereo\n");
      interface->StopPublishing();
      interface->StopAdv

      stereo_disparity is a single image, not a stereo image. You should use a regular camera interface for that data type and not a stereo image interface

      stereo images are two images side by side in the same block of memory

      A 2 Replies Last reply
      0
      • vivek rkV vivek rk

        When I run the stock voxl_mpa_to_ros node on the VOXL2 and subscribe to the topic for stereo_disparity, the stereo interface throws the following error

        Stereo interface received non-stereo frame, exiting stereo

        I checked out the code and noticed that the problem is here in the stereo_interface.cpp at line 111

        if(meta.format != IMAGE_FORMAT_STEREO_RAW8){
               printf("Stereo interface received non-stereo frame, exiting stereo\n");
               interface->StopPublishing();
               interface->StopAdvertising();
           }
        

        I added a printf to see what format is being received using a printf statement and it is an integer with value 0 or IMAGE_FORMAT_RAW8
        got format 0

        So i modified the node to be the following

        if(meta.format != IMAGE_FORMAT_STEREO_RAW8){// && meta.format != IMAGE_FORMAT_RAW8){
               printf("Stereo interface received non-stereo frame, exiting stereo\n");
               printf("got format %d\n", meta.format);
               interface->StopPublishing();
               interface->StopAdvertising();
           }
        

        The node crashes once more and this time, without any error. When running with GDB i see that it crashes at line 152, which is

        memcpy(&(imgR.data[0]), &frame[dataSize], dataSize)
        

        Commenting this line allows the node to work, but now i cant access the right stereo images via ROS

        I am running system image 1.5.5-M0054-14.1a-perf with voxl-suite: 0.9.5

        Seems like there should be a quick fix for this, can someone help me out here ?

        P Offline
        P Offline
        planch98
        Contributor
        wrote on last edited by
        #3

        @vivek-rk hi, I've found your same problem, did you manage to solve it?

        1 Reply Last reply
        0
        • Chad SweetC Chad Sweet

          @vivek-rk said in MPA to ROS node crash when subscribing to Disparity:

          f(meta.format != IMAGE_FORMAT_STEREO_RAW8){
          printf("Stereo interface received non-stereo frame, exiting stereo\n");
          interface->StopPublishing();
          interface->StopAdv

          stereo_disparity is a single image, not a stereo image. You should use a regular camera interface for that data type and not a stereo image interface

          stereo images are two images side by side in the same block of memory

          A Offline
          A Offline
          afdrus
          Regular
          wrote on last edited by
          #4

          @Chad-Sweet Same issue over here, this happens without modifying any line of code though, therefore it seems like there is a bug in the release, could you please point out to where this bug may be hidden?

          1 Reply Last reply
          0
          • Chad SweetC Chad Sweet

            @vivek-rk said in MPA to ROS node crash when subscribing to Disparity:

            f(meta.format != IMAGE_FORMAT_STEREO_RAW8){
            printf("Stereo interface received non-stereo frame, exiting stereo\n");
            interface->StopPublishing();
            interface->StopAdv

            stereo_disparity is a single image, not a stereo image. You should use a regular camera interface for that data type and not a stereo image interface

            stereo images are two images side by side in the same block of memory

            A Offline
            A Offline
            afdrus
            Regular
            wrote on last edited by
            #5

            @Chad-Sweet Is this issue, reported also here, solved?

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            ModalAI
            Categories Recent Tags ModalAI.com Docs
            © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups