ADAS CAPL Functions
Valid for: CANoe DEIntroduction
ON THIS PAGE:- General ADAS API
- Ground Truth API
- Proj API
- Scenario API
- Sensor API
- Transmission Behavior API
- Test Feature Set
General ADAS API
| Functions | Short Description |
|---|---|
| ADASActivateFMU | This method is used to activate or deactivate a specified FMU that has been coupled via the FMI. |
| ADASSetOutputData | This method is used to set a byte array as ADAS output. |
Ground Truth API
| Functions | Short Description |
|---|---|
| GetGroundTruthObject | Gets the name of a special ground truth object as string. |
| GetGroundTruthObjects | Gets the unique names of available ground truth objects as string-array. |
| GetHostVehicle | Gets the name of the host vehicle for the current ground truth. |
| GetOrCreateGroundTruthObject | Gets a ground truth object. The object is created if it does not exist. |
| HasGroundTruthObjects | Checks if a special ground truth object exits. |
| SetHostVehicle | Sets the host vehicle for the ground truth. |
Proj API
| Functions | Short Description |
|---|---|
| Proj_Create | Initialize the Proj Access with a Proj String / Proj definition. |
| Proj_TransformToGeo | Transforms an inertial coordinate to a geodetic coordinate. |
| Proj_TransformToInertial | Transforms a geodetic coordinate to an inertial coordinate. |
Scenario API
| Functions | Short Description |
|---|---|
| SetStationSpeed | Changes the speed of a station. |
| StartScenario | Starts the currently loaded scenario. |
| StopScenario | Stops a started scenario. |
| IsScenarioStarted | Queries whether the currently loaded scenario has started. |
| LoadScenario | Loads a scenario during a running measurement via a file path. |
| GetStationAttributeDouble | Queries an attribute of a scenario as a value of type double at the runtime of the scenario. |
| GetStationAttributeInt64 | Queries an attribute of a scenario as a value of type int64 at the runtime of the scenario. |
| SetStationAttributeDouble | Sets values for attributes based on the attribute name and keypoint (index) in the Scenario Editor timeline. |
| SetStationAttributeInt64 | Sets values for attributes based on the attribute name and keypoint (index) in the Scenario Editor timeline. |
| OnScenarioStateChange | This callback is called when the state of the scenario has changed. |
| OnStationAttributeTrigger | This callback is called is called when the value of an attribute of a station has changed. |
Sensor API
| Functions | Short Description |
|---|---|
| GetDetectedObjects | This function returns the detected objects of a sensor as a string array. |
| GetDetectedObjectsCondtional | This function returns the detected objects of a sensor as a string array. |
| GetOrCreateDetectedObject | This function gets the name of a detected object of a sensor as a string. If no object with the given trackingId exists, it will be created. |
| GetDetectedObjectByTrackingId | This function returns the name of a detected object of a sensor based on the trackingId as a string. |
| GetDetectedObjectByGroundTruthId | This function gets the name of a ground truth object of a sensor based on the ground truth Id as a string. If no object with the given ground truth Id is present, an empty string is returned. |
| HasDetectedObject | This function can be used to query whether a detected object of a sensor with a specific tracking Id is present. |
| RemoveDetectedObject | This function can be used to remove a detected object from a sensor with a specific tracking Id. |
| SetDetectedObjectExpirationTime | Sets a detected object to inactive after a special amount of time (in ms). |
Transmission Behavior API
| Functions | Short Description |
|---|---|
| BeginUpdate | This method is only required if data of a sensor and those of its detected objects are not to be sent directly after assignment. |
| OnDetectedObjectUpdate | A call of this method for a sensor sends all the data of the sensor and the detected objects that have been marked as completed. |
| Reset | Calling this function resets the values of the available sensors to their default values and clears the list of objects detected by them. |
| SetDetectedObjectCompleted | This method is used to mark that the data of a detected object of a sensor is completely available. |
| SetDetectedObjectsCompleted | This method is used to mark that the data of a sensor is completely available. |
| Update | A call of this method for a sensor sends all data of the sensor and the detected objects that were marked as completed. |
Test Feature Set
| Functions | Short Description |
|---|---|
| TestGetWaitADASDetectedObject | Retrieves the name of the Detected Object that triggered the wait function. |
| TestWaitForADASDetectedObjectDistance | Waits for a Detected Object for which the distance is above/below a specified value. |
| TestWaitForADASDetectedObjectSpeed | Waits for a Detected Object for with a speed above/below a specified value. |
| TestWaitForADASDetectedObjectTimeToCollision | Waits for the occurrence of the first Detected Object matching the Time To Collision (TTC) conditions passed as arguments. |
| TestWaitForADASGroundTruthObjectDistance | Waits for the occurrence of the first Moving Object matching the distance conditions passed as arguments. |
| TestWaitForADASGroundTruthObjectInLane | Waits for a Moving Object which is completely in the given lane. |
| TestWaitForADASGroundTruthObjectInSameLane | Waits for a Moving Object which is completely in the lane of the ego vehicle. |
| TestWaitForADASGroundTruthObjectLaneSwitch | Waits for a Moving Object which switches lane. |
| TestWaitForADASGroundTruthObjectSpeed | Waits for the occurrence of the first Moving Object matching the speed conditions passed as arguments. |
| TestWaitForADASGroundTruthObjectTimeToCollision | Waits for the occurrence of the first Moving Object matching the Time To Collision (TTC) conditions passed as arguments. |