The XINGYING software includes built-in intelligent agent models for "drones" and "unmanned vehicles." After creating a rigid body in real-time mode or loading .cap data during post-processing, an intelligent agent can be bound to the specified rigid body. The intelligent agent's dashboard includes the "main dashboard, " "speedometer, " "pitch and roll angle dashboard, " and "yaw angle dashboard" (9.4.1). Once a rigid body is bound to the intelligent agent's dashboard, the timing in the chart begins, and all gauges start operating to display detailed data.
Here are two methods for connecting drones to the XINGYING system, along with the necessary precautions:
First, configure the data forwarding port of the drone. After the port is set, power on the drone.
Insert network cable A into the LAN1 port of the router (9.4.2) and connect the other end to the switch where the motion capture cameras are located. Insert network cable B into the LAN2 port of the router and connect the other end to the network port on the motion capture computer. If the computer does not have enough network ports, you can use a USB Ethernet adapter as an extension and insert network cable B into the adapter.
Open XINGYING, navigate to software settings, select "Agent Settings, " and set the listening port (9.4.3). Ensure the listening port matches the data forwarding port set on the drone.
Connect the cameras and play back the footage, then create a rigid body. At this point, you can bind an intelligent agent model (see section 9.4.4).
Open the intelligent agent dashboard (see section 9.4.5), bind the created rigid body, select the device number (if there are multiple drones, multiple numbers will be displayed in the dropdown list), choose the type as a drone, and a drone icon will be displayed in the middle of the yaw angle dashboard.
At this point, the various gauges in the intelligent agent window will display data (see section 9.4.6). The top right corner will show the real-time battery level of the drone. In Edit Mode, the intelligent agent dashboard will not display device numbers or battery levels. You can resize the window by dragging the button at the bottom right corner of the dashboard.
First, configure the data forwarding port of the drone, and then power it on.
To connect the drone via LAN, ensure that the drone's IP address and the motion capture computer's IP address are on the same subnet. If not, configure the drone's IP address accordingly, and set the data forwarding port for the drone.
On the motion capture computer, open a terminal and enter ssh pi@192.168.2.253 to access the onboard computer of the drone; "192.168.2.253" is the IP address of the drone.
Open another terminal and input roslaunch mavros px4.launch gcs_url:="udp://@192.168.2.124:14550". "192.168.2.124" is the IP address of the motion capture computer, and "14550" is the drone data listening port set in the XINGYING software, which should match the data forwarding port set on the drone (9.4.7).
Open XINGYING, go to software settings, select "Agent Settings, " and set the listening port. Ensure the listening port matches the data forwarding port set on the drone. Turn on the ground control station switch.
Connect the cameras and play the footage, create a rigid body, open an agent window, and bind the created rigid body. Select the device number and specify the type. Various gauges in the agent window will begin displaying data, with the real-time battery level of the drone shown in the top-right corner.
When switching between live and edit modes, all intelligent agent dashboards in the software interface will be cleared. To restart the agent view, reconfigure the options.
Use the intelligent agent function in an environment where the calibration axis (coordinate system origin upward axis) is the Z-axis.
If the device number is not displayed, please check the following:
When using a LAN, verify that the IP addresses of the drone and the motion capture computer are on the same subnet.
Check if the XINGYING ground station is turned on.
Confirm that the receiving port in XINGYING matches the data forwarding port of the drone.
Perform a self-check to ensure the drone is working properly.