Skip to main content

GetOrCreateGroundTruthObject

Valid for: CANoe DE Note: This CAPL function is also available in C#.

Function Syntax

C#
CAPL

Description

Gets a ground truth object as string (name of the object). The object is created if it does not exist. The object itself can be retrieved after using a lookup function (see example).

Parameters

  • groundTruthId: Id of the ground truth object
  • environmentObjectType: Type of the ground truth object to be created. The following environmentObjectType values are supported to be displayed in the Scene Window:
    • IStationaryObject
    • IMovingObject
    • ILane
    • ILaneBounday

Return Values

The name of the ground truth object as string.

Example

CAPL

C#