(Ⅰ) 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
- Parameter settings, effective after saving and restarting
EKF2_AID_MASK= 24
EKF2_HGT_MODE = 2
.png)
Vehicle Setup
Ⅱ. Motion Capture Software Settings
- Configuration reference
https://wiki.ros.org/mocap_nokov
Ⅲ. Testing
(Ⅰ) Topic Forwarding
- 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
- ApplicationSettings -> Communication Connection -> Add New Connection
.png)
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
.png)
MAVLink message
Ⅳ. Reference Documentation
(Ⅰ) Position Estimation Using Visual or Motion Capture Systems
https://docs.px4.io/master/zh/ros/external_position_estimation.html