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

    Using the Vicon Motion Capture System to Estimate Position and Heading

    Ask your questions right here!
    1
    1
    240
    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.
    • TroiT
      Troi
      last edited by

      Re: Using Motion Capture Systems (Optitrack) for Position Estimation

      This post is a follow-up to the forum post mentioned above. I want to estimate the position and heading of an m500 (with a VOXL computer) using Vicon cameras. I describe my setup and issues below.

      Setup:

      • A set of Vicon cameras.
      • A host computer that runs a custom docker that collects Vicon pose messages and then publishes those messages via ROS. This computer is also my ROS master. This computer also runs QGroundControl.
      • A VOXL drone that runs the roskinetic-xenial:v1.0 docker image, has the run_mavros.sh script from Modal AI, and knows that the host computer is the ROS master.
      • In addition, I installed mavros-extras in the roskinetic-xenial:v1.0 docker to access the /mavros/odometry/out and /mavros/odometry/in topics.

      The VOXL drone runs in station mode and is connected to my WiFi. The drone can run rostopic echo <topic_name> and see the messages published over the network, including the messages from the docker that publishes the Vicon poses via ROS. QGroundControl also sees the drone whenever the drone is running.

      Issues:

      1. What EKF2 parameters should I change so the drone uses the Vicon system? I saw another mention that I should set EKF2_AID_MASK = 24, which includes vision position fusion and vision yaw fusion. Is this configuration correct? Do I need to set any other parameters?

      2. What VOXL parameter do I need to set (if any) to tell VOXL to use a motion capture system instead of the onboard VIO?

      3. PX4 (on the drone) gives me an error when I publish the odometry messages from the Vicon system on the topic /mavros/odometry/out. They mainly relate to the frame IDs used. What should I set for the frame_id and the child_frame_id in the odometry messages?

      4. How can I test if PX4 receives the odometry messages via ROS?

      @DarkKnightCH and @IC, were you able to solve the issues you were experiencing in the post referenced above?

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