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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL SDK and Software
  3. voxl_mpa_to_ros2 only publishes left stereo camera

voxl_mpa_to_ros2 only publishes left stereo camera

Scheduled Pinned Locked Moved Unsolved VOXL SDK and Software
ros
5 Posts 2 Posters 3.0k Views
  • 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.
  • C Offline
    C Offline
    cguzikowski
    Contributor
    wrote on last edited by
    #1

    Hello, I am currently trying to use stereo cameras (m0015) within a custom ROS2 application using the voxl_mpa_to_ros2 (version 0.0.6) package on the VOXL2 (SDK 1.4.0), but I am only able to see left stereo camera when running the mpa to ros converter. Here is the output of ros2 topic list:

    /imu_apps
    /parameter_events
    /rosout
    /stereo
    /stereo_disparity
    /stereo_disparity_scaled
    /stereo_pc
    /voa_pc_out
    /vvhub_aligned_vio
    /vvhub_body_wrt_fixed
    /vvhub_body_wrt_local
    

    According to the docs, I should expect something along the lines of /stereo/left and /stereo/right. Recording the topic /stereo and then playing it back confirms that only the left camera is being recorded. Here is the output of /etc/modalai/voxl-camera-server.conf, which was created by running voxl-configure-cameras 10

    {
    	"version":	0.1,
    	"fsync_en":	false,
    	"fsync_gpio":	109,
    	"cameras":	[{
    			"type":	"ov7251",
    			"name":	"stereo",
    			"enabled":	true,
    			"camera_id":	0,
    			"camera_id_second":	1,
    			"independent_exposure":	false,
    			"fps":	30,
    			"en_rotate":	false,
    			"en_rotate_second":	false,
    			"en_preview":	true,
    			"preview_width":	640,
    			"preview_height":	480,
    			"en_raw_preview":	true,
    			"ae_mode":	"lme_msv",
    			"gain_min":	54,
    			"gain_max":	8000,
    			"ae_desired_msv":	60,
    			"exposure_min_us":	20,
    			"exposure_max_us":	33000,
    			"exposure_soft_min_us":	5000,
    			"ae_filter_alpha":	0.600000023841858,
    			"ae_ignore_fraction":	0.20000000298023224,
    			"ae_slope":	0.05000000074505806,
    			"ae_exposure_period":	1,
    			"ae_gain_period":	1
    		}]
    }
    

    Both cameras are fully functional when viewing from the portal.

    How can I get data from both of the cameras?

    T 2 Replies Last reply
    0
    • C cguzikowski

      Hello, I am currently trying to use stereo cameras (m0015) within a custom ROS2 application using the voxl_mpa_to_ros2 (version 0.0.6) package on the VOXL2 (SDK 1.4.0), but I am only able to see left stereo camera when running the mpa to ros converter. Here is the output of ros2 topic list:

      /imu_apps
      /parameter_events
      /rosout
      /stereo
      /stereo_disparity
      /stereo_disparity_scaled
      /stereo_pc
      /voa_pc_out
      /vvhub_aligned_vio
      /vvhub_body_wrt_fixed
      /vvhub_body_wrt_local
      

      According to the docs, I should expect something along the lines of /stereo/left and /stereo/right. Recording the topic /stereo and then playing it back confirms that only the left camera is being recorded. Here is the output of /etc/modalai/voxl-camera-server.conf, which was created by running voxl-configure-cameras 10

      {
      	"version":	0.1,
      	"fsync_en":	false,
      	"fsync_gpio":	109,
      	"cameras":	[{
      			"type":	"ov7251",
      			"name":	"stereo",
      			"enabled":	true,
      			"camera_id":	0,
      			"camera_id_second":	1,
      			"independent_exposure":	false,
      			"fps":	30,
      			"en_rotate":	false,
      			"en_rotate_second":	false,
      			"en_preview":	true,
      			"preview_width":	640,
      			"preview_height":	480,
      			"en_raw_preview":	true,
      			"ae_mode":	"lme_msv",
      			"gain_min":	54,
      			"gain_max":	8000,
      			"ae_desired_msv":	60,
      			"exposure_min_us":	20,
      			"exposure_max_us":	33000,
      			"exposure_soft_min_us":	5000,
      			"ae_filter_alpha":	0.600000023841858,
      			"ae_ignore_fraction":	0.20000000298023224,
      			"ae_slope":	0.05000000074505806,
      			"ae_exposure_period":	1,
      			"ae_gain_period":	1
      		}]
      }
      

      Both cameras are fully functional when viewing from the portal.

      How can I get data from both of the cameras?

      T Offline
      T Offline
      teddy.zaremba
      Contributor
      wrote on last edited by
      #2

      Hi @cguzikowski,

      I'm not getting that issue when I have them connected on separate ports, is that an option for you?

      There might be a bug in mpa-to-ros2 when using COMBO_MODE, but I'll need more time to check that out.

      1 Reply Last reply
      0
      • C cguzikowski

        Hello, I am currently trying to use stereo cameras (m0015) within a custom ROS2 application using the voxl_mpa_to_ros2 (version 0.0.6) package on the VOXL2 (SDK 1.4.0), but I am only able to see left stereo camera when running the mpa to ros converter. Here is the output of ros2 topic list:

        /imu_apps
        /parameter_events
        /rosout
        /stereo
        /stereo_disparity
        /stereo_disparity_scaled
        /stereo_pc
        /voa_pc_out
        /vvhub_aligned_vio
        /vvhub_body_wrt_fixed
        /vvhub_body_wrt_local
        

        According to the docs, I should expect something along the lines of /stereo/left and /stereo/right. Recording the topic /stereo and then playing it back confirms that only the left camera is being recorded. Here is the output of /etc/modalai/voxl-camera-server.conf, which was created by running voxl-configure-cameras 10

        {
        	"version":	0.1,
        	"fsync_en":	false,
        	"fsync_gpio":	109,
        	"cameras":	[{
        			"type":	"ov7251",
        			"name":	"stereo",
        			"enabled":	true,
        			"camera_id":	0,
        			"camera_id_second":	1,
        			"independent_exposure":	false,
        			"fps":	30,
        			"en_rotate":	false,
        			"en_rotate_second":	false,
        			"en_preview":	true,
        			"preview_width":	640,
        			"preview_height":	480,
        			"en_raw_preview":	true,
        			"ae_mode":	"lme_msv",
        			"gain_min":	54,
        			"gain_max":	8000,
        			"ae_desired_msv":	60,
        			"exposure_min_us":	20,
        			"exposure_max_us":	33000,
        			"exposure_soft_min_us":	5000,
        			"ae_filter_alpha":	0.600000023841858,
        			"ae_ignore_fraction":	0.20000000298023224,
        			"ae_slope":	0.05000000074505806,
        			"ae_exposure_period":	1,
        			"ae_gain_period":	1
        		}]
        }
        

        Both cameras are fully functional when viewing from the portal.

        How can I get data from both of the cameras?

        T Offline
        T Offline
        teddy.zaremba
        Contributor
        wrote on last edited by
        #3

        @cguzikowski

        So there's no bug in mpa-to-ros2. I agree this is a little confusing so maybe we need to change it, but at the moment when you connect two cameras with COMBO_MODE the data shows up in the same pipe.

        This means that the ROS topic "/stereo" will have both of the images stacked on top of each other, so for the time being you'll have to write some code to separate the two.

        C 2 Replies Last reply
        0
        • T teddy.zaremba

          @cguzikowski

          So there's no bug in mpa-to-ros2. I agree this is a little confusing so maybe we need to change it, but at the moment when you connect two cameras with COMBO_MODE the data shows up in the same pipe.

          This means that the ROS topic "/stereo" will have both of the images stacked on top of each other, so for the time being you'll have to write some code to separate the two.

          C Offline
          C Offline
          cguzikowski
          Contributor
          wrote on last edited by
          #4

          @teddy-zaremba Unfortunately we can't connect them to separate ports. I recorded a bag on the topic "/stereo" and playing the bag back I only see one of the images. All messages are mono8 of size 480x640, so I don't see how they could be stacked on each other. Do I need to separate the images before recording?

          1 Reply Last reply
          0
          • T teddy.zaremba

            @cguzikowski

            So there's no bug in mpa-to-ros2. I agree this is a little confusing so maybe we need to change it, but at the moment when you connect two cameras with COMBO_MODE the data shows up in the same pipe.

            This means that the ROS topic "/stereo" will have both of the images stacked on top of each other, so for the time being you'll have to write some code to separate the two.

            C Offline
            C Offline
            cguzikowski
            Contributor
            wrote on last edited by
            #5

            @teddy-zaremba Nevermind, I was able to separate the images by modifying the voxl-camera-server.conf file to treat each camera as separate and it seems to be working now

            1 Reply Last reply
            0

            Reading along? Create a free ModalAI Forum account to join in.

            With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

            Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

            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

            • Don't have an account? Register

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