Description

A Vehicle is a Geodetic Object that moves over a celestial body. Position is integrated in a local tangent frame fixed to an origin on the planet, and latitude, longitude, and altitude are updated from that frame. The motion is kinematic: a commanded speed is applied along a heading or along a waypoint route. Components such as antennas or sensors can be attached to the platform.


Example Use Cases

  • Mobile Ground Assets: Represents rovers, trucks, or other moving platforms on planetary surfaces.
  • Tracking Scenarios: Simulates moving receivers or transmitters for communication link analysis.

Module Implementation

The local origin is a geodetic point on the planet. At the start of a run, an origin of latitude, longitude, and altitude is replaced by the vehicle position. In the origin frame, is origin north, is clockwise from that axis, and is up. Origin North is the clockwise angle from true north to the origin-north axis. With , origin north is true north.

Speed is in meters per second and is held at zero or above. The default speed is .

Heading Motion

With no waypoint route, the vehicle travels horizontally along Heading , measured clockwise from true north and reported in . In the origin frame, that bearing is :

The components are origin east, origin north, and up. The base vehicle adopts the commanded direction in one step. Altitude stays constant because the vertical component is zero. Setting a heading and speed clears any waypoint route.

Body Orientation

The vehicle body uses right (), forward (), and up () axes. The forward axis is the nose, so it points along Heading. The body rotation is stored as a quaternion relative to the origin frame, and Euler Angles expresses it in degrees: is the pitch about the right axis, is the roll about the forward axis, and is the counter-clockwise yaw about the up axis. Pitch and roll do not change the ground track. The heading and yaw are related by

The inertial attitude composes three rotations: the site attitude of the Geodetic Object, whose forward axis is true north; a rotation of about up from the origin frame to the site frame; and the body rotation:

where is the site attitude, is a counter-clockwise rotation about up, and is the body rotation in the origin frame. Changing Origin North keeps the true-north Heading, so the body yaw in the origin frame is updated to match.

Local Geodetic Mapping

A local position maps to geodetic coordinates about the origin on a sphere of radius :

Here and are true-north and true-east offsets. The latitude and longitude increments are in radians and are stored in degrees. Longitude is then shifted by if it falls outside .

A geodetic waypoint converts back into the same frame. Its longitude difference from the origin is wrapped to , and

with and .

Waypoint Route

A route is an ordered list of latitude, longitude, and altitude. While a route is active, the vehicle moves toward the current waypoint at speed . Align Heading To Route defaults to enabled, and only then does heading follow the horizontal travel direction, converted to a true-north bearing with . When it is disabled, heading stays at its current value and does not steer the route. Waypoint Arrival Tolerance defaults to . A waypoint closer than that tolerance is treated as reached, and the vehicle is placed on it.

One step may cross several waypoints. Let be the distance available in the step and the distance to the current waypoint. When the velocity points along the leg and would pass the waypoint, the vehicle is placed on the waypoint and the leftover distance is

The next leg then uses what remains of . Otherwise the vehicle advances by

After the last waypoint, the velocity is set to zero unless the route is set to loop, in which case it continues from the first waypoint. Clearing the route stops the vehicle and returns it to heading-controlled motion.


Assumptions/Limitations

  • The model is kinematic. Forces, wheel slip, and terrain are outside this model.
  • The surface mapping is a spherical tangent plane about the origin. Long routes, and an origin near a pole, accumulate error. Waypoint easting is omitted when is below .
  • Directed travel is horizontal. A change in altitude comes from a waypoint altitude, or from a subclass such as an Aircraft.
  • The base vehicle can change direction in a single step. Turn limits are supplied by a subclass.
  • A negative speed command is stored as zero.
  • An origin of exactly , , at startup is replaced by the vehicle position.
  • Changing Origin North rotates the origin frame but does not move the stored Coordinates, so the vehicle’s geodetic position shifts on the next coordinate update.