Skip to main content

HasGroundTruthObject

CAPL Functions » ADAS » HasGroundTruthObject Valid for: CANoe DE

Note

This CAPL function is also available in C#.

Function Syntax

C#
bool HasGroundTruthObject.Call(uint64 groundTruthId);
CAPL
int HasGroundTruthObject.Call(uint64 groundTruthId);

Description

Checks if a ground truth object with a special ground truth id exists.

Parameters

  • uint64 groundTruthId: The id of the ground truth object

Return Values

True if the object exists, else false.

Example

In the examples it is assumed in each case that a DO object of the type IGroundTruthAccess was created.

CAPL

int groundTruthObjectAvailable = GroundTruthAccess.HasGroundTruthObject.Call(42);

C#

bool groundTruthObjectAvailable = GroundTruthAccess.HasGroundTruthObject.Call(42);