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 get_class_type() TypeHandle
get_graph_coordinate_system() CoordinateSystem

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

get_orient() LOrientation

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

get_pos() LPoint3

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

get_time() float

Returns the time of the tracker’s last update.

get_tracker_coordinate_system() CoordinateSystem

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

get_transform() LMatrix4

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

has_time() bool

True if this data comes with timestamps.

is_valid() bool

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

set_graph_coordinate_system(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.

set_tracker_coordinate_system(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.