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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. voxl-cam-ros

voxl-cam-ros

Scheduled Pinned Locked Moved Software Development
12 Posts 5 Posters 2.6k Views 3 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.
  • V Offline
    V Offline
    vaughanje
    wrote on last edited by
    #3

    The content of voxl-env show is:

    ROS_MASTER_URI=http://localhost:11311/
    ROS_IP=192.168.8.1
    CAM_CONFIG_ID=2
    HIRES_CAM_ID=-1
    TRACKING_CAM_ID=0
    STEREO_CAM_ID=-1
    TOF_CAM_ID=-1
    

    This was after running voxl-configure-cameras to change to the tracking camera only configuration. However, given that the camera is connected to J2, should I use the hires camera? I'm basing this question on the information here:

    Link Preview Image
    VOXL Flight Quickstart

    ModalAI technical documentation for VOXL and VOXL 2 Companion Computers for PX4 and ArduPilot Obstacle Avoidance and GPS-denied navigation, assembled in the USA

    favicon

    ModalAI Technical Docs (docs.modalai.com)

    which reports the J2 connector as the hires camera. Should I use a hires camera configuration? I have tried both without success, but if I'm asking to make sure that I do have the correct camera configuration. That would help me narrow the issue on my side.

    James StrawsonJ 1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by Chad Sweet
      #4

      When you look at the RTSP stream, is it in color? Trying to understand what setup you have. The config implies you have a single, high-resolution camera connected. Since voxl-rtsp is working, the camera is working. It looks like if you have voxl-cam-ros use camera ID 1, it should work

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vaughanje
        wrote on last edited by
        #5

        Yes. I get color images from the RTSP stream.

        We do currently only have a single camera, connected to J2.

        1 Reply Last reply
        0
        • V vaughanje

          The content of voxl-env show is:

          ROS_MASTER_URI=http://localhost:11311/
          ROS_IP=192.168.8.1
          CAM_CONFIG_ID=2
          HIRES_CAM_ID=-1
          TRACKING_CAM_ID=0
          STEREO_CAM_ID=-1
          TOF_CAM_ID=-1
          

          This was after running voxl-configure-cameras to change to the tracking camera only configuration. However, given that the camera is connected to J2, should I use the hires camera? I'm basing this question on the information here:

          Link Preview Image
          VOXL Flight Quickstart

          ModalAI technical documentation for VOXL and VOXL 2 Companion Computers for PX4 and ArduPilot Obstacle Avoidance and GPS-denied navigation, assembled in the USA

          favicon

          ModalAI Technical Docs (docs.modalai.com)

          which reports the J2 connector as the hires camera. Should I use a hires camera configuration? I have tried both without success, but if I'm asking to make sure that I do have the correct camera configuration. That would help me narrow the issue on my side.

          James StrawsonJ Offline
          James StrawsonJ Offline
          James Strawson
          ModalAI Team
          wrote on last edited by
          #6

          @vaughanje

          voxl-configure-cameras doesn't have a hires-only option but option #4 (hires + tracking) should work for you. Any option that sets the HIRES_CAM_ID to 0 which will be it's index if it's the only camera connected. You also need to make sure the "ROS_IP" variable is set correctly in ~/my_ros_env.sh otherwise roscore will fail to start and no nodes will start. That's just a fun feature of ROS that it needs to know its own IP address before starting even when only running nodes locally.

          After running voxl-configure-cameras or updating ~/my_ros_env.sh make sure to refresh the new bash environment variables with "exec bash"

          The ROS node needs to be run in either master mode if running alone, or slave mode if the rtsp streamer was started first. The ROS node cannot be started before the RTSP stream. The command to launch the hires cam in master mode is:

          roslaunch voxl_cam_ros hires.launch
          OR
          roslaunch voxl_cam_ros hires_color.launch

          To run as slave:
          roslaunch voxl_cam_ros hires.launch is_cam_master:=false
          OR
          roslaunch voxl_cam_ros hires_color.launch is_cam_master:=false

          Regards,
          James

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vaughanje
            wrote on last edited by
            #7

            Thanks for the help.

            I reverted to using the hires + tracking option. So, the current output of voxl-env show is:

            ROS_MASTER_URI=http://localhost:11311/
            ROS_IP=192.168.8.1
            CAM_CONFIG_ID=4
            HIRES_CAM_ID=0
            TRACKING_CAM_ID=1
            STEREO_CAM_ID=-1
            TOF_CAM_ID=-1
            

            The RTSP stream is running, so I used the is_cam_master:=false version of the suggested roslaunch commands. There is a pause between libcam.dump.dir /data/misc/camera/dumps and ERROR: could not open camera subscriber for cam id 0.

            SUMMARY
            ========
            
            PARAMETERS
             * /hires/voxl_cam_nodelet/cam_id: 0
             * /hires/voxl_cam_nodelet/cam_name: hires
             * /hires/voxl_cam_nodelet/format: 1
             * /hires/voxl_cam_nodelet/frame_id: hires_frame
             * /hires/voxl_cam_nodelet/frame_rate: 15
             * /hires/voxl_cam_nodelet/height: 1080
             * /hires/voxl_cam_nodelet/is_cam_master: False
             * /hires/voxl_cam_nodelet/skip_n_frames: 0
             * /hires/voxl_cam_nodelet/width: 1920
             * /hires/voxl_cam_nodelet/yuv_remap: yuv422
             * /rosdistro: indigo
             * /rosversion: 1.11.21
            
            NODES
              /hires/
                hires_nodelet_manager (nodelet/nodelet)
                voxl_cam_nodelet (nodelet/nodelet)
            
            auto-starting new master
            process[master]: started with pid [4890]
            ROS_MASTER_URI=http://localhost:11311/
            
            setting /run_id to da98c2d4-1dd3-11b2-913f-ec5c68cd238b
            process[rosout-1]: started with pid [4903]
            started core service [/rosout]
            process[hires/hires_nodelet_manager-2]: started with pid [4916]
            process[hires/voxl_cam_nodelet-3]: started with pid [4921]
            [ INFO] [764.624133042]: Initializing nodelet with 4 worker threads.
            [ INFO] [764.819000074]: SnapCamDriver Starting
            [ INFO] [764.819231792]: Monotonic offset: 1.670465990
            libcam.enable.publish  1
            libcam.enable.publish.dump 0
            libcam.publish.buffer.policy max
            libcam.publish.buffer.max 3
            libcam.debug.level info
            libcam.dump.dir /data/misc/camera/dumps
            ERROR: could not open camera subscriber for cam id 0
            [ERROR] [781.824676109]: CameraManager::Initialize() failed
            [ERROR] [781.825179598]: Unable to open camera.
            

            Any ideas?

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

              Can you try the camera-test app? See if you can find a camera ID that enumerates as high-res. Maybe it's not actually located at ID 0 (the ID can change based on which cameras are connected)

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vaughanje
                wrote on last edited by vaughanje
                #9

                Running camera-test gives:

                num_cameras = 1
                Testing camera id=0
                Segmentation fault
                
                1 Reply Last reply
                0
                • Chad SweetC Offline
                  Chad SweetC Offline
                  Chad Sweet
                  ModalAI Team
                  wrote on last edited by
                  #10

                  It seems voxl-rtsp cannot run concurrently with voxl-cam-ros. We are working on a new camera-server to fan out the cameras more consistently, but that is probably a month away.

                  voxl-cam-ros uses libCamera which does support multiple clients of the same camera. It would be possible to write an rtsp server using the built in live555 and libCamera that would work concurrently with voxl-cam-ros.

                  Otherwise it seems in the meantime you will need to disable voxl-rtsp to get voxl-cam-ros to work

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vaughanje
                    wrote on last edited by
                    #11

                    Sorry for the slight delay. I was finally able to get back to this this morning. Killing voxl-rtsp fixed this issue. voxl-cam-ros will launch without issue. Thank you for the help.

                    P 1 Reply Last reply
                    0
                    • V vaughanje

                      Sorry for the slight delay. I was finally able to get back to this this morning. Killing voxl-rtsp fixed this issue. voxl-cam-ros will launch without issue. Thank you for the help.

                      P Offline
                      P Offline
                      ptaylor1234
                      wrote on last edited by
                      #12

                      @vaughanje I am with you up until this point, but I can't figure out how to kill voxl-rtsp. what command did you use for that?

                      1 Reply Last reply
                      1

                      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

                      • Don't have an account? Register

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