gramods
Loading...
Searching...
No Matches
XML Documentation for gmTrack

This page lists elements defined in the gmTrack module and parameters (P), containers (C), their types and their corresponding C++ methods.

Parameters are set either as attributes or with the param tag, e.g. <param name="fullscreen" value="true">. Containers are typically automatically associated with the child type, through the Object::getDefaultKey() method, however it can be explicitly controlled through the KEY="container" attribute. Observe also that futher documentation for how an attribute should be used is sometimes available adjacent to the C++ methods.

XML attributes are parsed by stream operators. For more information about how this is done, refer to the documentation of the respective stream operator in the gramods namespace.

ArucoBoardComplex

The Aruco board complex creates a potentially non-flat Aruco "board", or rig, by combinging a set of Aruco boards with different pose relative to the complex base. (more)

AttributeTypeMethodDocumentation
CarucoBoardArucoBoard addArucoBoard Add an Aruco board to the complex.
PorientationQuaternionfaddOrientation Add a board orientation.
PpositionVector3faddPosition Add a board position of the complex, in xml as (x y z).

ArucoGridBoard

The Aruco grid board creates a flat grid of fiducial markers. (more)

AttributeTypeMethodDocumentation
Pcolumnssize_tsetColumns Set the number of columns of markers to track.
PdictionarystringsetDictionary Set dictionary to pull marker definition from.
PfirstIdsize_tsetFirstId Set the first id to use from the dictionary when defining the markers.
PmarkerSeparationfloatsetMarkerSeparation Set the distance between the markers, typically in meters.
PmarkerSizefloatsetMarkerSize Set the size of the markers, typically in meters.
PorientationQuaternionfsetOrientation Set the orientation of the board grid.
PpositionVector3fsetPosition Set the position of the board grid relative to the origin of the board.
Prowssize_tsetRows Set the number of columns of markers to track.

ArucoPoseTracker

Pose tracker that tracks pose using fiducial markers. (more)

AttributeTypeMethodDocumentation
CarucoBoardArucoBoard addArucoBoard Add an ArucoBoard to track.
PcameraConfigurationFilefilesystem::pathsetCameraConfigurationFile Sets the (cv::FileStorage) file to read camera parameters from.
PkeystringsetKey Set the key to use for the data produced by this tracker.
PrefindMarkersboolsetRefindMarkers Set to true if markers that were not found should be detected based on the information from found markers.
PshowDebugboolsetShowDebug Set to true to activate debug graphics.
PtrackCameraboolsetTrackCamera If set to true the pose tracker will estimate the camera pose relative the markers.
CvideoSourceOpenCvVideoCapture setVideoSource Set the video source to read images from.

BinaryKeyChangeTracker

This tracker of bool data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states. (more)

AttributeTypeMethodDocumentation
CbinaryTrackerBinaryTracker addTracker Adds a tracker to read states from.
Pmappingstring2addMapping Adds a mapping, so that a key that matches the first specified string in the specified tracker is changed to the second specified string before being returned by get().
PretainMappedboolsetRetainMapped Sets if the old key should also be retained when mapped.

BinaryTimeSampleTracker

This tracker of binary (bool) data reports states as specified in the samples of the node. (more)

AttributeTypeMethodDocumentation
PkeystringaddKey Adds an key string for a sample.
PtimedoubleaddTime Adds a time sample in seconds, from the start of the program.
PvaluebooladdValue Adds the value for a sample.

BinaryVrpnTracker

Binary tracker reading data off a VRPN server. (more)

AttributeTypeMethodDocumentation
PconnectionStringstringaddConnectionString Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost".

Float2KeyChangeTracker

This tracker of gmCore::float2 data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states. (more)

AttributeTypeMethodDocumentation
Cfloat2TrackerFloat2Tracker addTracker Adds a tracker to read states from.
Pmappingstring2addMapping Adds a mapping, so that a key that matches the first specified string in the specified tracker is changed to the second specified string before being returned by get().
PretainMappedboolsetRetainMapped Sets if the old key should also be retained when mapped.

Float2TimeSampleTracker

This tracker of gmCore::float2 (std::array<float, 2>) data reports states as specified in the samples of the node. (more)

AttributeTypeMethodDocumentation
PkeystringaddKey Adds an key string for a sample.
PtimedoubleaddTime Adds a time sample in seconds, from the start of the program.
Pvaluefloat2addValue Adds the value for a sample.

Float2VrpnTracker

Float2 tracker reading data off a VRPN server. (more)

AttributeTypeMethodDocumentation
PconnectionStringstringaddConnectionString Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost".

FloatKeyChangeTracker

This tracker of float data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states. (more)

AttributeTypeMethodDocumentation
CfloatTrackerFloatTracker addTracker Adds a tracker to read states from.
Pmappingstring2addMapping Adds a mapping, so that a key that matches the first specified string in the specified tracker is changed to the second specified string before being returned by get().
PretainMappedboolsetRetainMapped Sets if the old key should also be retained when mapped.

FloatTimeSampleTracker

This tracker of float data reports states as specified in the samples of the node. (more)

AttributeTypeMethodDocumentation
PkeystringaddKey Adds an key string for a sample.
PtimedoubleaddTime Adds a time sample in seconds, from the start of the program.
PvaluefloataddValue Adds the value for a sample.

FloatVrpnTracker

Float tracker reading data off a VRPN server. (more)

AttributeTypeMethodDocumentation
PconnectionStringstringaddConnectionString Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost".

OffsetPoseTracker

Provides the pose as an offset from another pose tracker. (more)

AttributeTypeMethodDocumentation
PoffsetMatrixMatrix4fsetOffsetMatrix Sets the orientation and position offset by extracting these data from an offset matrix.
PorientationOffsetQuaternionfsetOrientationOffset Sets the orientation offset, in local tracker coordinates, to add to the pose data.
CposeTrackerPoseTracker setPoseTracker Sets the PoseTracker to register data from.
PpositionOffsetVector3fsetPositionOffset Sets the position offset, in local tracker coordinates, to add to the pose data.

OpenCvVideoCapture

The OpenCvVideoCapture uses OpenCVs VideoCapture to read off video image data. (more)

AttributeTypeMethodDocumentation
PbackendstringsetBackend Specifies backend to use for reading camera or video stream.
PcameraFourCCstringsetCameraFourCC Specifies the FourCC for the camera stream.
PcameraFramerateintsetCameraFramerate Sets the framerate to request from the camera.
PcameraHeightintsetCameraHeight Sets the height of the resolution to request from the camera.
PcameraIdintsetCameraId Sets the camera id to capture data from.
PcameraWidthintsetCameraWidth Sets the width of the resolution to request from the camera.
PvideoFilefilesystem::pathsetVideoFile Sets the video file to read from.

PoseKeyChangeTracker

This tracker of gmCore::Pose data reports states from one or more other trackers of the same type, optionally also changing the key of one or more states. (more)

AttributeTypeMethodDocumentation
Pmappingstring2addMapping Adds a mapping, so that a key that matches the first specified string in the specified tracker is changed to the second specified string before being returned by get().
CposeTrackerPoseTracker addTracker Adds a tracker to read states from.
PretainMappedboolsetRetainMapped Sets if the old key should also be retained when mapped.

PoseSampleCollector

The PoseSampleCollector is a utility for sampling tracker data. (more)

AttributeTypeMethodDocumentation
PorientationWarningThresholdfloat::setOrientationWarningThreshold
PsamplesPerSecondfloat::setSamplesPerSecond
PtrackerOrientationQuaternionf::addTrackerOrientation
PtrackerPositionVector3f::addTrackerPosition
CtrackerSetTrackerSet ::setTrackerSet
PwarningThresholdfloat::setWarningThreshold

PoseTimeSampleTracker

This tracker of gmCore::Pose data reports states as specified in the samples of the node. (more)

AttributeTypeMethodDocumentation
PkeystringaddKey Adds an key string for a sample.
PtimedoubleaddTime Adds a time sample in seconds, from the start of the program.
PvaluePoseaddValue Adds the value for a sample.

PoseVrpnTracker

Pose tracker reading data off a VRPN server. (more)

AttributeTypeMethodDocumentation
PconnectionStringstringaddConnectionString Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost".

RegisteredPoseTracker

Provides the pose from another single pose tracker in a registered coordinate system. (more)

AttributeTypeMethodDocumentation
PbiasMatrixMatrix4fsetBiasMatrix Sets a bias to the registration.
PkeystringaddKey Adds a specific key to register.
PorientationBiasQuaternionfsetOrientationBias Sets an orientation bias to the registration.
CposeTrackerPoseTracker setPoseTracker Sets the PoseTracker to register data from.
PpositionBiasVector3fsetPositionBias Sets a position bias to the registration.
PregistrationMatrixMatrix4fsetRegistrationMatrix Sets the matrix that describes the transform from the tracker space to the registered space.

RelativePoseTracker

This decorator will change the origin of a selected set or all of the poses of a specified tracker. (more)

AttributeTypeMethodDocumentation
PoriginKeystringsetOriginKey Sets the key of the pose to use as origin for the relative pose states.
CoriginTrackerPoseTracker addOriginTracker Adds a tracker to be used to read off the origin pose.
CposeTrackerPoseTracker addPoseTracker Adds a tracker to be transformed into another origin.
PrelativeKeystringaddRelativeKey Adds a pose to transform into an origin's space.

TrackerRegistrationEstimator (extends PoseSampleCollector)

The TrackerRegistrationEstimator is a utility for estimating the base of a tracking system's coordinates, i e registration of the tracking system into room or display system coordinates. (more)

AttributeTypeMethodDocumentation
PactualPositionVector3faddActualPosition Adds a known calibration point, in room coordinates.

TrackerSet

A TrackerSet is a combination of one or more trackers. (more)

AttributeTypeMethodDocumentation
CbinaryTrackerBinaryTracker addBinaryTracker Adds a binary (bool) tracker associated with this TrackerSet.
Cfloat2TrackerFloat2Tracker addFloat2Tracker Adds a float2 tracker associated with this TrackerSet.
CfloatTrackerFloatTracker addFloatTracker Adds a float tracker associated with this TrackerSet.
CposeTrackerPoseTracker addPoseTracker Adds a pose tracker associated with this TrackerSet.

VrpnServer

This class sets up a VRPN server that post data from BinaryTracker, FloatTracker, Float2Tracker, and PoseTracker instances. (more)

AttributeTypeMethodDocumentation
CbinaryTrackerBinaryTracker addBinaryTracker Add a BinaryTracker to serve from this VRPN server.
Cfloat2TrackerFloat2Tracker addFloat2Tracker Add a Float2Tracker to serve from this VRPN server.
CfloatTrackerFloatTracker addFloatTracker Add a FloatTracker to serve from this VRPN server.
PportintsetPort Sets the port to bind the VRPN server to.
CposeTrackerPoseTracker addPoseTracker Add a PoseTracker to serve from this VRPN server.