ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    voxl_mpa_to_ros2 only publishes left stereo camera

    ROS
    2
    3
    30
    Loading More Posts
    • 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
      cguzikowski
      last edited by

      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 Reply Quote 0
      • T
        teddy.zaremba @cguzikowski
        last edited by

        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 Reply Quote 0
        • T
          teddy.zaremba @cguzikowski
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors