# panda3d.core.TrackerNode¶

from panda3d.core import TrackerNode

class TrackerNode

Bases: DataNode

This class reads the position and orientation information from a tracker device and makes it available as a transformation on the data graph. It is also the primary interface to a Tracker object associated with a ClientBase.

Inheritance diagram

__init__(client: ClientBase, device_name: str) → None
__init__(device: InputDevice) → None
__init__(param0: TrackerNode) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getGraphCoordinateSystem() → CoordinateSystem

Returns the coordinate system that the TrackerNode will convert its transform into for passing down the data graph. Normally, this is CS_default.

Return type

CoordinateSystem

getOrient() → LOrientation

Returns the current orientation of the tracker, if it is available.

Return type

LOrientation

getPos() → LPoint3

Returns the current position of the tracker, if it is available.

Return type

LPoint3

getTime() → float

Returns the time of the tracker’s last update.

getTrackerCoordinateSystem() → CoordinateSystem

Returns the coordinate system that the tracker associated with this node will operate in.

Return type

CoordinateSystem

getTransform() → LMatrix4

Returns the current position and orientation of the tracker, as a combined matrix.

Return type

LMatrix4

hasTime() → bool

True if this data comes with timestamps.

isValid() → bool

Returns true if the TrackerNode is valid and connected to a server, false otherwise.

setGraphCoordinateSystem(cs: CoordinateSystem) → None

Specifies the coordinate system that the TrackerNode will convert its transform into for passing down the data graph. Normally, this is CS_default.

setTrackerCoordinateSystem(cs: CoordinateSystem) → None

Specifies the coordinate system that the tracker associated with this node will operate in. Normally, this is set from the ClientBase that’s used to create the TrackerNode, so it should not need to be set on an individual tracker basis.