Type conversion

<< Click to Display Table of Contents >>

Navigation:  Using Robotino® View >

Type conversion

Previous pageReturn to chapter overviewNext page

Data type

implicit conversion to

Description

int

float, bool

Conversion to bool will result in true if the value is not 0.

float

int, bool

Conversion to bool will result in true if the value is not 0.

bool

int, float

True results in 1, false results in 0.

pose

path

A pose is converted to a path with length 1.

path

pose

The result of the conversion of a path to a pose is the path's first pose. If the path is empty, the conversion results in an invalid pose.

float

float array

A floating point number is converted to a float array with length 1.