Skip to main content

(Ⅰ) SDK Method

For ROS installation and communication between ROS and Nokov motion capture system, please refer to the articles "ROS Installation and Instructions (Based on Ubuntu 18.04)" and "Communication between ROS and Nokov Motion Capture System".

Ⅰ. PX4 Configuration

  1. Parameter settings, effective after saving and restarting
EKF2_AID_MASK= 24
EKF2_HGT_MODE = 2
Vehicle Setup

Vehicle Setup

Ⅱ. Motion Capture Software Settings

  1. Configuration reference

https://wiki.ros.org/mocap_nokov

Ⅲ. Testing

(Ⅰ) Topic Forwarding

  1. Assume the rigid body ID to be transmitted is 1, which is the first rigid body in the scene.
rosrun topic_tools relay /mocap_node/Robot_1/pose /mavros/vision_pose/pose

(Ⅱ) QGC Add Listening Port 14557

  1. ApplicationSettings -> Communication Connection -> Add New Connection
通讯连接配置

Communication Connection Configuration

(Ⅲ) Launch MavRos (Using USB Serial Port Connection)

sudo apt install ros-melodic-mavros
roslaunch mavros px4.launch gcs_url:="udp://@127.0.0.1:14557"

For specific parameter descriptions, please refer to: http://wiki.ros.org/mavros

(Ⅳ) View Motion Capture Data

AnalyzeTools -> MAVLINK Inspector -> VISION_POSITION_ESTIMATE

You can observe the displacement and rotation information of the rigid body, xyz roll pitch yaw

MAVLink message

MAVLink message

Ⅳ. Reference Documentation

(Ⅰ) Position Estimation Using Visual or Motion Capture Systems

https://docs.px4.io/master/zh/ros/external_position_estimation.html

(Ⅱ) QGC Usage Help

https://docs.qgroundcontrol.com/master/en/index.html