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

    VOXL2 ROS2 Starling Code Inconsistencies

    ROS
    3
    14
    277
    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
      claw @Zachary Lowell 0
      last edited by

      @Zachary-Lowell-0 Any luck recreating this?

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

        @Zachary-Lowell-0 said in VOXL2 ROS2 Starling Code Inconsistencies:

        Hi @GlennTee - will try and recreate this and get back to yuo!

        C
        1 Reply Last reply 10 minutes ago Reply

        planning on trying to recreate tomorrow in the AM - have you tested this via HITL at all as well?

        C 1 Reply Last reply Reply Quote 0
        • C
          claw @Zachary Lowell 0
          last edited by

          @Zachary-Lowell-0 No, we're novices and trying to just focus on the Starling. HITL, would be a distraction (unless you say differently) from the task at hand.

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

            @claw no worries - I recorded a loom for you watch - https://www.loom.com/share/409b4b9ca9974d54b534af7020414632 - please give it a gander and lmk if it helps - I have a strong feeling its because there is NOT a sleeper call for a second or two between swapping to offboard and arming the drone.

            Also HITL/SITL testing by far and away is the standard to do first before moving to a drone especially with some experimental code - I would heavily emphasize you always debug first in this scenario before moving to the real bird - purely really just for safety reasons. Anyways, please give a watch and let me know!!

            Zach

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

              oh also please ensure you have offboard_figure_8 set to off in voxl-vision-hub.conf in /etc/modalai.

              G 2 Replies Last reply Reply Quote 0
              • G
                GlennTee @Zachary Lowell 0
                last edited by

                @Zachary-Lowell-0 Thank you so much, this appears to have fixed it! I'm now able to consistently run and exit the program cleanly.

                1 Reply Last reply Reply Quote 0
                • G
                  GlennTee @Zachary Lowell 0
                  last edited by GlennTee

                  @Zachary-Lowell-0 I do have another question: would you happen to know of any resources or examples involving April Tag detection and alignment using the VOXL2 ROS2 PX4 Starling? My goal is to try to use my drone to detect an April Tag, align with it, and land on it. Preferably, I would like to do this in Python if possible.

                  G 1 Reply Last reply Reply Quote 0
                  • G
                    GlennTee @GlennTee
                    last edited by

                    I also was wondering if there also a way to read the battery voltage? In my case, I want to be able to read the battery voltage in my code in able to tell the drone to do specific things based on if the voltage is high or low.

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

                      @GlennTee said in VOXL2 ROS2 Starling Code Inconsistencies:

                      I also was wondering if there also a way to read the battery voltage? In my case, I want to be able to read the battery voltage in my code in able to tell the drone to do specific things based on if the voltage is high or low.

                      Reply

                      @GlennTee on the voxl2 there is a program called voxl-tag-detection that will detect tags in the h36 family. You can also detect battery via voxl-inspect-battery - the reason I bring these pipes up is because you can leverage them in your ros2 code via C++ nodes. So you can create a node in CPP that will subscribe to these modalAI MPA pipes and then publish the data into a ros2 topic.

                      LMK if that helps - we actually did just merge in a branch of voxl-mpa-to-ros2 that will publish the tag information over a ros2 interface. In theory you can do the same with battery voltage: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros2/-/blob/dev/colcon_ws/src/voxl_mpa_to_ros2/src/interfaces/tag_interface.cpp?ref_type=heads

                      Zach

                      G C 2 Replies Last reply Reply Quote 0
                      • G
                        GlennTee @Zachary Lowell 0
                        last edited by

                        @Zachary-Lowell-0 Thank you so much, I will try that out!

                        1 Reply Last reply Reply Quote 0
                        • C
                          claw @Zachary Lowell 0
                          last edited by

                          @Zachary-Lowell-0 Thank you for your help and guidance. Is there a way to get the status information like battery voltage using Python?

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

                            @claw said in VOXL2 ROS2 Starling Code Inconsistencies:

                            @Zachary-Lowell-0 Thank you for your help and guidance. Is there a way to get the status information like battery voltage using Python?

                            Reply

                            @claw yes you can follow this post to get battery over the DDS: https://forum.modalai.com/topic/4353/voxl2-px4-ros2-mpa-to-ros2-for-battery-voltage-problems/12?_=1745355297145

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