Coordinate Systems

openPASS uses three different coordinate systems. All systems rotate counterclockwise and use radian.

World Coordinate System

The world coordinate system is absolute. It is the parent coordinate system and all other systems are relative to the world coordinate system. This system consists of x, y and z (z is currently unused).

../../_images/WorldCoordinateSystem.png

World Coordinate System

Road Coordinate System

The road coordinate system is relative to the position of the road in the world coordinate system. It consists of s and t coordinates, where s describes the longitudinal position along the road. At the beginning of the road s = 0, increasing with the downstream direction of the road. The coordinate t describes the lateral position relative to the center of the road, where t > 0 indicates left side and t < 0 right side of the road with respect to the road direction.

../../_images/RoadCoordinateSystem.png

Road Coordinate System

Agent Coordinate System

The agent coordinate system is relative to the position of the agent in the world coordinate system. It uses longitudinal, lateral and height (height currently unused). The system originates at the reference point, which is located at the center of the rear axle. The longitudinal axis is parallel to the length of the car and the lateral axis is parallel to the width of the car

../../_images/AgentCoordinateSystem.png

Agent Coordinate System

Sensor Coordinate System

Each sensor has its own coordinate system whose origin is the mounting position of the sensor. The x axis points in the direction of the sensor as defined by the mounting orientation. All values in the OSI SensorData generated by a sensor are in its sensor coordinate system. Vectorial values such as velocity and acceleration are relative to the own vehicle’s velocity and acceleration at the sensor position.

Conversions between SensorData coordinate systems

Since all values in the SensorData are relative to the sensor the following conversions are needed.

In the Sensor_OSI where the SensorData is written, data for other objects is calculated according to these steps:

  1. Get position, velocity and acceleration from the SensorView in world coordinates

  2. For the position:
    1. Translation by the sensor position (in world coordinates, inverse)

    2. Rotation by the sensor orientation (in world coordinates, inverse)

  3. For the velocity and acceleration (vectorial):
    1. Subtract own velocity / acceleration at sensor position

    2. Rotation by the sensor orientation (in world coordinates, inverse)

ADAS using SensorData may need to convert the values back to the agent coordinate system. The SensorFusion_Errorless also converts the merged SensorData to agent coordinate and sets the mounting position to the agents reference point. This calculation follows the following steps:

  1. Get position, velocity and acceleration from the SensorData in sensor coordinates

  2. For the position:
    1. Rotation by the sensor orientation (mounting position in agent coordinates)

    2. Translation by the sensor position (mounting position in agent coordinates)

  3. For the velocity and acceleration (vectorial):
    1. Calculate the difference between the ego velocity / acceleration at the sensor position to the reference point (in world coordinates)

    2. Rotation of this difference by the inverse agent orientation

    3. Rotation of objects’ velocity / acceleration by the sensor orientation (mounting position in agent coordinates)

    4. Add results of the two previous steps