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:
Vehicle 'a' is approaching 'my car', but is not yet in the blind spot, so leftSideVehicleApproaching will be set to
true
.Vehicle 'b' is the closest forward vehicle in the same path, and reported in inPathForwardClosestVehicleDistance.
______________________________________________
## (a)
----------------------------------------------
## (my car) ## (b) ## (c)
______________________________________________
Scenario 2:
Vehicle 'a' is adjacent and in the blind spot of 'my car', so leftSideVehicleAdjacent will be set to
true
.Vehicle 'b' is too far away, so inPathForwardClosestVehicleDistance
.value
is set tonull
.
______________________________________________
## (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)
______________________________________________