Humanoid Control for Unity v4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Passer.Tracking.PerceptionNeuron Class Reference

Description

Component to receive tracking information from Axis Neuron

Inheritance diagram for Passer.Tracking.PerceptionNeuron:
Passer.Tracking.BodySkeleton Passer.Tracking.TrackerComponent

Public Member Functions

Transform GetBoneTransform (Humanoid.Tracking.Bone boneId)
 Gets the transform of the tracked bone More...
 
TrackedBone GetBone (Humanoid.Tracking.Bone boneId)
 Gets the tracked bone More...
 
virtual void ShowSkeleton (bool shown)
 

Static Public Member Functions

static PerceptionNeuron Find (Transform parentTransform)
 Find a Perception Neuron tracker More...
 
static PerceptionNeuron Get (Transform parentTransform, Vector3 localPosition, Quaternion localRotation)
 Create a new Perception Neuron Tracker
 

Public Attributes

string ipAddress = "127.0.0.1"
 The ip adress on which Axis Neuron is running
 
int port = 7001
 The port on which Axis Neuron is broadcasting the tracking data.
 
bool show = false
 Determines whether the skeleton should be rendered
 
Tracker.Status status
 The status of the tracking device
 

Protected Member Functions

override void Start ()
 
override void InitializeSkeleton ()
 This function is used to intialize the tracked bones. More...
 
void InitializeBone (Bone boneId, Transform parent, bool addRenderer=true)
 
void OnDisable ()
 
override void Update ()
 
void UpdateSkeletonBones ()
 
void UpdateTorso ()
 
void UpdateLeftArm ()
 
void UpdateRightArm ()
 
void UpdateLeftLeg ()
 
void UpdateRightLeg ()
 
void UpdateBonePosition (Bone boneId)
 
void UpdateBoneLocalPosition (Bone boneId)
 
void UpdateBoneRotation (Bone boneId)
 
void UpdateBoneRotation (Bone boneId, Side side, SideBone sideBoneId)
 
void UpdateBoneLocalPosition (Bone boneId, Side side, SideBone sideBoneId)
 
void UpdateSkeletonRender ()
 Updates the rendering of the bones
 
void EnableRenderer ()
 
void DisableRenderer ()
 

Protected Attributes

List< TrackedBone > bones
 The list of tracked bones
 
bool rendered
 
Transform realWorld
 

Member Function Documentation

◆ Find()

static PerceptionNeuron Passer.Tracking.PerceptionNeuron.Find ( Transform  parentTransform)
static

Find a Perception Neuron tracker

Parameters
parentTransformThe parent transform of the tracker
Returns
The tracker

◆ Start()

override void Passer.Tracking.PerceptionNeuron.Start ( )
protectedvirtual

Reimplemented from Passer.Tracking.TrackerComponent.

◆ InitializeSkeleton()

override void Passer.Tracking.PerceptionNeuron.InitializeSkeleton ( )
protectedvirtual

This function is used to intialize the tracked bones.

Implements Passer.Tracking.BodySkeleton.

◆ Update()

override void Passer.Tracking.PerceptionNeuron.Update ( )
protectedvirtual

Reimplemented from Passer.Tracking.TrackerComponent.

◆ GetBoneTransform()

Transform Passer.Tracking.BodySkeleton.GetBoneTransform ( Humanoid.Tracking.Bone  boneId)
inherited

Gets the transform of the tracked bone

Parameters
boneIdThe requested bone
Returns
The tracked bone transform or null if it does not exist

◆ GetBone()

TrackedBone Passer.Tracking.BodySkeleton.GetBone ( Humanoid.Tracking.Bone  boneId)
inherited

Gets the tracked bone

Parameters
boneIdThe requested bone
Returns
The tracked bone or null if it does not exist

The documentation for this class was generated from the following file: