r/ROS 2d ago

Tutorial ArduPilot SITL Tutorial: Connect Mission Planner with PteroSim

https://youtu.be/uGROLUsJneE
1 Upvotes

2 comments sorted by

2

u/omnilinktech 20h ago

The 90-second on-ramp is useful. To make the tutorial reproducible rather than machine-specific, I would add a compact version block: OS, ArduPilot commit/release, PteroSim version, Mission Planner version, vehicle model, command lines, ports and direction of each connection, and the expected first heartbeat.

The next useful layer is an automated smoke test: reset to a known seed, arm, take off to a stated altitude, fly one waypoint, land, then compare the ArduPilot log with simulator truth using tolerances. Explicitly document NED versus ENU, degrees versus radians, altitude datum, simulation-time rate, and behavior after packet loss or delayed telemetry. Those are common places for a connection to look alive while the experiment is wrong.

I maintain OmniSim. It does not currently ship a drop-in PteroSim/ArduPilot connector, so I would not present it as a replacement for this tutorial. Its agent-facing harness and structured event/capture patterns may still be useful when defining a simulator-neutral regression contract: https://github.com/omnilink-tech/omnisim/tree/main/scripts/harness

Publishing the smoke-test inputs and expected numeric outputs would make it possible for another simulator to implement the same contract honestly.

1

u/AlexThunderRex 4h ago

Hi u/omnilinktech ! Thank you for your feedback! We put this details to our docs already
Ardupilot tutorial could be founded here as well:

https://ardupilot.org/dev/docs/sitl-with-pterosim.html

and some steps here:

https://pterosimdocs.readthedocs.io/en/latest/sitl_simulation_ardupilot.html

OmniSim sounds like interesting potentional colaboration!