TrackerNode

from panda3d.core import TrackerNode
class TrackerNode

Bases:

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

Inheritance diagram of TrackerNode

__init__(client: ClientBase, device_name: str)
__init__(device: InputDevice)
__init__(param0: TrackerNode)
static getClassType() 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.

getOrient() LOrientation

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

getPos() LPoint3

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

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.

getTransform() LMatrix4

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

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)

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)

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.