Partial sim no Gaz - terrytaylorbonn/auxdrone GitHub Wiki
PART B Sim partial. For almost 2 months I have been working on (among other things) creating a proof-of-concept demo of a simulated AI drone with an onboard companion computer (CC) (and camera) that performs AI and takes over drone control mission control in the event of object recognition (in this example a human face). On 24.0131 I finally got the basic demo working. For (draft) details see
- Gdrive (https://drive.google.com/drive/folders/1HrzLExPTAL5PIKx_j_y0GJ6_RANR8Tjm)
- Document 3a_pymavlink_v24_24.0202_(haar_only).docx 2nd chapter
PS: Why do this? A quadcopter (drone with 4 rotors) can only be flown with the help of a flight controller (FC) that controls drone flight by (amazingly) only modifying rotor speeds. The pilot (RC, ground control station, etc.) only sends "simple" protocol commands (Mavlink) to the FC. Therefore, to test the flight commands the CC AI script sends to the FC (to ensure nothing crazy will happen in real flight), simulation is totally sufficient. The only real thing you need is the camera (the CC should also be real, but (for reasons explained in the docs) for now I am using an Ubuntu PC). The diagram below is my own.
PS: Why am I doing this? Because I could never find a simple demo that shows how to. And I spent a lot of time looking. Its possible that this has limited value, because the camera is not moving with the simulated drone and landscape. But I think it has value because you can test the real CC/camera early on. Note that PART A Sim all shows a demo using a sim camera on the sim drone, but I would think that this method has some big limitations (not least of which would be the sim camera/CC, which are crude approximations to the real camera/CC). In any case, this exercise is a good way to learn Mavlink (the low level communication protocol the FC uses) and how the MP (Mission Planner) / SITL work.
The following shows my home office setup (note how the tea cup is usually strategically positioned where it can do maximum damage in the event of a spill).
PART A Sim all. Completed in Dec 2023.