Target List

Parent

The list of targets/path-waypoints a autonomous vehicle can drive

Functions

addTarget (target : Struct<TargetPoint>)

Adds the given target point struct at the end of the target list.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Add Target

Parameters
Name Type Description

Target target

Struct<TargetPoint>

The target point you want to add.

getTarget () → target : Struct<TargetPoint>

Returns the target struct at with the given index in the target list.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Target

Return Values
Name Type Description

Target target

Struct<TargetPoint>

The TargetPoint-Struct with the given index in the target list.

getTargets () → targets : Array<Struct<TargetPoint>>

Returns a list of target point structs of all the targets in the target point list.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Targets

Return Values
Name Type Description

Targets targets

Array<Struct<TargetPoint>>

A list of target point structs containing all the targets of the target point list.

removeTarget (index : Int)

Removes the target with the given index from the target list.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Remove Target

Parameters
Name Type Description

Index index

Int

The index of the target point you want to remove from the target list.

setTarget (index : Int, target : Struct<TargetPoint>)

Allows to set the target at the given index to the given target point struct.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Set Target

Parameters
Name Type Description

Index index

Int

The index of the target point you want to update with the given target point struct.

Target target

Struct<TargetPoint>

The new target point struct for the given index.

setTargets (targets : Array<Struct<TargetPoint>>)

Removes all targets from the target point list and adds the given array of target point structs to the empty target point list.

Details

Flags

RuntimeSync MemberFunc

Display Name

Set Targets

Parameters
Name Type Description

Targets targets

Array<Struct<TargetPoint>>

A list of target point structs you want to place into the empty target point list.