Roboid Control for C# 0.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
RoboidControl.Unity.Thing Class Reference

Detailed Description

The Unity representation fo a Roboid Control Thing.

Inheritance diagram for RoboidControl.Unity.Thing:
RoboidControl.Unity.DifferentialDrive RoboidControl.Unity.DistanceSensor RoboidControl.Unity.Motor RoboidControl.Unity.TouchSensor RoboidControl.Unity.Wheel

Public Member Functions

void UpdateThing ()
 Update the Unity state.
 

Static Public Member Functions

static Thing Create (RoboidControl.Thing core)
 Create a Unity representation of a Thing.
 

Public Attributes

Participant owner
 The owner of this thing.
 

Protected Member Functions

void Init (RoboidControl.Thing core)
 Initialize the Thing.
 
virtual void Update ()
 Update the Unity rendering.
 
virtual void FixedUpdate ()
 Update the Unity state (just calls UpdateThing)
 
virtual void HandlePose ()
 Handle a Pose event.
 
virtual void HandleBinary ()
 Handle a Binary event.
 

Properties

RoboidControl.Thing core [get, set]
 The core C# thing.
 

Member Function Documentation

◆ Create()

static Thing RoboidControl.Unity.Thing.Create ( RoboidControl::Thing  core)
static

Create a Unity representation of a Thing.

Parameters
coreThe core of the thing
Returns
The created thing

◆ Init()

void RoboidControl.Unity.Thing.Init ( RoboidControl::Thing  core)
protected

Initialize the Thing.

Parameters
coreThe core of the thing

This affects the parent and pose of the thing

◆ FixedUpdate()

virtual void RoboidControl.Unity.Thing.FixedUpdate ( )
protectedvirtual

Update the Unity state (just calls UpdateThing)

Reimplemented in RoboidControl.Unity.DifferentialDrive, and RoboidControl.Unity.Motor.

◆ HandlePose()

virtual void RoboidControl.Unity.Thing.HandlePose ( )
protectedvirtual

Handle a Pose event.

This can update the position and/or orientation when the velocity of the thing is zero. If a velocity is not zero, the position and/or orientation update will be ignored

◆ HandleBinary()

virtual void RoboidControl.Unity.Thing.HandleBinary ( )
protectedvirtual

Handle a Binary event.

Reimplemented in RoboidControl.Unity.DifferentialDrive, and RoboidControl.Unity.Motor.