Skip to content

Commit 08a5557

Browse files
committed
add README
1 parent 89af90a commit 08a5557

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

trajectory_visualization/README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Trajectory Visualization
2+
The [viz_trajectory.py](viz_trajectory.py) script is used for visualization of poses from a textfile in the format 'ts _px py pz qx qy qz qw_' where _ts_ is the timestamp in ns and _(px py pz)_ is the translation and _(qx qy qz qw)_ is the rotation in quaternion in the **quaternion last** format.
3+
The script is used for debugging the output poses saved from the marginalization queue of Basalt. It helps to check if the source and destination frame of the poses is correct i.e. camera to world (z-axis should point forward, i.e. in the direction of motion of the camera).
4+
5+
Running the script:
6+
```
7+
usage: viz_trajectory.py [-h] trajectory_path
8+
9+
Python code for visualization of poses obtained from basalt.
10+
11+
positional arguments:
12+
trajectory_path path to .txt file containing poses from basalt
13+
14+
optional arguments:
15+
-h, --help show this help message and exit
16+
17+
E.g.
18+
python3 viz_trajectory.py ./trajectories.txt
19+
```
20+
21+
The [trajectories.txt](trajectories.txt) file has been generated to check the script. The poses are generated such that the camera moves in a cricle in a plane always facing the center. (shown below)
22+
![demo](demo.png)
23+
24+
Another demo image of the poses of the hka-outdoors-1 sequence visualized:
25+
![demo2](demo2.png)
26+
27+
---
28+
29+
[quiver3d_demo.py](quiver3d_demo.py) is just a demo script for visualizing the arrow object in a matplotib window. [[ref]](https://gist.github.com/WetHat/1d6cd0f7309535311a539b42cccca89c)

0 commit comments

Comments
 (0)