FB_RandomTargetsGenerator - GetTargetsInPlane (Method)

Overview

Type:

Method

Available as of:

V1.1.0.0

This chapter provides information on:

Task

Retrieve a set of constraints for the generation of random targets.

Description

The method GetTargetsInPlane allows you to retrieve a set of constraints for the generation of random targets contained in a selected working plane.

Interface

Output

Data type

Description

q_etDiag

GD.ET_Diag

General library-independent statement on the diagnostic. A value unequal to GD.ET_Diag.Ok corresponds to a diagnostic message.

q_etDiagExt

ET_DiagExt

POU-specific output on the diagnostic.

q_etDiag = ET_Diag.Ok -> Status message

q_etDiag <> ET_Diag.Ok -> Diagnostic message

q_sMsg

STRING[80]

Event-triggered message that gives more detailed information on the diagnostic state.

q_udiNumberOfTargets

UDINT

Number of targets to be generated by the method.

q_lrTargetOverlapRadius

LREAL

Radius of a circle defined around each target. The targets are generated so that the circles do not overlap.

q_udiMaxOverlapCheckIterations

UDINT

Maximum number of iterations used to generate the targets without overlaps.

q_etPlane

ET_WorkingPlane

Selected working plane.

q_stMinPosition

PDL.ST_Vector3D

Minimum position value for a generated target.

q_stMaxPosition

PDL.ST_Vector3D

Maximum position value for a generated target.

q_lrMinRotation

LREAL

Minimum rotation angle about an axis normal to the selected plane used to generate the pose.

q_lrMaxRotation

LREAL

Maximum rotation angle about an axis normal to the selected plane used to generate the pose.

q_etOrientationConvention

ROB.ET_OrientationConvention

Convention for the rotation angles of the orientation.

q_alrTargetTypeProbabilityList

ARRAY [1...Gc_uiMaxNumberOfTargetTypes] OF LREAL

List containing values related to the probability that a target of a certain target type is randomly generated.

Diagnostic Messages

q_etDiag

q_etDiagExt

Enumeration value of q_etDiagExt

Description

Ok

Ok

0

Ok

ExecutionAborted

RandomTargetsTypeNotConfigured

64

The desired target generation type was not configured.

Ok

Enumeration name:

Ok

Enumeration value:

0

Description:

Success

The parameters was successfully loaded.

RandomTargetsTypeNotConfigured

Enumeration name:

RandomTargetsTypeNotConfigured

Enumeration value:

64

Description:

The desired target generation type was not configured.

Issue

Cause

Solution

Target generation type not configured.

The selected random target generation type was not configured.

Ensure to configure the required random target generation type with the method SetTargetsInPlane before calling the GetTargetsInPlane method.