Skip to content

Commit aa82edb

Browse files
author
Robert Freiholtz
committed
Initial documentation - dev status
1 parent bfbf009 commit aa82edb

39 files changed

+7616
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
**/*.pyc
2+
documentation/site
158 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:root {
2+
--md-primary-fg-color: #DA291C;
3+
--md-accent-fg-color: #F6BE00;
4+
}
5+
6+
[data-md-color-scheme="default"] {
7+
@extend :root;
8+
--md-accent-fg-color: #004c97;
9+
--md-typeset-a-color: #DA291C;
10+
--md-code-bg-color: #e1e1e1;
11+
}
12+
13+
[data-md-color-scheme="slate"] {
14+
@extend :root;
15+
--md-default-bg-color: #1E1E1E;
16+
--md-typeset-a-color: #DA291C;
17+
--md-code-bg-color: #323232;
18+
}
19+
20+
.md-typeset h1
21+
{
22+
color: #DA291C;
23+
font-weight: bold;
24+
}
25+
.md-typeset h2 {
26+
color: #DA291C;
27+
}

documentation/docs/index.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# QTM Common API
2+
3+
The Common API (Application Programming Interface) provides scripting support
4+
for QTM (Qualisys Track Manager). Scripting is supported through both
5+
[Python](https://www.python.org/) and [Lua](https://www.lua.org/).
6+
Additionally, the Common API is also exposed through a REST API.
7+
8+
The API's functionality (that is, what QTM functionality can be accessed) is
9+
exposed through a number of modules. This documentation provides a language
10+
agnostic description of the modules. For more details, see the [list of
11+
modules](modules.md). Below follows some short examples:
12+
13+
=== "Python"
14+
``` py
15+
from qtm.data.series import _3d
16+
from qtm.data.object import trajectory
17+
# Get the data series identifier of a trajectory with the label "F_HeadFront".
18+
id = trajectory.find_trajectory("F_HeadFront")
19+
# Get the first sample of this trajectory.
20+
_3d.get_sample(id, 0)
21+
{'position': [-1193.8392806851402, 1428.9096641692772, 1677.330950395389], 'residual': 1.933161315987386}
22+
```
23+
24+
=== "Lua"
25+
``` lua
26+
-- Get the data series identifier of a trajectory with the label "F_HeadFront".
27+
id = qtm.data.object.trajectory.find_trajectory("F_HeadFront")
28+
-- Get the first sample of this trajectory.
29+
qtm.data.series._3d.get_sample(id, 0)
30+
{position = {-1193.8392806851, 1428.9096641693, 1677.3309503954}, residual = 1.9331613159874}
31+
```
32+
33+
=== "REST"
34+
``` js
35+
curl --json '["F_HeadFront"]' http://localhost:7979/api/common/qtm/data/object/trajectory/find_trajectory
36+
2985
37+
curl --json '[2985, 0]' http://localhost:7979/api/common/qtm/data/series/_3d/get_sample
38+
{"position":[-1193.8392806851402,1428.9096641692772,1677.330950395389],"residual":1.9331613159873859}
39+
```

documentation/docs/modules.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Modules
2+
3+
* [qtm](qtm.md) - Interface to the qtm application.
4+
* [qtm.data.object.event](qtm.data.object.event.md) - Access and modify events.
5+
* [qtm.data.object.trajectory](qtm.data.object.trajectory.md) - Access and modify trajectories.
6+
* [qtm.data.series._2d](qtm.data.series._2d.md) - Access and modify 2d data series.
7+
* [qtm.data.series._3d](qtm.data.series._3d.md) - Access and modify 3d data series.
8+
* [qtm.data.series._6d](qtm.data.series._6d.md) - Access and modify 6dof data series.
9+
* [qtm.data.series.analog](qtm.data.series.analog.md) - Access and modify analog data series.
10+
* [qtm.data.series.force](qtm.data.series.force.md) - Access and modify force data series.
11+
* [qtm.data.series.gaze](qtm.data.series.gaze.md) - Access and modify gaze data series.
12+
* [qtm.data.series.skeleton](qtm.data.series.skeleton.md) - Access and modify skeleton data series.
13+
* [qtm.data.series.time.irig](qtm.data.series.time.irig.md) - Access and modify irig (inter-range instrumentation group) data series.
14+
* [qtm.data.series.time.ptp](qtm.data.series.time.ptp.md) - Access and modify ptp (precision time protocol) data series.
15+
* [qtm.data.series.time.smpte](qtm.data.series.time.smpte.md) - Access and modify smpte (society of motion picture and television engineers) data series.
16+
* [qtm.gui](qtm.gui.md) - Control and customize the graphical user interface.
17+
* [qtm.gui._3d](qtm.gui._3d.md) - Interface to the measurement 3d view with methods for custom drawing.
18+
* [qtm.gui.message](qtm.gui.message.md) - Interface to the messages window.
19+
* [qtm.gui.selection](qtm.gui.selection.md) - Access and modify the current selection.
20+
* [qtm.gui.terminal](qtm.gui.terminal.md) - Interface to the terminal window.
21+
* [qtm.gui.timeline](qtm.gui.timeline.md) - Interface to the measurement timeline.
22+
* [qtm.settings.camera](qtm.settings.camera.md) - Access and modify camera settings.
23+
* [qtm.settings.directory](qtm.settings.directory.md) - Access and modify directory settings.
24+
* [qtm.settings.euler](qtm.settings.euler.md) - Access and modify euler angle settings.
25+
* [qtm.settings.export.c3d](qtm.settings.export.c3d.md) - Access and modify c3d export settings.
26+
* [qtm.settings.export.fbx](qtm.settings.export.fbx.md) - Access and modify fbx export settings.
27+
* [qtm.settings.export.mat](qtm.settings.export.mat.md) - Access and modify mat export settings.
28+
* [qtm.settings.export.tsv](qtm.settings.export.tsv.md) - Access and modify tsv export settings.
29+
* [qtm.settings.processing._2d](qtm.settings.processing._2d.md) - Access and modify 2d processing settings.
30+
* [qtm.settings.processing._3d](qtm.settings.processing._3d.md) - Access and modify 3d processing settings.
31+
* [qtm.settings.processing._6d](qtm.settings.processing._6d.md) - Access and modify 6dof processing settings.
32+
* [qtm.utilities.color](qtm.utilities.color.md) - Utilities for converting various color models to a qtm compatible format.
33+
* [qtm.utilities.documentation](qtm.utilities.documentation.md) - Various documentation utilities.
34+
* [qtm.utilities.math](qtm.utilities.math.md) - Various math utilities.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# qtm.data.object.event
2+
3+
Access and modify events.
4+
5+
Events consist of a label, a time (in seconds) and an optional color (in 0xbbggrr format, see 'qtm.utilities.color' module). If the latter is null, red (0x0000ff) will be used.
6+
7+
## add_event
8+
9+
Add an event.
10+
11+
**Parameters**
12+
13+
`event` `{"label": string, "time": float, "color": integer?}`<br/>
14+
The event to add.
15+
16+
17+
18+
19+
---
20+
## get_event_count
21+
22+
Get the total number of events.
23+
24+
**Returns**
25+
26+
`integer`
27+
28+
29+
---
30+
## get_events
31+
32+
Get all events.
33+
34+
**Returns**
35+
36+
`[{"label": string, "time": float, "color": integer?}]`
37+
38+
39+
---
40+
## clear_events
41+
42+
Remove all events.
43+
44+
45+
46+
---
47+
## help
48+
49+
Get the documentation for a module or method.
50+
51+
**Parameters**
52+
53+
`method` `string?`<br/>
54+
The name of the method (if null, the documentation for the module will be returned instead).
55+
56+
57+
**Returns**
58+
59+
`string`
60+
61+
62+
---

0 commit comments

Comments
 (0)