|
gramods
|
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.
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | arucoBoard | ArucoBoard | addArucoBoard | Add an Aruco board to the complex. |
| P | orientation | Quaternionf | addOrientation | Add a board orientation. |
| P | position | Vector3f | addPosition | Add a board position of the complex, in xml as (x y z). |
The Aruco grid board creates a flat grid of fiducial markers. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | columns | size_t | setColumns | Set the number of columns of markers to track. |
| P | dictionary | string | setDictionary | Set dictionary to pull marker definition from. |
| P | firstId | size_t | setFirstId | Set the first id to use from the dictionary when defining the markers. |
| P | markerSeparation | float | setMarkerSeparation | Set the distance between the markers, typically in meters. |
| P | markerSize | float | setMarkerSize | Set the size of the markers, typically in meters. |
| P | orientation | Quaternionf | setOrientation | Set the orientation of the board grid. |
| P | position | Vector3f | setPosition | Set the position of the board grid relative to the origin of the board. |
| P | rows | size_t | setRows | Set the number of columns of markers to track. |
Pose tracker that tracks pose using fiducial markers. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | arucoBoard | ArucoBoard | addArucoBoard | Add an ArucoBoard to track. |
| P | cameraConfigurationFile | filesystem::path | setCameraConfigurationFile | Sets the (cv::FileStorage) file to read camera parameters from. |
| P | key | string | setKey | Set the key to use for the data produced by this tracker. |
| P | refindMarkers | bool | setRefindMarkers | Set to true if markers that were not found should be detected based on the information from found markers. |
| P | showDebug | bool | setShowDebug | Set to true to activate debug graphics. |
| P | trackCamera | bool | setTrackCamera | If set to true the pose tracker will estimate the camera pose relative the markers. |
| C | videoSource | OpenCvVideoCapture | setVideoSource | Set the video source to read images from. |
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | binaryTracker | BinaryTracker | addTracker | Adds a tracker to read states from. |
| P | mapping | string2 | addMapping | 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(). |
| P | retainMapped | bool | setRetainMapped | Sets if the old key should also be retained when mapped. |
This tracker of binary (bool) data reports states as specified in the samples of the node. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | key | string | addKey | Adds an key string for a sample. |
| P | time | double | addTime | Adds a time sample in seconds, from the start of the program. |
| P | value | bool | addValue | Adds the value for a sample. |
Binary tracker reading data off a VRPN server. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | connectionString | string | addConnectionString | Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost". |
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | float2Tracker | Float2Tracker | addTracker | Adds a tracker to read states from. |
| P | mapping | string2 | addMapping | 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(). |
| P | retainMapped | bool | setRetainMapped | Sets if the old key should also be retained when mapped. |
This tracker of gmCore::float2 (std::array<float, 2>) data reports states as specified in the samples of the node. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | key | string | addKey | Adds an key string for a sample. |
| P | time | double | addTime | Adds a time sample in seconds, from the start of the program. |
| P | value | float2 | addValue | Adds the value for a sample. |
Float2 tracker reading data off a VRPN server. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | connectionString | string | addConnectionString | Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost". |
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | floatTracker | FloatTracker | addTracker | Adds a tracker to read states from. |
| P | mapping | string2 | addMapping | 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(). |
| P | retainMapped | bool | setRetainMapped | Sets if the old key should also be retained when mapped. |
This tracker of float data reports states as specified in the samples of the node. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | key | string | addKey | Adds an key string for a sample. |
| P | time | double | addTime | Adds a time sample in seconds, from the start of the program. |
| P | value | float | addValue | Adds the value for a sample. |
Float tracker reading data off a VRPN server. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | connectionString | string | addConnectionString | Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost". |
Provides the pose as an offset from another pose tracker. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | offsetMatrix | Matrix4f | setOffsetMatrix | Sets the orientation and position offset by extracting these data from an offset matrix. |
| P | orientationOffset | Quaternionf | setOrientationOffset | Sets the orientation offset, in local tracker coordinates, to add to the pose data. |
| C | poseTracker | PoseTracker | setPoseTracker | Sets the PoseTracker to register data from. |
| P | positionOffset | Vector3f | setPositionOffset | Sets the position offset, in local tracker coordinates, to add to the pose data. |
The OpenCvVideoCapture uses OpenCVs VideoCapture to read off video image data. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | backend | string | setBackend | Specifies backend to use for reading camera or video stream. |
| P | cameraFourCC | string | setCameraFourCC | Specifies the FourCC for the camera stream. |
| P | cameraFramerate | int | setCameraFramerate | Sets the framerate to request from the camera. |
| P | cameraHeight | int | setCameraHeight | Sets the height of the resolution to request from the camera. |
| P | cameraId | int | setCameraId | Sets the camera id to capture data from. |
| P | cameraWidth | int | setCameraWidth | Sets the width of the resolution to request from the camera. |
| P | videoFile | filesystem::path | setVideoFile | Sets the video file to read from. |
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | mapping | string2 | addMapping | 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(). |
| C | poseTracker | PoseTracker | addTracker | Adds a tracker to read states from. |
| P | retainMapped | bool | setRetainMapped | Sets if the old key should also be retained when mapped. |
The PoseSampleCollector is a utility for sampling tracker data. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | orientationWarningThreshold | float | ::setOrientationWarningThreshold | |
| P | samplesPerSecond | float | ::setSamplesPerSecond | |
| P | trackerOrientation | Quaternionf | ::addTrackerOrientation | |
| P | trackerPosition | Vector3f | ::addTrackerPosition | |
| C | trackerSet | TrackerSet | ::setTrackerSet | |
| P | warningThreshold | float | ::setWarningThreshold |
This tracker of gmCore::Pose data reports states as specified in the samples of the node. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | key | string | addKey | Adds an key string for a sample. |
| P | time | double | addTime | Adds a time sample in seconds, from the start of the program. |
| P | value | Pose | addValue | Adds the value for a sample. |
Pose tracker reading data off a VRPN server. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | connectionString | string | addConnectionString | Adds an address to a pose tracker at a VRPN server, such as "tracker@localhost". |
Provides the pose from another single pose tracker in a registered coordinate system. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | biasMatrix | Matrix4f | setBiasMatrix | Sets a bias to the registration. |
| P | key | string | addKey | Adds a specific key to register. |
| P | orientationBias | Quaternionf | setOrientationBias | Sets an orientation bias to the registration. |
| C | poseTracker | PoseTracker | setPoseTracker | Sets the PoseTracker to register data from. |
| P | positionBias | Vector3f | setPositionBias | Sets a position bias to the registration. |
| P | registrationMatrix | Matrix4f | setRegistrationMatrix | Sets the matrix that describes the transform from the tracker space to the registered space. |
This decorator will change the origin of a selected set or all of the poses of a specified tracker. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | originKey | string | setOriginKey | Sets the key of the pose to use as origin for the relative pose states. |
| C | originTracker | PoseTracker | addOriginTracker | Adds a tracker to be used to read off the origin pose. |
| C | poseTracker | PoseTracker | addPoseTracker | Adds a tracker to be transformed into another origin. |
| P | relativeKey | string | addRelativeKey | Adds a pose to transform into an origin's space. |
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)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| P | actualPosition | Vector3f | addActualPosition | Adds a known calibration point, in room coordinates. |
A TrackerSet is a combination of one or more trackers. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | binaryTracker | BinaryTracker | addBinaryTracker | Adds a binary (bool) tracker associated with this TrackerSet. |
| C | float2Tracker | Float2Tracker | addFloat2Tracker | Adds a float2 tracker associated with this TrackerSet. |
| C | floatTracker | FloatTracker | addFloatTracker | Adds a float tracker associated with this TrackerSet. |
| C | poseTracker | PoseTracker | addPoseTracker | Adds a pose tracker associated with this TrackerSet. |
This class sets up a VRPN server that post data from BinaryTracker, FloatTracker, Float2Tracker, and PoseTracker instances. (more)
| Attribute | Type | Method | Documentation | |
|---|---|---|---|---|
| C | binaryTracker | BinaryTracker | addBinaryTracker | Add a BinaryTracker to serve from this VRPN server. |
| C | float2Tracker | Float2Tracker | addFloat2Tracker | Add a Float2Tracker to serve from this VRPN server. |
| C | floatTracker | FloatTracker | addFloatTracker | Add a FloatTracker to serve from this VRPN server. |
| P | port | int | setPort | Sets the port to bind the VRPN server to. |
| C | poseTracker | PoseTracker | addPoseTracker | Add a PoseTracker to serve from this VRPN server. |