documentation

LogInitPoseBehaviour Class Reference

Logs the current transformation of the Camera component in VisionLib coordinates. More...

Inherits VLWorkerReferenceBehaviour.

Data Structures

class  InitPose
 Helper class for converting the initial pose into JSON. More...
 

Public Member Functions

string GetInitPoseJson ()
 Returns the current transformation of the Camera component in VisionLib coordinates as JSON string. More...
 
void DoLog ()
 Logs the current transformation of the Camera component in VisionLib coordinates. More...
 

Data Fields

bool prettyPrint = true
 Pretty-print the JSON output. More...
 
- Data Fields inherited from VLWorkerReferenceBehaviour
VLWorkerBehaviour workerBehaviour
 Reference to used VLWorkerBehaviour. More...
 

Additional Inherited Members

- Protected Member Functions inherited from VLWorkerReferenceBehaviour
bool InitWorkerReference ()
 Initializes the workerBehaviour and worker member variables. More...
 
- Protected Attributes inherited from VLWorkerReferenceBehaviour
VLWorker worker
 

Detailed Description

Logs the current transformation of the Camera component in VisionLib coordinates.

This is just an example to show you how to convert a Camera transformation from Unity coordinates into VisionLib coordinates using the VLUnityCameraHelper class.

Member Function Documentation

◆ DoLog()

void LogInitPoseBehaviour.DoLog ( )
inline

Logs the current transformation of the Camera component in VisionLib coordinates.

◆ GetInitPoseJson()

string LogInitPoseBehaviour.GetInitPoseJson ( )
inline

Returns the current transformation of the Camera component in VisionLib coordinates as JSON string.

Returns
JSON string with initial pose in VisionLib coordinates.

Field Documentation

◆ prettyPrint

bool LogInitPoseBehaviour.prettyPrint = true

Pretty-print the JSON output.