Vehicle Domain
The vehicle domain represents each active execution instance. Public ACI uses
the general term vehicle, not the legacy term drone. A vehicle is
created from one confirmed request and reports that relationship through
getRequestID().
Command Scope
Vehicle commands are runtime overrides layered on top of the active tactical model. They are constrained by vehicle dynamics, valid 3D routes, separation logic, closures, and hard safety rules. A target-speed command therefore asks the tactical executor to use that target when feasible; it is not permission to violate a safety constraint.
There is no vehicle.release() command. Request confirmation controls
admission; the simulator performs release when the accepted request and its
resources are ready. vehicle.resume(vehicleID) means resume a vehicle that
ACI previously held.
Retrieve Information
Lists and General State
| Information | Python method |
|---|---|
| Vehicle IDs, optionally filtered by execution state | aci.vehicle.getIDList(state=None) |
| Vehicle count, optionally filtered by execution state | aci.vehicle.getCount(state=None) |
| Complete JSON-compatible record | aci.vehicle.getSnapshot(vehicleID) |
| Source request ID | aci.vehicle.getRequestID(vehicleID) |
| Vehicle type | aci.vehicle.getType(vehicleID) |
| Execution state | aci.vehicle.getState(vehicleID) |
| Current flight phase | aci.vehicle.getFlightPhase(vehicleID) |
| Active control source | aci.vehicle.getControlSource(vehicleID) |
| Explicit ACI hold record | aci.vehicle.getHold(vehicleID) |
| Effective hold after combining ACI, tactical, resource, and closure constraints | aci.vehicle.getEffectiveHold(vehicleID) |
| Stopped state (see below) | aci.vehicle.getStopped(vehicleID) |
The execution state is one of IDLE (at the origin, not yet departed),
TAKEOFF, CRUISE, LANDING and WAITING. The state filter of
getIDList() and getCount() takes these values, case-insensitively. A value
outside this list, such as ACTIVE, matches no vehicle and returns [] or
0. A completed vehicle leaves the vehicle domain.
getFlightPhase() (climb, cruise, descend) and the matching
TAKEOFF/CRUISE/LANDING states are classified from the onboard
estimator’s vertical speed, not the true one. The classification uses
vehicle.climb_rate_threshold (0.5 m/s by default) with a
vehicle.flight_mode_hysteresis band (0.1 m/s). Estimator noise can therefore
switch the phase briefly during level flight, and the phase can disagree for
a moment with the sign of getVerticalSpeed(). Do not treat a single
LANDING sample as the start of the approach; use the route position
(getRouteIndex(), getDistanceOnElement()) instead.
Motion and Position
| Information | Python method |
|---|---|
| 3D position (map frame, m) | aci.vehicle.getPosition3D(vehicleID) |
| Velocity vector (map frame, m/s) | aci.vehicle.getVelocity(vehicleID) |
Horizontal ground speed, hypot(vx, vy) (m/s) |
aci.vehicle.getSpeed(vehicleID) |
Vertical speed: the true map-frame vz (m/s, positive up) |
aci.vehicle.getVerticalSpeed(vehicleID) |
Acceleration magnitude of the 3D velocity change (m/s², never negative; compare successive getSpeed() values for the sign) |
aci.vehicle.getAcceleration(vehicleID) |
| Heading: body yaw (rad, counter-clockwise from the map +x axis, in (-π, π]); differs from the ground track by the wind crab angle | aci.vehicle.getHeading(vehicleID) |
| Remaining route distance | aci.vehicle.getRemainingDistance(vehicleID) |
| Waiting time | aci.vehicle.getWaitingTime(vehicleID) |
Route and Network Position
| Information | Python method |
|---|---|
| Current corridor | aci.vehicle.getCurrentCorridorID(vehicleID) |
| Next corridor | aci.vehicle.getNextCorridorID(vehicleID) |
| Distance along the current element | aci.vehicle.getDistanceOnElement(vehicleID) |
| Ordered corridor route | aci.vehicle.getRoute(vehicleID) |
| Current route index | aci.vehicle.getRouteIndex(vehicleID) |
| Route connectivity: consecutive corridors are connected | aci.vehicle.getRouteValid(vehicleID) |
| Origin | aci.vehicle.getOrigin(vehicleID) |
| Destination | aci.vehicle.getDestination(vehicleID) |
Timing and Nearby Traffic
| Information | Python method |
|---|---|
| Requested departure time | aci.vehicle.getRequestedDepartureTime(vehicleID) |
| Actual departure time | aci.vehicle.getActualDepartureTime(vehicleID) |
| Departure delay | aci.vehicle.getDepartureDelay(vehicleID) |
| Planned free-flow arrival time from the current position | aci.vehicle.getETA(vehicleID) |
Leader: the next vehicle ahead on the same corridor ("" when none) |
aci.vehicle.getLeaderID(vehicleID) |
Follower: the next vehicle behind on the same corridor ("" when none) |
aci.vehicle.getFollowerID(vehicleID) |
Time headway: space headway / own along-path speed, with the speed floored at 0.1 m/s (s; None without a leader) |
aci.vehicle.getTimeHeadway(vehicleID) |
Space headway: along-path distance to the leader (m; None without a leader) |
aci.vehicle.getSpaceHeadway(vehicleID) |
| Safety-constrained allowed speed | aci.vehicle.getAllowedSpeed(vehicleID) |
| Effective target speed | aci.vehicle.getTargetSpeed(vehicleID) |
Raw target requested through ACI, or None |
aci.vehicle.getRequestedTargetSpeed(vehicleID) |
| Tactical baseline speed | aci.vehicle.getBaselineSpeed(vehicleID) |
getTargetSpeed() is the current effective along-path speed target after
tactical and safety constraints. It never echoes an infeasible raw request.
For example, after setTargetSpeed(vehicleID, 999), the effective target still
respects the active corridor, resource, separation, and vehicle envelope. Use
getRequestedTargetSpeed() only when the unfiltered ACI request is needed for
diagnostics.
Leader, follower and headways only look along the vehicle’s current corridor. A stopped vehicle’s time headway can reach hundreds of seconds.
getHold() reports exactly the state installed by aci.vehicle.hold(), so it
changes immediately when hold() or resume() is called. In contrast,
getEffectiveHold() reports whether the vehicle is currently held for any
reason. This includes an ACI hold, controlled-junction sequencing, vertiport
pad capacity and a closed downstream element. It also includes a vehicle that
has stopped in the queue behind such a vehicle, whether that queue is behind
a held leader on the same corridor or behind the vehicles waiting at a closed
element. Both return {"active": ..., "reason": ...}; reason names the
constraint and is empty while active is False.
getWaitingTime() (and waiting_time in the trip output) counts only the
time a vehicle spends in the WAITING state. A vehicle enters WAITING only
under one of the vehicle’s own holds: an ACI hold, junction sequencing, a
vertiport pad, or a closure at the boundary it has reached. A vehicle stopped
further back in a queue reports an active effective hold, but its waiting
time does not grow.
getStopped() is True when the horizontal ground speed is below 0.1 m/s.
It is also True while an effective hold is active and the 3D speed is below
0.5 m/s. A hold is a zero-speed reference, not a position lock: a held,
hovering vehicle keeps drifting at a few cm/s to a few dm/s.
getETA() is the planned free-flow arrival time from the current position.
The rest of the current corridor and every later corridor are charged at the
vehicle’s own planned speed profile. A vehicle still at its origin is charged
from its scheduled departure time. The estimate does not forecast tactical
holds, queues or ACI speed commands, so it moves later while the vehicle is
held.
Energy
| Information | Python method |
|---|---|
| Accumulated energy (J) | aci.vehicle.getEnergyConsumption(vehicleID) |
| State of charge (fraction, 0 to 1) | aci.vehicle.getSOC(vehicleID) |
| Current electrical power (W) | aci.vehicle.getPower(vehicleID) |
Change State
Motion Commands
| Command | Python method |
|---|---|
| Hold a vehicle, airborne or still at its origin | aci.vehicle.hold(vehicleID, *, reason="aci") |
| Resume from an ACI hold | aci.vehicle.resume(vehicleID) |
| Set a persistent target-speed override | aci.vehicle.setTargetSpeed(vehicleID, speed) |
| Linearly transition from the current along-path speed to a target, then restore tactical control | aci.vehicle.slowDown(vehicleID, speed, duration) |
| Restore tactical-model speed selection | aci.vehicle.clearTargetSpeed(vehicleID) |
| Raise the minimum following distance (m) | aci.vehicle.setTargetHeadway(vehicleID, headway) |
| Restore the tactical-model headway | aci.vehicle.clearTargetHeadway(vehicleID) |
Speed and headway targets remain subordinate to hard dynamic and safety
constraints. resume() clears an ACI hold; it does not confirm or release the
request that originally created the vehicle.
setTargetHeadway() takes a distance in metres (at least 0) and can only
widen spacing: the tactics follow at the larger of the corridor’s
min_headway and this value, so a value below min_headway has no effect,
although the result echoes it. It has no effect under the constant_speed
rule, which does not follow a leader.
hold() on a vehicle that is still IDLE at its origin keeps it on the
ground. The vehicle leaves the pad queue, gives back any pad slot or
departure-node grant it held, and records no departure. After resume() it
queues for its pad again and departs normally. getActualDepartureTime() and
getDepartureDelay() then report the real takeoff.
Speed targets, the effective target from getTargetSpeed() included, are
along-path speeds: the speed along the corridor centreline. In level cruise
this equals getSpeed(). It differs during climbs and descents, and while
the vehicle is pinned at a corridor end.
slowDown() requires a finite duration > 0. During that interval the
target is linearly interpolated from the vehicle’s along-path speed when the
command is issued to speed. The result’s start_speed reports that
starting value. getTargetSpeed() shows the interpolated value, while
getRequestedTargetSpeed() reports the final speed for the whole
transition. Every point on the transition remains subject to
tactical/resource safety limits. At the end instant the temporary command
expires and the tactical model resumes speed selection; use
setTargetSpeed() when the final target should remain in force.
Route Commands
| Command | Python method |
|---|---|
| Replace the remaining route with a supplied connected route | aci.vehicle.setRoute(vehicleID, corridorIDs) |
| Recalculate a valid route to the current destination | aci.vehicle.reroute(vehicleID) |
| Change destination and calculate a route | aci.vehicle.changeDestination(vehicleID, destination) |
| Divert to a specified vertiport | aci.vehicle.divert(vehicleID, vertiportID) |
Use setRoute() separately when a diversion requires an explicit route. The
current corridor must be the first supplied corridor, every future corridor
must be open and compatible with the vehicle, and the route must end at the
current destination. Only changeDestination() or divert() changes that
destination. Every route command is validated and planned before the vehicle
is touched: an invalid or unroutable setRoute(), reroute(),
changeDestination(), or divert() raises ACIException and leaves the
vehicle’s route, destination, and held resources exactly as they were, so
getRoute() and getDestination() still report the previous route.
A successful route command replaces the route from the current corridor
onward. Afterwards getRoute() starts at the current corridor, so its first
element no longer starts at getOrigin(), and getRouteIndex() restarts at
- The corridors already flown are no longer listed. Trip output still counts
them, so
route_length,mean_speed,unimpededandairborne_delaycover the whole trip. Each command records its own action in the result and the intervention log (vehicle_set_route,vehicle_reroute,vehicle_change_destination,vehicle_divert).
getRouteValid() checks only that consecutive corridors are connected. It is
not a closure or vehicle-compatibility check, and it stays True while a
downstream corridor is closed. Use aci.corridor.getClosure() for closures.
Intentionally Unsupported Controls
ACI does not expose commands that teleport a vehicle, disable safety checking, rewrite its previous speed, mutate physical vehicle properties, or set arbitrary implementation parameters. New controls should be added as typed methods with defined units, validation, lifetime, and clearing semantics.