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

    Error running voxl-mpa-to-ros2

    Ask your questions right here!
    5
    12
    767
    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.
    • R
      riteshsharma
      last edited by

      I tried running following commands:

      Capture.PNG

      Darshit DesaiD 1 Reply Last reply Reply Quote 1
      • Darshit DesaiD
        Darshit Desai @riteshsharma
        last edited by

        @rsr4z Hi I have the same error after building the package from source and installing it, did you follow this procedure here, I still get that error even after doing that

        https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros2/-/tree/master?ref_type=heads#build-instructions-if-running-in-qrb5165-emulator-and-pushing-to-voxl2-post-build

        R 1 Reply Last reply Reply Quote 0
        • R
          riteshsharma @Darshit Desai
          last edited by

          @Darshit-Desai Try running voxl-configure-mpa-to-ros2. It should do all what you are looking for.

          Darshit DesaiD 2 Replies Last reply Reply Quote 1
          • Darshit DesaiD
            Darshit Desai @riteshsharma
            last edited by

            @rsr4z Did the ros2 launch work for you after that?

            R 1 Reply Last reply Reply Quote 0
            • R
              riteshsharma @Darshit Desai
              last edited by

              @Darshit-Desai Unfortunately I am now getting different error

              Capture2.PNG

              Darshit DesaiD 1 Reply Last reply Reply Quote 1
              • Darshit DesaiD
                Darshit Desai @riteshsharma
                last edited by Darshit Desai

                @rsr4z Were you able to resolve this issue? Also are you also using the voxl2 starling drone?

                1 Reply Last reply Reply Quote 0
                • Darshit DesaiD
                  Darshit Desai @riteshsharma
                  last edited by

                  @rsr4z Also I get this error while using this command

                  voxl2:~$ voxl-configure-mpa-to-ros2.
                  bash: voxl-configure-mpa-to-ros2.: command not found

                  @rsr4z said in Error running voxl-mpa-to-ros2:

                  @Darshit-Desai Try running voxl-configure-mpa-to-ros2. It should do all what you are looking for.

                  Alex KushleyevA 1 Reply Last reply Reply Quote 0
                  • Alex KushleyevA
                    Alex Kushleyev ModalAI Team @Darshit Desai
                    last edited by

                    @Darshit-Desai ,

                    It looks like the launch file is not valid. the launcher is not recognizing it as an xml file. However, i tried renaming the launch file to xml, it also failed.

                    First, as @rsr4z suggested, you need to run voxl-configure-mpa-to-ros2 to install prerequisites.

                    Then to bypass the launch file issue, you can run the executable directly:

                    voxl2:$ ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node
                    Found new interface: imu_apps
                    Found new interface: voa_pc_out
                    Found new interface: vvhub_body_wrt_fixed
                    Found new interface: vvhub_body_wrt_local
                    

                    We will investigate the launch file issue

                    1 Reply Last reply Reply Quote 0
                    • Zachary Lowell 0Z
                      Zachary Lowell 0 ModalAI Team
                      last edited by

                      @Alex-Kushleyev said in Error running voxl-mpa-to-ros2:

                      ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node

                      @Darshit-Desai @rsr4z can you please try the following

                      1. sudo apt-get install voxl-ros2-foxy
                      2. sudo apt-get install voxl-mpa-to-ros2
                      3. voxl-configure-mpa-to-ros2
                      4. source /opt/ros/foxy/mpa_to_ros2/install/setup.bash
                      5. export ROS_HOME=/opt/foxy
                      6. ros2 run voxl_mpa_to_ros2 voxl_mpa_to_ros2_node

                      Lmk what happens.

                      Darshit DesaiD B 2 Replies Last reply Reply Quote 0
                      • Darshit DesaiD
                        Darshit Desai @Zachary Lowell 0
                        last edited by

                        @Zachary-Lowell-0 Yes this runs the mpa-to-ros2 node, the only difference I found was that when streaming hires image data over wifi the speed is a little slower. When compared with ros1 voxlmpatoros the hires image data is streamed at 4 FPS while for ros2 voxlmpatoros2 the hires image data is streamed at 0.5-1FPS.

                        Another bug is that whenever I try to subscirbe to topic /hires_large_color or /hires_large_grey both voxl mpatoros1 and voxl mpatoros2 nodes get killed. This is irrespective of which domain I subscribe from, whether I subscribe inside another terminal of voxl or on a different terminal over wifi.

                        ROS 1:

                        9ed6cb36-9a96-4c16-9a39-bacfb5c7cb2e-image.png

                        ROS 2:

                        2f5a38cd-ed97-469b-91ac-514974258bee-image.png

                        1 Reply Last reply Reply Quote 0
                        • Zachary Lowell 0Z
                          Zachary Lowell 0 ModalAI Team
                          last edited by

                          @Darshit-Desai this is the response I am getting for hires_small_color firstly:

                          fb1b5776-09cd-401e-9a49-a1cd05188172-image.png

                          Looks like about 22 FPS.

                          As for hires_large:

                          1edb459c-9692-479b-9168-c7308e0c69c8-image.png

                          I am getting about 2 FPS which is expected as we are converting 4K imagery from traditional YUV formatted frames into ros2 images, which is a bottleneck in general. I am not able to trigger the ros2 instance to die when I subscribe to the hires LARGE frames.

                          A note - internally, the HIRES LARGE imagery is more meant for onboard video recording, not for transfering between the MPA and ros2. For that reason I highly recommend using either the encoded pipe or the SMALL pipes.

                          1 Reply Last reply Reply Quote 0
                          • B
                            brahim @Zachary Lowell 0
                            last edited by

                            @Darshit-Desai when you are subscribing to /hires_large_color or /hires_large_grey are you planning to do some kind of image processing on these image messages in ROS? These are huge 4k images and I'm not sure how much the ros CV bridge can handle. One option is to resize the images since that typically complements image processing for whatever consumer subscribes to these image topics and will result in a speed up. Rectification also can be used to reduce the image warp.

                            Another option is to play with the image sensor encodings and find something more manageable in ROS and computational power required.

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