This repository contains code for using Zed camera's VIO for position estimation on ardupilot. This code was tested with a ZED 2i, ROS 2 humble and mavros.
- EK3_SRC1_POSXY = ExternalNav
- EK3_SRC1_POSZ = ExternalNav (could use baro, but not recommended)
- EK3_SRC1_VELXY = ExternalNav
- EK3_SRC1_VELZ = ExternalNav
- EK3_SRC1_YAW = ExternalNav (could use compass)
- GPS1_TYPE = NONE
Make sure you have ROS2 (humble or later) and MAVROS installed.
Clone this repo into your ROS2 workspace:
cd ~/ros2_ws/src
git clone https://github.com/hfcaio/zed_vision_to_mavros.git
cd ..
colcon build
source install/setup.bashIn other to run you need to change the name of apm.launch to apm.launch.xml, after that to run the code is pretty simple. Jus run:
source /opt/ros/humble/setup.bash
source ~/ros2_ws/install/setup.bashros2 launch zed_vision_to_mavros zed_all_nodes.launch.xml- argument input to zed_camera position node
- use zed pose_with_covarience
- enable zed use with multiple rotations
- enable transformation from base_link to zed_camera_center