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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Starling 2 Inverted Yaw and Pitch

Starling 2 Inverted Yaw and Pitch

Scheduled Pinned Locked Moved Unsolved General Questions
2 Posts 2 Posters 814 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.
  • Kashish Garg 0K Offline
    Kashish Garg 0K Offline
    Kashish Garg 0
    Contributor
    wrote on last edited by
    #1

    We are running qvio on the Starling 2 Platform (through voxl_map_to_ros.launch) and had a quick question:

    When visualizing the qvio/pose topics in rviz, we can see the pitch and yaw is inverted. I decided to look at the raw Unix pipe data for qvio (through voxl-inspect-qvio) and it seems to be identical to the messages being published on that rostopic. My theory is that, because the body frame of the Starling 2 has its Z-axis pointing downward and ROS assumes its Z axis to point upward, we are seeing this behavior.

    Our idea is to just modify our state estimation node to transform the pose data from qvio by adjusting the roll by 180 degrees. Before doing so, I wanted to check if there is any existing infrastructure to aid with this?
    Inverted Pose Video

    James StrawsonJ 1 Reply Last reply
    -1
    • Kashish Garg 0K Kashish Garg 0

      We are running qvio on the Starling 2 Platform (through voxl_map_to_ros.launch) and had a quick question:

      When visualizing the qvio/pose topics in rviz, we can see the pitch and yaw is inverted. I decided to look at the raw Unix pipe data for qvio (through voxl-inspect-qvio) and it seems to be identical to the messages being published on that rostopic. My theory is that, because the body frame of the Starling 2 has its Z-axis pointing downward and ROS assumes its Z axis to point upward, we are seeing this behavior.

      Our idea is to just modify our state estimation node to transform the pose data from qvio by adjusting the roll by 180 degrees. Before doing so, I wanted to check if there is any existing infrastructure to aid with this?
      Inverted Pose Video

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

      @Kashish-Garg-0

      Yes, everything in the aerospace industry including PX4 and ardupilot use the standard NED coordinate frame with Z pointing down. A significant portion of the code in MAVROS seems to be flipping the direction of the Y and Z axis back and forth when converting from mavlink to ros topics.

      I suggest using the vvhub_body_wrt_local pipe instead of the qvio pipe as the qvio data is centered around the imu whereas voxl-vision-hub transforms this to be centered around the body (COG) and corrects for gravity alignment.

      You can inspect the local pose on VOXL natively with

      voxl-inspect-pose vvhub_body_wrt_local
      OR
      voxl-inspect-pose --local

      Note this pipe was called vvpx4_body_wrt_local in SDK0.9 and older.

      I don't think ROS libraries like TF2 care which way gravity points. A transform is a transform, you can have it oriented however you prefer when you do your math. You should only need to change coordinate frames for the sake of visualization if RVIS doesn't let you define a default orientation or rotate the ground plane around in the UI.

      1 Reply Last reply
      1

      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