UdaciDrone with the Unity Simulator
Here is an overview of the functionality that UdaciDrone provides with a PX4 drone using the Mavlink protocol. For more specific details on the implementation of the communication with PX4 over Mavlink, check out the mavlink_connection.py and mavlink_utils.py classes.
This document discuses the following:
This document discuses the following:
- general simulator configuration
- overview of the
UnityConnectionclass - platform specific limitations
General Unity Simulator Setup
Nothing specific needs to be setup, will work out of the box!
MavlinkConnection Overview
Here are examples of how to use the connection class in both the shell and in a script.
Python Shell
>>> conn = UnityConnection('tcp:127.0.0.1:5760', threaded=True)
Python Script
conn = UnityConnection('tcp:127.0.0.1:5760', threaded=False)