VehicleSurroundingsSensorsService

interface VehicleSurroundingsSensorsService

The VehicleSurroundingsSensorsService interface provides access to state information coming from the vehicle sensors. Not all vehicles have all sensors onboard and the interface provides information about the supported states. Sensors cannot act and this service is therefore read-only.

The diagrams below show a number of example scenarios that can be represented by the exposed states. The cube 'my car' is the subject. The cubes 'a', 'b' and 'c' represent vehicles around 'my car'. The direction of movement of all vehicles in the diagrams below is from left to right.

Scenario 1:

______________________________________________
## (a)
----------------------------------------------
## (my car) ## (b) ## (c)
______________________________________________

Scenario 2:

______________________________________________
## (a)
----------------------------------------------
## (my car) ## (b)
______________________________________________

Scenario 3:

  • Vehicle 'a' has passed by 'my car' and is no longer detected. No flags are set.

If 'my car' would be approaching 'a', flags remain unset. Approaching only applies to vehicles behind 'my car'.

______________________________________________
## (a)
----------------------------------------------
## (my car)
______________________________________________

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Indicates whether a forward in-path vehicle has been detected, and the distance to that vehicle.

Link copied to clipboard
abstract val leftSideVehicleAdjacent: VehicleProperties.BooleanProperty?

Indicates whether a vehicle is present, on the left side.

Link copied to clipboard
abstract val leftSideVehicleApproaching: VehicleProperties.BooleanProperty?

Indicates whether a vehicle is approaching from behind, on the left side.

Link copied to clipboard
abstract val rightSideVehicleAdjacent: VehicleProperties.BooleanProperty?

Indicates whether a vehicle is present, on the right side.

Link copied to clipboard
abstract val rightSideVehicleApproaching: VehicleProperties.BooleanProperty?

Indicates whether a vehicle is approaching from behind, on the right side.