Introduce UrbanV2X sequences and add executed s_02 getting-started demos
Browse files- README.md +104 -4
- assets/s02_demo_trajectories.png +3 -0
- demos/hkstp_s_02/README.md +7 -0
- demos/hkstp_s_02/configs/rtklib_demo5.conf +127 -0
- demos/hkstp_s_02/patches/fastlio_build_order.patch +12 -0
- demos/hkstp_s_02/patches/vins_noetic.patch +479 -0
- demos/hkstp_s_02/results/demo_summary.json +33 -0
- demos/hkstp_s_02/results/fastlio/run.json +8 -0
- demos/hkstp_s_02/results/fastlio/trajectory.tum +0 -0
- demos/hkstp_s_02/results/input_validation.json +7 -0
- demos/hkstp_s_02/results/provenance.json +15 -0
- demos/hkstp_s_02/results/rtklib_track.csv +380 -0
- demos/hkstp_s_02/results/vins/run.json +8 -0
- demos/hkstp_s_02/results/vins/trajectory.tum +0 -0
- demos/hkstp_s_02/scripts/build_ros.sh +42 -0
- demos/hkstp_s_02/scripts/configure.py +82 -0
- demos/hkstp_s_02/scripts/make_rosbag.py +55 -0
- demos/hkstp_s_02/scripts/record_odometry.py +15 -0
- demos/hkstp_s_02/scripts/run_ros_demo.py +57 -0
- demos/hkstp_s_02/scripts/run_rtk.sh +19 -0
- demos/hkstp_s_02/scripts/summarize.py +56 -0
- docs/GETTING_STARTED.md +121 -0
README.md
CHANGED
|
@@ -14,12 +14,112 @@ configs:
|
|
| 14 |
|
| 15 |
# UrbanV2X
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
This
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
The data are released under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
| 24 |
|
| 25 |
-
Third-party data remain subject to their original providers
|
|
|
|
| 14 |
|
| 15 |
# UrbanV2X
|
| 16 |
|
| 17 |
+
**Vehicle–infrastructure sensing for urban navigation and perception.**
|
| 18 |
|
| 19 |
+
UrbanV2X combines surround cameras, onboard and roadside LiDAR, inertial measurements, GNSS observations, UWB ranging, and reference trajectories. It provides complementary views of real urban roads for studying localization, mapping, sensor fusion, and cooperative perception.
|
| 20 |
|
| 21 |
+
This Hugging Face release contains three sequences recorded at **Hong Kong Science Park (HKSTP)**. The wider UrbanV2X project also covers East Kowloon; the table below describes the sequences available in this repository.
|
| 22 |
+
|
| 23 |
+
[Project website](https://polyu-taslab.github.io/UrbanV2X/) · [Interactive viewer](https://huggingface.co/spaces/polyutaslab/UrbanV2X-Viewer) · [Getting Started](docs/GETTING_STARTED.md) · [Browse files](https://huggingface.co/datasets/polyutaslab/UrbanV2X/tree/main)
|
| 24 |
+
|
| 25 |
+
[](https://huggingface.co/spaces/polyutaslab/UrbanV2X-Viewer)
|
| 26 |
+
|
| 27 |
+
## Dataset overview
|
| 28 |
+
|
| 29 |
+
Data are organized by sequence and sensor, so a workflow can download only the streams it needs. Camera images and onboard point clouds are released as individual frames; roadside point clouds preserve their native fields in PCD files. Calibration and navigation measurements accompany the sensor recordings.
|
| 30 |
+
|
| 31 |
+
| Sequence | Route | Released interval | Onboard LiDAR | Roadside LiDAR | Additional streams |
|
| 32 |
+
|---|---|---:|---|---|---|
|
| 33 |
+
| [hkstp_s_01](https://huggingface.co/datasets/polyutaslab/UrbanV2X/tree/main/hkstp_s_01) | Small loop | ≈310 s | HDL-32E, XT32 | `rsi2` | Radar, fisheye, IMU, GNSS, UWB, reference |
|
| 34 |
+
| [hkstp_l_01](https://huggingface.co/datasets/polyutaslab/UrbanV2X/tree/main/hkstp_l_01) | Long loop | ≈601 s | HDL-32E, XT32 | `rsi2` | Radar, fisheye, IMU, GNSS, UWB, reference |
|
| 35 |
+
| [hkstp_s_02](https://huggingface.co/datasets/polyutaslab/UrbanV2X/tree/main/hkstp_s_02) | Small loop | 379 s | HDL-32E, XT32, AT128P | `rsi2_a`, `rsi2_b` | Fisheye, IMU, GNSS, UWB, V2X records, reference |
|
| 36 |
+
|
| 37 |
+
All three sequences include seven surround-camera streams (`cam0`–`cam6`) and calibration files. Durations refer to the released recording windows, rather than the duration of the original collection session. Sensor coverage varies by sequence; for example, radar is present in `s_01` and `l_01`, while AT128P and `v2x.csv` are present in `s_02`.
|
| 38 |
+
|
| 39 |
+
### Start with hkstp_s_02
|
| 40 |
+
|
| 41 |
+
The Getting Started examples use this sequence, recorded on **13 August 2026, 08:05:04–08:11:23 UTC** (16:05:04–16:11:23 Hong Kong time).
|
| 42 |
+
|
| 43 |
+
| Stream | Published content |
|
| 44 |
+
|---|---|
|
| 45 |
+
| Surround cameras | 3,790 images per camera; 7 cameras; RGB PNG, 2200 × 1740 |
|
| 46 |
+
| Upward fisheye | 3,792 images, 2448 × 2048 |
|
| 47 |
+
| HDL-32E / XT32 / AT128P | 3,787 / 3,790 / 3,788 point-cloud frames |
|
| 48 |
+
| Roadside LiDAR | 3,790 PCD frames per sensor, 7,580 total, cropped to the sequence interval |
|
| 49 |
+
| IMU | 151,601 samples |
|
| 50 |
+
| UWB | 24,624 range measurements |
|
| 51 |
+
| V2X | 788 receive records; RSSI was not recorded |
|
| 52 |
+
| Reference trajectory | 37,900 epochs at 100 Hz, retained in the original reference-point convention |
|
| 53 |
+
| Calibration | 7 camera-intrinsic YAML files and 38 extrinsic YAML files |
|
| 54 |
+
|
| 55 |
+
## Sensor data organization
|
| 56 |
+
|
| 57 |
+
The following shows `hkstp_s_02`. Other sequences use the same sensor-oriented layout, with different available sensors and some sequence-specific GNSS and calibration filenames.
|
| 58 |
+
|
| 59 |
+
```text
|
| 60 |
+
hkstp_s_02/
|
| 61 |
+
├── camera/
|
| 62 |
+
│ ├── cam0/ ... cam6/ # <timestamp>.png
|
| 63 |
+
│ └── fisheye/
|
| 64 |
+
├── lidar/
|
| 65 |
+
│ ├── hdl32/ # <timestamp>.bin
|
| 66 |
+
│ ├── xt32/
|
| 67 |
+
│ └── at128p/
|
| 68 |
+
├── roadside/
|
| 69 |
+
│ ├── rsi2_a/lidar/ # <timestamp>.pcd
|
| 70 |
+
│ ├── rsi2_b/lidar/
|
| 71 |
+
│ ├── gnss/ # Matching roadside RINEX observations
|
| 72 |
+
│ └── README.md
|
| 73 |
+
├── calib/
|
| 74 |
+
│ ├── Intrinsics/
|
| 75 |
+
│ ├── Extrinsics/
|
| 76 |
+
│ └── README.md
|
| 77 |
+
├── gnss/
|
| 78 |
+
│ ├── f9p/ # Rover observations and broadcast navigation
|
| 79 |
+
│ └── hkst/README.md # Official base-station download instructions
|
| 80 |
+
├── imu.csv
|
| 81 |
+
├── uwb.csv
|
| 82 |
+
├── v2x.csv
|
| 83 |
+
└── reference_original.csv
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Cameras and point clouds
|
| 87 |
+
|
| 88 |
+
For `s_02`, the seven surround-camera filenames use the cam2-master UTC timestamp in integer microseconds. Matching filenames identify a camera set; this naming convention does not imply identical original sensor exposure timestamps. Images retain their recorded geometry and are not pre-undistorted.
|
| 89 |
+
|
| 90 |
+
Onboard `.bin` files store little-endian float32 rows with six values: **`x, y, z, intensity, channel, dt`**. XYZ coordinates are in metres in the sensor frame; `dt` is the point-time offset in seconds relative to the file timestamp. The filename is the scan's first-point UTC time in integer microseconds.
|
| 91 |
+
|
| 92 |
+
Roadside `.pcd` files use **bag-record UTC microseconds** for their filenames. Native point timestamps, return flags, scan identifiers, and other fields are preserved; inspect each PCD header for field names and types. Native roadside point timestamps must not be treated as UTC without an established clock conversion. See the [roadside format notes](hkstp_s_02/roadside/README.md).
|
| 93 |
+
|
| 94 |
+
### Navigation, reference and calibration
|
| 95 |
+
|
| 96 |
+
IMU and UWB measurements are supplied as CSV tables. GNSS observations use RINEX; its internal time system is declared in each header. The `s_02` reference CSV retains geographic coordinates, ENU coordinates, velocity, Euler angles, and quality information. It is not automatically an IMU-centre or camera-centre ground-truth pose; account for reference-point and frame conventions before evaluating a trajectory.
|
| 97 |
+
|
| 98 |
+
Calibration files specify the source and target frames. In the `s_02` bundle, `<source>_to_<target>.yaml` maps source-frame coordinates into the target frame. Use the `aug13` timing parameters for `s_02`; see the [calibration guide](hkstp_s_02/calib/README.md) for matrix conventions and units.
|
| 99 |
+
|
| 100 |
+
## Getting started
|
| 101 |
+
|
| 102 |
+
Use [the short guide](docs/GETTING_STARTED.md) to download `s_02` inputs and run the GNSS, visual–inertial, and LiDAR–inertial examples. Each example uses only its required modalities. Camera PNG, point-cloud BIN/PCD, CSV, and RINEX files can also be read directly without ROS; the VINS and FAST-LIO examples supply a ROS1 input adapter.
|
| 103 |
+
|
| 104 |
+

|
| 105 |
+
|
| 106 |
+
These are executed examples using the new sequence. See [run results and alignment conventions](docs/GETTING_STARTED.md#executed-example-results) before interpreting the trajectories.
|
| 107 |
+
|
| 108 |
+
## Research uses
|
| 109 |
+
|
| 110 |
+
- Visual–inertial and LiDAR–inertial odometry and mapping.
|
| 111 |
+
- GNSS positioning and multi-sensor navigation.
|
| 112 |
+
- Vehicle–infrastructure perception and point-cloud alignment.
|
| 113 |
+
- Multi-view reconstruction and sensor-fusion experiments.
|
| 114 |
+
|
| 115 |
+
The folders identify recording sequences, not predefined training or test splits. Choose and report your own evaluation partition. Availability of data or calibration does not by itself establish an algorithm's accuracy; report initialization, time alignment, coordinate conventions, and any preprocessing with your results.
|
| 116 |
+
|
| 117 |
+
## Project and contact
|
| 118 |
+
|
| 119 |
+
UrbanV2X is a research release from **TAS Lab, The Hong Kong Polytechnic University**. Visit the [project website](https://polyu-taslab.github.io/UrbanV2X/) for sensor descriptions, collection-site context, and related resources. Questions about this release can be raised in the [dataset discussions](https://huggingface.co/datasets/polyutaslab/UrbanV2X/discussions).
|
| 120 |
+
|
| 121 |
+
## License
|
| 122 |
|
| 123 |
The data are released under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/).
|
| 124 |
|
| 125 |
+
Third-party data and software remain subject to their original providers' terms. HKST base-station RINEX is not redistributed here; obtain it from the official provider using the [download and usage notice](hkstp_s_02/gnss/hkst/README.md).
|
assets/s02_demo_trajectories.png
ADDED
|
Git LFS Details
|
demos/hkstp_s_02/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# hkstp_s_02 examples
|
| 2 |
+
|
| 3 |
+
See the [Getting Started guide](../../docs/GETTING_STARTED.md) for input downloads, RTKLIB demo5, VINS-Fusion and FAST-LIO2 commands.
|
| 4 |
+
|
| 5 |
+
Run scripts from this directory after linking the downloaded sequence as `data`. The ROS examples create local input bags; generated bags and third-party HKST observations are not distributed in this demo folder.
|
| 6 |
+
|
| 7 |
+
Upstream algorithms and dependencies retain their own licenses. The patches are compatibility changes to the corresponding upstream projects and retain those projects' license terms.
|
demos/hkstp_s_02/configs/rtklib_demo5.conf
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# rtkpost options (2023/07/29 20:37:05, v.demo5 b34h)
|
| 2 |
+
|
| 3 |
+
pos1-posmode =kinematic # (0:single,1:dgps,2:kinematic,3:static,4:static-start,5:movingbase,6:fixed,7:ppp-kine,8:ppp-static,9:ppp-fixed)
|
| 4 |
+
pos1-frequency =l1+l2 # (1:l1,2:l1+l2,3:l1+l2+l5,4:l1+l2+l5+l6)
|
| 5 |
+
pos1-soltype =combined
|
| 6 |
+
pos1-elmask =15 # (deg)
|
| 7 |
+
pos1-snrmask_r =off # (0:off,1:on)
|
| 8 |
+
pos1-snrmask_b =off # (0:off,1:on)
|
| 9 |
+
pos1-snrmask_L1 =35,35,35,35,35,35,35,35,35
|
| 10 |
+
pos1-snrmask_L2 =35,35,35,35,35,35,35,35,35
|
| 11 |
+
pos1-snrmask_L5 =35,35,35,35,35,35,35,35,35
|
| 12 |
+
pos1-dynamics =on # (0:off,1:on)
|
| 13 |
+
pos1-tidecorr =off # (0:off,1:on,2:otl)
|
| 14 |
+
pos1-ionoopt =brdc # (0:off,1:brdc,2:sbas,3:dual-freq,4:est-stec,5:ionex-tec,6:qzs-brdc)
|
| 15 |
+
pos1-tropopt =saas # (0:off,1:saas,2:sbas,3:est-ztd,4:est-ztdgrad)
|
| 16 |
+
pos1-sateph =brdc # (0:brdc,1:precise,2:brdc+sbas,3:brdc+ssrapc,4:brdc+ssrcom)
|
| 17 |
+
pos1-posopt1 =off # (0:off,1:on)
|
| 18 |
+
pos1-posopt2 =off # (0:off,1:on)
|
| 19 |
+
pos1-posopt3 =off # (0:off,1:on,2:precise)
|
| 20 |
+
pos1-posopt4 =off # (0:off,1:on)
|
| 21 |
+
pos1-posopt5 =off # (0:off,1:on)
|
| 22 |
+
pos1-posopt6 =off # (0:off,1:on)
|
| 23 |
+
pos1-exclsats = # (prn ...)
|
| 24 |
+
pos1-navsys =61
|
| 25 |
+
pos2-armode =continuous
|
| 26 |
+
pos2-gloarmode =off
|
| 27 |
+
pos2-bdsarmode =on # (0:off,1:on)
|
| 28 |
+
pos2-arfilter =on # (0:off,1:on)
|
| 29 |
+
pos2-arthres =3
|
| 30 |
+
pos2-arthresmin =3
|
| 31 |
+
pos2-arthresmax =3
|
| 32 |
+
pos2-arthres1 =0.1
|
| 33 |
+
pos2-arthres2 =0
|
| 34 |
+
pos2-arthres3 =1e-09
|
| 35 |
+
pos2-arthres4 =1e-05
|
| 36 |
+
pos2-varholdamb =0.1 # (cyc^2)
|
| 37 |
+
pos2-gainholdamb =0.01
|
| 38 |
+
pos2-arlockcnt =5
|
| 39 |
+
pos2-minfixsats =4
|
| 40 |
+
pos2-minholdsats =5
|
| 41 |
+
pos2-mindropsats =10
|
| 42 |
+
pos2-arelmask =25 # (deg)
|
| 43 |
+
pos2-arminfix =20
|
| 44 |
+
pos2-armaxiter =1
|
| 45 |
+
pos2-elmaskhold =15 # (deg)
|
| 46 |
+
pos2-aroutcnt =20
|
| 47 |
+
pos2-maxage =2
|
| 48 |
+
pos2-syncsol =off # (0:off,1:on)
|
| 49 |
+
pos2-slipthres =0.05 # (m)
|
| 50 |
+
pos2-dopthres =0 # (m)
|
| 51 |
+
pos2-rejionno =2 # (m)
|
| 52 |
+
pos2-rejcode =10 # (m)
|
| 53 |
+
pos2-niter =1
|
| 54 |
+
pos2-baselen =0 # (m)
|
| 55 |
+
pos2-basesig =0 # (m)
|
| 56 |
+
out-solformat =llh # (0:llh,1:xyz,2:enu,3:nmea)
|
| 57 |
+
out-outhead =on # (0:off,1:on)
|
| 58 |
+
out-outopt =on # (0:off,1:on)
|
| 59 |
+
out-outvel =off # (0:off,1:on)
|
| 60 |
+
out-timesys =utc
|
| 61 |
+
out-timeform =hms # (0:tow,1:hms)
|
| 62 |
+
out-timendec =3
|
| 63 |
+
out-degform =deg # (0:deg,1:dms)
|
| 64 |
+
out-fieldsep =
|
| 65 |
+
out-outsingle =on
|
| 66 |
+
out-maxsolstd =0 # (m)
|
| 67 |
+
out-height =ellipsoidal # (0:ellipsoidal,1:geodetic)
|
| 68 |
+
out-geoid =internal # (0:internal,1:egm96,2:egm08_2.5,3:egm08_1,4:gsi2000)
|
| 69 |
+
out-solstatic =all # (0:all,1:single)
|
| 70 |
+
out-nmeaintv1 =0 # (s)
|
| 71 |
+
out-nmeaintv2 =0 # (s)
|
| 72 |
+
out-outstat =residual
|
| 73 |
+
stats-eratio1 =300
|
| 74 |
+
stats-eratio2 =300
|
| 75 |
+
stats-eratio5 =300
|
| 76 |
+
stats-errphase =0.005 # (m)
|
| 77 |
+
stats-errphaseel =0.005 # (m)
|
| 78 |
+
stats-errphasebl =0 # (m/10km)
|
| 79 |
+
stats-errdoppler =1 # (Hz)
|
| 80 |
+
stats-snrmax =52 # (dB.Hz)
|
| 81 |
+
stats-errsnr =0 # (m)
|
| 82 |
+
stats-errrcv =0 # ( )
|
| 83 |
+
stats-stdbias =30 # (m)
|
| 84 |
+
stats-stdiono =0.03 # (m)
|
| 85 |
+
stats-stdtrop =0.3 # (m)
|
| 86 |
+
stats-prnaccelh =3 # (m/s^2)
|
| 87 |
+
stats-prnaccelv =1 # (m/s^2)
|
| 88 |
+
stats-prnbias =0.0001 # (m)
|
| 89 |
+
stats-prniono =0.001 # (m)
|
| 90 |
+
stats-prntrop =0.0001 # (m)
|
| 91 |
+
stats-prnpos =0 # (m)
|
| 92 |
+
stats-clkstab =5e-12 # (s/s)
|
| 93 |
+
ant1-postype =llh # (0:llh,1:xyz,2:single,3:posfile,4:rinexhead,5:rtcm)
|
| 94 |
+
ant1-pos1 =90 # (deg|m)
|
| 95 |
+
ant1-pos2 =0 # (deg|m)
|
| 96 |
+
ant1-pos3 =-6335367.6285 # (m|m)
|
| 97 |
+
ant1-anttype =
|
| 98 |
+
ant1-antdele =0 # (m)
|
| 99 |
+
ant1-antdeln =0 # (m)
|
| 100 |
+
ant1-antdelu =0 # (m)
|
| 101 |
+
ant2-postype =rinexhead # (0:llh,1:xyz,2:single,3:posfile,4:rinexhead,5:rtcm)
|
| 102 |
+
ant2-pos1 =0 # (deg|m)
|
| 103 |
+
ant2-pos2 =0 # (deg|m)
|
| 104 |
+
ant2-pos3 =0 # (m|m)
|
| 105 |
+
ant2-anttype =*
|
| 106 |
+
ant2-antdele =0 # (m)
|
| 107 |
+
ant2-antdeln =0 # (m)
|
| 108 |
+
ant2-antdelu =0 # (m)
|
| 109 |
+
ant2-maxaveep =1
|
| 110 |
+
ant2-initrst =on # (0:off,1:on)
|
| 111 |
+
misc-timeinterp =on # (0:off,1:on)
|
| 112 |
+
misc-sbasatsel =0 # (0:all)
|
| 113 |
+
misc-rnxopt1 =
|
| 114 |
+
misc-rnxopt2 =
|
| 115 |
+
misc-pppopt =
|
| 116 |
+
file-satantfile =
|
| 117 |
+
file-rcvantfile =third_party/RTKLIB-demo5/data/ant/igs14.atx
|
| 118 |
+
file-staposfile =
|
| 119 |
+
file-geoidfile =
|
| 120 |
+
file-ionofile =
|
| 121 |
+
file-dcbfile =
|
| 122 |
+
file-eopfile =
|
| 123 |
+
file-blqfile =
|
| 124 |
+
file-tempdir =
|
| 125 |
+
file-geexefile =
|
| 126 |
+
file-solstatfile =
|
| 127 |
+
file-tracefile =
|
demos/hkstp_s_02/patches/fastlio_build_order.patch
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
| 2 |
+
index 5f91a33..12deea3 100644
|
| 3 |
+
--- a/CMakeLists.txt
|
| 4 |
+
+++ b/CMakeLists.txt
|
| 5 |
+
@@ -86,4 +86,5 @@ catkin_package(
|
| 6 |
+
|
| 7 |
+
add_executable(fastlio_mapping src/laserMapping.cpp include/ikd-Tree/ikd_Tree.cpp src/preprocess.cpp)
|
| 8 |
+
target_link_libraries(fastlio_mapping ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${PYTHON_LIBRARIES})
|
| 9 |
+
-target_include_directories(fastlio_mapping PRIVATE ${PYTHON_INCLUDE_DIRS})
|
| 10 |
+
|
| 11 |
+
+target_include_directories(fastlio_mapping PRIVATE ${PYTHON_INCLUDE_DIRS})
|
| 12 |
+
+add_dependencies(fastlio_mapping ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
demos/hkstp_s_02/patches/vins_noetic.patch
ADDED
|
@@ -0,0 +1,479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/camera_models/CMakeLists.txt b/camera_models/CMakeLists.txt
|
| 2 |
+
index 3b61190..934a8db 100644
|
| 3 |
+
--- a/camera_models/CMakeLists.txt
|
| 4 |
+
+++ b/camera_models/CMakeLists.txt
|
| 5 |
+
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
|
| 6 |
+
project(camera_models)
|
| 7 |
+
|
| 8 |
+
set(CMAKE_BUILD_TYPE "Release")
|
| 9 |
+
-set(CMAKE_CXX_FLAGS "-std=c++11")
|
| 10 |
+
+set(CMAKE_CXX_FLAGS "-std=c++14")
|
| 11 |
+
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fPIC")
|
| 12 |
+
|
| 13 |
+
find_package(catkin REQUIRED COMPONENTS
|
| 14 |
+
diff --git a/camera_models/src/calib/CameraCalibration.cc b/camera_models/src/calib/CameraCalibration.cc
|
| 15 |
+
index 10543e9..dc06f55 100644
|
| 16 |
+
--- a/camera_models/src/calib/CameraCalibration.cc
|
| 17 |
+
+++ b/camera_models/src/calib/CameraCalibration.cc
|
| 18 |
+
@@ -1,3 +1,6 @@
|
| 19 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 20 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 21 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 22 |
+
#include "camodocal/calib/CameraCalibration.h"
|
| 23 |
+
|
| 24 |
+
#include <cstdio>
|
| 25 |
+
@@ -232,7 +235,7 @@ CameraCalibration::drawResults(std::vector<cv::Mat>& images) const
|
| 26 |
+
cv::Mat& image = images.at(i);
|
| 27 |
+
if (image.channels() == 1)
|
| 28 |
+
{
|
| 29 |
+
- cv::cvtColor(image, image, CV_GRAY2RGB);
|
| 30 |
+
+ cv::cvtColor(image, image, cv::COLOR_GRAY2RGB);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
std::vector<cv::Point2f> estImagePoints;
|
| 34 |
+
@@ -250,12 +253,12 @@ CameraCalibration::drawResults(std::vector<cv::Mat>& images) const
|
| 35 |
+
cv::circle(image,
|
| 36 |
+
cv::Point(cvRound(pObs.x * drawMultiplier),
|
| 37 |
+
cvRound(pObs.y * drawMultiplier)),
|
| 38 |
+
- 5, green, 2, CV_AA, drawShiftBits);
|
| 39 |
+
+ 5, green, 2, cv::LINE_AA, drawShiftBits);
|
| 40 |
+
|
| 41 |
+
cv::circle(image,
|
| 42 |
+
cv::Point(cvRound(pEst.x * drawMultiplier),
|
| 43 |
+
cvRound(pEst.y * drawMultiplier)),
|
| 44 |
+
- 5, red, 2, CV_AA, drawShiftBits);
|
| 45 |
+
+ 5, red, 2, cv::LINE_AA, drawShiftBits);
|
| 46 |
+
|
| 47 |
+
float error = cv::norm(pObs - pEst);
|
| 48 |
+
|
| 49 |
+
@@ -272,7 +275,7 @@ CameraCalibration::drawResults(std::vector<cv::Mat>& images) const
|
| 50 |
+
|
| 51 |
+
cv::putText(image, oss.str(), cv::Point(10, image.rows - 10),
|
| 52 |
+
cv::FONT_HERSHEY_COMPLEX, 0.5, cv::Scalar(255, 255, 255),
|
| 53 |
+
- 1, CV_AA);
|
| 54 |
+
+ 1, cv::LINE_AA);
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
diff --git a/camera_models/src/camera_models/Camera.cc b/camera_models/src/camera_models/Camera.cc
|
| 59 |
+
index 0ba8dc3..d4d11cd 100644
|
| 60 |
+
--- a/camera_models/src/camera_models/Camera.cc
|
| 61 |
+
+++ b/camera_models/src/camera_models/Camera.cc
|
| 62 |
+
@@ -1,3 +1,6 @@
|
| 63 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 64 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 65 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 66 |
+
#include "camodocal/camera_models/Camera.h"
|
| 67 |
+
#include "camodocal/camera_models/ScaramuzzaCamera.h"
|
| 68 |
+
|
| 69 |
+
diff --git a/camera_models/src/camera_models/CataCamera.cc b/camera_models/src/camera_models/CataCamera.cc
|
| 70 |
+
index 7eacaa5..2bcd647 100644
|
| 71 |
+
--- a/camera_models/src/camera_models/CataCamera.cc
|
| 72 |
+
+++ b/camera_models/src/camera_models/CataCamera.cc
|
| 73 |
+
@@ -1,3 +1,6 @@
|
| 74 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 75 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 76 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 77 |
+
#include "camodocal/camera_models/CataCamera.h"
|
| 78 |
+
|
| 79 |
+
#include <cmath>
|
| 80 |
+
diff --git a/camera_models/src/camera_models/EquidistantCamera.cc b/camera_models/src/camera_models/EquidistantCamera.cc
|
| 81 |
+
index 480f51a..250c9c8 100644
|
| 82 |
+
--- a/camera_models/src/camera_models/EquidistantCamera.cc
|
| 83 |
+
+++ b/camera_models/src/camera_models/EquidistantCamera.cc
|
| 84 |
+
@@ -1,3 +1,6 @@
|
| 85 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 86 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 87 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 88 |
+
#include "camodocal/camera_models/EquidistantCamera.h"
|
| 89 |
+
|
| 90 |
+
#include <cmath>
|
| 91 |
+
diff --git a/camera_models/src/camera_models/PinholeCamera.cc b/camera_models/src/camera_models/PinholeCamera.cc
|
| 92 |
+
index 9839724..b268d4c 100644
|
| 93 |
+
--- a/camera_models/src/camera_models/PinholeCamera.cc
|
| 94 |
+
+++ b/camera_models/src/camera_models/PinholeCamera.cc
|
| 95 |
+
@@ -1,3 +1,6 @@
|
| 96 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 97 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 98 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 99 |
+
#include "camodocal/camera_models/PinholeCamera.h"
|
| 100 |
+
|
| 101 |
+
#include <cmath>
|
| 102 |
+
diff --git a/camera_models/src/camera_models/PinholeFullCamera.cc b/camera_models/src/camera_models/PinholeFullCamera.cc
|
| 103 |
+
index 5365c06..2999c39 100644
|
| 104 |
+
--- a/camera_models/src/camera_models/PinholeFullCamera.cc
|
| 105 |
+
+++ b/camera_models/src/camera_models/PinholeFullCamera.cc
|
| 106 |
+
@@ -1,3 +1,6 @@
|
| 107 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 108 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 109 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 110 |
+
#include "camodocal/camera_models/PinholeFullCamera.h"
|
| 111 |
+
|
| 112 |
+
#include <cmath>
|
| 113 |
+
diff --git a/camera_models/src/camera_models/ScaramuzzaCamera.cc b/camera_models/src/camera_models/ScaramuzzaCamera.cc
|
| 114 |
+
index 3615594..adaecbc 100644
|
| 115 |
+
--- a/camera_models/src/camera_models/ScaramuzzaCamera.cc
|
| 116 |
+
+++ b/camera_models/src/camera_models/ScaramuzzaCamera.cc
|
| 117 |
+
@@ -1,3 +1,6 @@
|
| 118 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 119 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 120 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 121 |
+
#include "camodocal/camera_models/ScaramuzzaCamera.h"
|
| 122 |
+
|
| 123 |
+
#include <cmath>
|
| 124 |
+
diff --git a/camera_models/src/chessboard/Chessboard.cc b/camera_models/src/chessboard/Chessboard.cc
|
| 125 |
+
index 4c0a761..8ddce1d 100644
|
| 126 |
+
--- a/camera_models/src/chessboard/Chessboard.cc
|
| 127 |
+
+++ b/camera_models/src/chessboard/Chessboard.cc
|
| 128 |
+
@@ -1,3 +1,6 @@
|
| 129 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 130 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 131 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 132 |
+
#include "camodocal/chessboard/Chessboard.h"
|
| 133 |
+
|
| 134 |
+
#include <opencv2/calib3d/calib3d.hpp>
|
| 135 |
+
@@ -17,13 +20,13 @@ Chessboard::Chessboard(cv::Size boardSize, cv::Mat& image)
|
| 136 |
+
{
|
| 137 |
+
if (image.channels() == 1)
|
| 138 |
+
{
|
| 139 |
+
- cv::cvtColor(image, mSketch, CV_GRAY2BGR);
|
| 140 |
+
+ cv::cvtColor(image, mSketch, cv::COLOR_GRAY2BGR);
|
| 141 |
+
image.copyTo(mImage);
|
| 142 |
+
}
|
| 143 |
+
else
|
| 144 |
+
{
|
| 145 |
+
image.copyTo(mSketch);
|
| 146 |
+
- cv::cvtColor(image, mImage, CV_BGR2GRAY);
|
| 147 |
+
+ cv::cvtColor(image, mImage, cv::COLOR_BGR2GRAY);
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
@@ -31,10 +34,10 @@ void
|
| 152 |
+
Chessboard::findCorners(bool useOpenCV)
|
| 153 |
+
{
|
| 154 |
+
mCornersFound = findChessboardCorners(mImage, mBoardSize, mCorners,
|
| 155 |
+
- CV_CALIB_CB_ADAPTIVE_THRESH +
|
| 156 |
+
- CV_CALIB_CB_NORMALIZE_IMAGE +
|
| 157 |
+
- CV_CALIB_CB_FILTER_QUADS +
|
| 158 |
+
- CV_CALIB_CB_FAST_CHECK,
|
| 159 |
+
+ cv::CALIB_CB_ADAPTIVE_THRESH +
|
| 160 |
+
+ cv::CALIB_CB_NORMALIZE_IMAGE +
|
| 161 |
+
+ cv::CALIB_CB_FILTER_QUADS +
|
| 162 |
+
+ cv::CALIB_CB_FAST_CHECK,
|
| 163 |
+
useOpenCV);
|
| 164 |
+
|
| 165 |
+
if (mCornersFound)
|
| 166 |
+
@@ -141,24 +144,24 @@ Chessboard::findChessboardCornersImproved(const cv::Mat& image,
|
| 167 |
+
// Image histogram normalization and
|
| 168 |
+
// BGR to Grayscale image conversion (if applicable)
|
| 169 |
+
// MARTIN: Set to "false"
|
| 170 |
+
- if (image.channels() != 1 || (flags & CV_CALIB_CB_NORMALIZE_IMAGE))
|
| 171 |
+
+ if (image.channels() != 1 || (flags & cv::CALIB_CB_NORMALIZE_IMAGE))
|
| 172 |
+
{
|
| 173 |
+
cv::Mat norm_img(image.rows, image.cols, CV_8UC1);
|
| 174 |
+
|
| 175 |
+
if (image.channels() != 1)
|
| 176 |
+
{
|
| 177 |
+
- cv::cvtColor(image, norm_img, CV_BGR2GRAY);
|
| 178 |
+
+ cv::cvtColor(image, norm_img, cv::COLOR_BGR2GRAY);
|
| 179 |
+
img = norm_img;
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
- if (flags & CV_CALIB_CB_NORMALIZE_IMAGE)
|
| 183 |
+
+ if (flags & cv::CALIB_CB_NORMALIZE_IMAGE)
|
| 184 |
+
{
|
| 185 |
+
cv::equalizeHist(image, norm_img);
|
| 186 |
+
img = norm_img;
|
| 187 |
+
}
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
- if (flags & CV_CALIB_CB_FAST_CHECK)
|
| 191 |
+
+ if (flags & cv::CALIB_CB_FAST_CHECK)
|
| 192 |
+
{
|
| 193 |
+
if (!checkChessboard(img, patternSize))
|
| 194 |
+
{
|
| 195 |
+
@@ -189,7 +192,7 @@ Chessboard::findChessboardCornersImproved(const cv::Mat& image,
|
| 196 |
+
cv::Mat thresh_img;
|
| 197 |
+
|
| 198 |
+
// convert the input grayscale image to binary (black-n-white)
|
| 199 |
+
- if (flags & CV_CALIB_CB_ADAPTIVE_THRESH)
|
| 200 |
+
+ if (flags & cv::CALIB_CB_ADAPTIVE_THRESH)
|
| 201 |
+
{
|
| 202 |
+
int blockSize = lround(prevSqrSize == 0 ?
|
| 203 |
+
std::min(img.cols,img.rows)*(k%2 == 0 ? 0.2 : 0.1): prevSqrSize*2)|1;
|
| 204 |
+
@@ -1238,7 +1241,7 @@ Chessboard::generateQuads(std::vector<ChessboardQuadPtr>& quads,
|
| 205 |
+
dp = pt[1] - pt[2];
|
| 206 |
+
double d4 = sqrt(dp.dot(dp));
|
| 207 |
+
|
| 208 |
+
- if (!(flags & CV_CALIB_CB_FILTER_QUADS) ||
|
| 209 |
+
+ if (!(flags & cv::CALIB_CB_FILTER_QUADS) ||
|
| 210 |
+
(d3*4 > d4 && d4*4 > d3 && d3*d4 < area*1.5 && area > minSize &&
|
| 211 |
+
d1 >= 0.15 * p && d2 >= 0.15 * p))
|
| 212 |
+
{
|
| 213 |
+
diff --git a/camera_models/src/gpl/gpl.cc b/camera_models/src/gpl/gpl.cc
|
| 214 |
+
index 9142a3a..1a9b2ef 100644
|
| 215 |
+
--- a/camera_models/src/gpl/gpl.cc
|
| 216 |
+
+++ b/camera_models/src/gpl/gpl.cc
|
| 217 |
+
@@ -1,3 +1,6 @@
|
| 218 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 219 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 220 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 221 |
+
#include "camodocal/gpl/gpl.h"
|
| 222 |
+
|
| 223 |
+
#include <set>
|
| 224 |
+
diff --git a/camera_models/src/intrinsic_calib.cc b/camera_models/src/intrinsic_calib.cc
|
| 225 |
+
index 7590a64..2742d3d 100644
|
| 226 |
+
--- a/camera_models/src/intrinsic_calib.cc
|
| 227 |
+
+++ b/camera_models/src/intrinsic_calib.cc
|
| 228 |
+
@@ -274,7 +274,7 @@ main( int argc, char** argv )
|
| 229 |
+
0.5,
|
| 230 |
+
cv::Scalar( 255, 255, 255 ),
|
| 231 |
+
1,
|
| 232 |
+
- CV_AA );
|
| 233 |
+
+ cv::LINE_AA );
|
| 234 |
+
cv::imshow( "Image", cbImages.at( i ) );
|
| 235 |
+
cv::waitKey( 0 );
|
| 236 |
+
}
|
| 237 |
+
diff --git a/global_fusion/CMakeLists.txt b/global_fusion/CMakeLists.txt
|
| 238 |
+
index 2016261..98e3e16 100644
|
| 239 |
+
--- a/global_fusion/CMakeLists.txt
|
| 240 |
+
+++ b/global_fusion/CMakeLists.txt
|
| 241 |
+
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8.3)
|
| 242 |
+
project(global_fusion)
|
| 243 |
+
|
| 244 |
+
set(CMAKE_BUILD_TYPE "Release")
|
| 245 |
+
-set(CMAKE_CXX_FLAGS "-std=c++11")
|
| 246 |
+
+set(CMAKE_CXX_FLAGS "-std=c++14")
|
| 247 |
+
#-DEIGEN_USE_MKL_ALL")
|
| 248 |
+
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
|
| 249 |
+
+set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
|
| 250 |
+
|
| 251 |
+
find_package(catkin REQUIRED COMPONENTS
|
| 252 |
+
roscpp
|
| 253 |
+
diff --git a/loop_fusion/CMakeLists.txt b/loop_fusion/CMakeLists.txt
|
| 254 |
+
index 29568f0..157485d 100644
|
| 255 |
+
--- a/loop_fusion/CMakeLists.txt
|
| 256 |
+
+++ b/loop_fusion/CMakeLists.txt
|
| 257 |
+
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8.3)
|
| 258 |
+
project(loop_fusion)
|
| 259 |
+
|
| 260 |
+
set(CMAKE_BUILD_TYPE "Release")
|
| 261 |
+
-set(CMAKE_CXX_FLAGS "-std=c++11")
|
| 262 |
+
+set(CMAKE_CXX_FLAGS "-std=c++14")
|
| 263 |
+
#-DEIGEN_USE_MKL_ALL")
|
| 264 |
+
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
|
| 265 |
+
+set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
|
| 266 |
+
|
| 267 |
+
find_package(catkin REQUIRED COMPONENTS
|
| 268 |
+
roscpp
|
| 269 |
+
diff --git a/loop_fusion/src/ThirdParty/DBoW/FBrief.cpp b/loop_fusion/src/ThirdParty/DBoW/FBrief.cpp
|
| 270 |
+
index c447772..ed63ef3 100644
|
| 271 |
+
--- a/loop_fusion/src/ThirdParty/DBoW/FBrief.cpp
|
| 272 |
+
+++ b/loop_fusion/src/ThirdParty/DBoW/FBrief.cpp
|
| 273 |
+
@@ -1,3 +1,6 @@
|
| 274 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 275 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 276 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 277 |
+
/**
|
| 278 |
+
* File: FBrief.cpp
|
| 279 |
+
* Date: November 2011
|
| 280 |
+
diff --git a/loop_fusion/src/ThirdParty/DVision/BRIEF.cpp b/loop_fusion/src/ThirdParty/DVision/BRIEF.cpp
|
| 281 |
+
index 6af73c4..b8bd770 100644
|
| 282 |
+
--- a/loop_fusion/src/ThirdParty/DVision/BRIEF.cpp
|
| 283 |
+
+++ b/loop_fusion/src/ThirdParty/DVision/BRIEF.cpp
|
| 284 |
+
@@ -1,3 +1,6 @@
|
| 285 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 286 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 287 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 288 |
+
/**
|
| 289 |
+
* File: BRIEF.cpp
|
| 290 |
+
* Author: Dorian Galvez
|
| 291 |
+
diff --git a/loop_fusion/src/keyframe.cpp b/loop_fusion/src/keyframe.cpp
|
| 292 |
+
index 862b795..26e0788 100644
|
| 293 |
+
--- a/loop_fusion/src/keyframe.cpp
|
| 294 |
+
+++ b/loop_fusion/src/keyframe.cpp
|
| 295 |
+
@@ -1,3 +1,6 @@
|
| 296 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 297 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 298 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 299 |
+
/*******************************************************
|
| 300 |
+
* Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science and Technology
|
| 301 |
+
*
|
| 302 |
+
@@ -289,7 +292,7 @@ bool KeyFrame::findConnection(KeyFrame* old_kf)
|
| 303 |
+
cv::Mat gray_img, loop_match_img;
|
| 304 |
+
cv::Mat old_img = old_kf->image;
|
| 305 |
+
cv::hconcat(image, old_img, gray_img);
|
| 306 |
+
- cvtColor(gray_img, loop_match_img, CV_GRAY2RGB);
|
| 307 |
+
+ cvtColor(gray_img, loop_match_img, cv::COLOR_GRAY2RGB);
|
| 308 |
+
for(int i = 0; i< (int)point_2d_uv.size(); i++)
|
| 309 |
+
{
|
| 310 |
+
cv::Point2f cur_pt = point_2d_uv[i];
|
| 311 |
+
@@ -327,7 +330,7 @@ bool KeyFrame::findConnection(KeyFrame* old_kf)
|
| 312 |
+
cv::Mat old_img = old_kf->image;
|
| 313 |
+
cv::hconcat(image, gap_image, gap_image);
|
| 314 |
+
cv::hconcat(gap_image, old_img, gray_img);
|
| 315 |
+
- cvtColor(gray_img, loop_match_img, CV_GRAY2RGB);
|
| 316 |
+
+ cvtColor(gray_img, loop_match_img, cv::COLOR_GRAY2RGB);
|
| 317 |
+
for(int i = 0; i< (int)matched_2d_cur.size(); i++)
|
| 318 |
+
{
|
| 319 |
+
cv::Point2f cur_pt = matched_2d_cur[i];
|
| 320 |
+
@@ -383,7 +386,7 @@ bool KeyFrame::findConnection(KeyFrame* old_kf)
|
| 321 |
+
cv::Mat old_img = old_kf->image;
|
| 322 |
+
cv::hconcat(image, gap_image, gap_image);
|
| 323 |
+
cv::hconcat(gap_image, old_img, gray_img);
|
| 324 |
+
- cvtColor(gray_img, loop_match_img, CV_GRAY2RGB);
|
| 325 |
+
+ cvtColor(gray_img, loop_match_img, cv::COLOR_GRAY2RGB);
|
| 326 |
+
for(int i = 0; i< (int)matched_2d_cur.size(); i++)
|
| 327 |
+
{
|
| 328 |
+
cv::Point2f cur_pt = matched_2d_cur[i];
|
| 329 |
+
@@ -433,7 +436,7 @@ bool KeyFrame::findConnection(KeyFrame* old_kf)
|
| 330 |
+
cv::Mat old_img = old_kf->image;
|
| 331 |
+
cv::hconcat(image, gap_image, gap_image);
|
| 332 |
+
cv::hconcat(gap_image, old_img, gray_img);
|
| 333 |
+
- cvtColor(gray_img, loop_match_img, CV_GRAY2RGB);
|
| 334 |
+
+ cvtColor(gray_img, loop_match_img, cv::COLOR_GRAY2RGB);
|
| 335 |
+
for(int i = 0; i< (int)matched_2d_cur.size(); i++)
|
| 336 |
+
{
|
| 337 |
+
cv::Point2f cur_pt = matched_2d_cur[i];
|
| 338 |
+
@@ -452,9 +455,9 @@ bool KeyFrame::findConnection(KeyFrame* old_kf)
|
| 339 |
+
cv::line(loop_match_img, matched_2d_cur[i], old_pt, cv::Scalar(0, 255, 0), 2, 8, 0);
|
| 340 |
+
}
|
| 341 |
+
cv::Mat notation(50, COL + gap + COL, CV_8UC3, cv::Scalar(255, 255, 255));
|
| 342 |
+
- putText(notation, "current frame: " + to_string(index) + " sequence: " + to_string(sequence), cv::Point2f(20, 30), CV_FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(255), 3);
|
| 343 |
+
+ putText(notation, "current frame: " + to_string(index) + " sequence: " + to_string(sequence), cv::Point2f(20, 30), cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(255), 3);
|
| 344 |
+
|
| 345 |
+
- putText(notation, "previous frame: " + to_string(old_kf->index) + " sequence: " + to_string(old_kf->sequence), cv::Point2f(20 + COL + gap, 30), CV_FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(255), 3);
|
| 346 |
+
+ putText(notation, "previous frame: " + to_string(old_kf->index) + " sequence: " + to_string(old_kf->sequence), cv::Point2f(20 + COL + gap, 30), cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(255), 3);
|
| 347 |
+
cv::vconcat(notation, loop_match_img, loop_match_img);
|
| 348 |
+
|
| 349 |
+
/*
|
| 350 |
+
diff --git a/loop_fusion/src/pose_graph.cpp b/loop_fusion/src/pose_graph.cpp
|
| 351 |
+
index b5436fd..63be1de 100644
|
| 352 |
+
--- a/loop_fusion/src/pose_graph.cpp
|
| 353 |
+
+++ b/loop_fusion/src/pose_graph.cpp
|
| 354 |
+
@@ -340,7 +340,7 @@ int PoseGraph::detectLoop(KeyFrame* keyframe, int frame_index)
|
| 355 |
+
{
|
| 356 |
+
int feature_num = keyframe->keypoints.size();
|
| 357 |
+
cv::resize(keyframe->image, compressed_image, cv::Size(376, 240));
|
| 358 |
+
- putText(compressed_image, "feature_num:" + to_string(feature_num), cv::Point2f(10, 10), CV_FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 359 |
+
+ putText(compressed_image, "feature_num:" + to_string(feature_num), cv::Point2f(10, 10), cv::FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 360 |
+
image_pool[frame_index] = compressed_image;
|
| 361 |
+
}
|
| 362 |
+
TicToc tmp_t;
|
| 363 |
+
@@ -361,7 +361,7 @@ int PoseGraph::detectLoop(KeyFrame* keyframe, int frame_index)
|
| 364 |
+
{
|
| 365 |
+
loop_result = compressed_image.clone();
|
| 366 |
+
if (ret.size() > 0)
|
| 367 |
+
- putText(loop_result, "neighbour score:" + to_string(ret[0].Score), cv::Point2f(10, 50), CV_FONT_HERSHEY_SIMPLEX, 0.5, cv::Scalar(255));
|
| 368 |
+
+ putText(loop_result, "neighbour score:" + to_string(ret[0].Score), cv::Point2f(10, 50), cv::FONT_HERSHEY_SIMPLEX, 0.5, cv::Scalar(255));
|
| 369 |
+
}
|
| 370 |
+
// visual loop result
|
| 371 |
+
if (DEBUG_IMAGE)
|
| 372 |
+
@@ -371,7 +371,7 @@ int PoseGraph::detectLoop(KeyFrame* keyframe, int frame_index)
|
| 373 |
+
int tmp_index = ret[i].Id;
|
| 374 |
+
auto it = image_pool.find(tmp_index);
|
| 375 |
+
cv::Mat tmp_image = (it->second).clone();
|
| 376 |
+
- putText(tmp_image, "index: " + to_string(tmp_index) + "loop score:" + to_string(ret[i].Score), cv::Point2f(10, 50), CV_FONT_HERSHEY_SIMPLEX, 0.5, cv::Scalar(255));
|
| 377 |
+
+ putText(tmp_image, "index: " + to_string(tmp_index) + "loop score:" + to_string(ret[i].Score), cv::Point2f(10, 50), cv::FONT_HERSHEY_SIMPLEX, 0.5, cv::Scalar(255));
|
| 378 |
+
cv::hconcat(loop_result, tmp_image, loop_result);
|
| 379 |
+
}
|
| 380 |
+
}
|
| 381 |
+
@@ -388,7 +388,7 @@ int PoseGraph::detectLoop(KeyFrame* keyframe, int frame_index)
|
| 382 |
+
{
|
| 383 |
+
auto it = image_pool.find(tmp_index);
|
| 384 |
+
cv::Mat tmp_image = (it->second).clone();
|
| 385 |
+
- putText(tmp_image, "loop score:" + to_string(ret[i].Score), cv::Point2f(10, 50), CV_FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 386 |
+
+ putText(tmp_image, "loop score:" + to_string(ret[i].Score), cv::Point2f(10, 50), cv::FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 387 |
+
cv::hconcat(loop_result, tmp_image, loop_result);
|
| 388 |
+
}
|
| 389 |
+
}
|
| 390 |
+
@@ -424,7 +424,7 @@ void PoseGraph::addKeyFrameIntoVoc(KeyFrame* keyframe)
|
| 391 |
+
{
|
| 392 |
+
int feature_num = keyframe->keypoints.size();
|
| 393 |
+
cv::resize(keyframe->image, compressed_image, cv::Size(376, 240));
|
| 394 |
+
- putText(compressed_image, "feature_num:" + to_string(feature_num), cv::Point2f(10, 10), CV_FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 395 |
+
+ putText(compressed_image, "feature_num:" + to_string(feature_num), cv::Point2f(10, 10), cv::FONT_HERSHEY_SIMPLEX, 0.4, cv::Scalar(255));
|
| 396 |
+
image_pool[keyframe->index] = compressed_image;
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
diff --git a/vins_estimator/CMakeLists.txt b/vins_estimator/CMakeLists.txt
|
| 400 |
+
index 5daf0ee..65ff9b2 100644
|
| 401 |
+
--- a/vins_estimator/CMakeLists.txt
|
| 402 |
+
+++ b/vins_estimator/CMakeLists.txt
|
| 403 |
+
@@ -2,9 +2,9 @@ cmake_minimum_required(VERSION 2.8.3)
|
| 404 |
+
project(vins)
|
| 405 |
+
|
| 406 |
+
set(CMAKE_BUILD_TYPE "Release")
|
| 407 |
+
-set(CMAKE_CXX_FLAGS "-std=c++11")
|
| 408 |
+
+set(CMAKE_CXX_FLAGS "-std=c++14")
|
| 409 |
+
#-DEIGEN_USE_MKL_ALL")
|
| 410 |
+
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g")
|
| 411 |
+
+set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall")
|
| 412 |
+
|
| 413 |
+
find_package(catkin REQUIRED COMPONENTS
|
| 414 |
+
roscpp
|
| 415 |
+
diff --git a/vins_estimator/src/KITTIGPSTest.cpp b/vins_estimator/src/KITTIGPSTest.cpp
|
| 416 |
+
index 8c75576..e2c9e4e 100644
|
| 417 |
+
--- a/vins_estimator/src/KITTIGPSTest.cpp
|
| 418 |
+
+++ b/vins_estimator/src/KITTIGPSTest.cpp
|
| 419 |
+
@@ -119,8 +119,8 @@ int main(int argc, char** argv)
|
| 420 |
+
printf("%s\n", leftImagePath.c_str() );
|
| 421 |
+
printf("%s\n", rightImagePath.c_str() );
|
| 422 |
+
|
| 423 |
+
- imLeft = cv::imread(leftImagePath, CV_LOAD_IMAGE_GRAYSCALE );
|
| 424 |
+
- imRight = cv::imread(rightImagePath, CV_LOAD_IMAGE_GRAYSCALE );
|
| 425 |
+
+ imLeft = cv::imread(leftImagePath, cv::IMREAD_GRAYSCALE );
|
| 426 |
+
+ imRight = cv::imread(rightImagePath, cv::IMREAD_GRAYSCALE );
|
| 427 |
+
|
| 428 |
+
double imgTime = imageTimeList[i] - baseTime;
|
| 429 |
+
|
| 430 |
+
diff --git a/vins_estimator/src/KITTIOdomTest.cpp b/vins_estimator/src/KITTIOdomTest.cpp
|
| 431 |
+
index df4c338..073a2f3 100644
|
| 432 |
+
--- a/vins_estimator/src/KITTIOdomTest.cpp
|
| 433 |
+
+++ b/vins_estimator/src/KITTIOdomTest.cpp
|
| 434 |
+
@@ -92,12 +92,12 @@ int main(int argc, char** argv)
|
| 435 |
+
//printf("%s\n", leftImagePath.c_str() );
|
| 436 |
+
//printf("%s\n", rightImagePath.c_str() );
|
| 437 |
+
|
| 438 |
+
- imLeft = cv::imread(leftImagePath, CV_LOAD_IMAGE_GRAYSCALE );
|
| 439 |
+
+ imLeft = cv::imread(leftImagePath, cv::IMREAD_GRAYSCALE );
|
| 440 |
+
sensor_msgs::ImagePtr imLeftMsg = cv_bridge::CvImage(std_msgs::Header(), "mono8", imLeft).toImageMsg();
|
| 441 |
+
imLeftMsg->header.stamp = ros::Time(imageTimeList[i]);
|
| 442 |
+
pubLeftImage.publish(imLeftMsg);
|
| 443 |
+
|
| 444 |
+
- imRight = cv::imread(rightImagePath, CV_LOAD_IMAGE_GRAYSCALE );
|
| 445 |
+
+ imRight = cv::imread(rightImagePath, cv::IMREAD_GRAYSCALE );
|
| 446 |
+
sensor_msgs::ImagePtr imRightMsg = cv_bridge::CvImage(std_msgs::Header(), "mono8", imRight).toImageMsg();
|
| 447 |
+
imRightMsg->header.stamp = ros::Time(imageTimeList[i]);
|
| 448 |
+
pubRightImage.publish(imRightMsg);
|
| 449 |
+
diff --git a/vins_estimator/src/featureTracker/feature_tracker.cpp b/vins_estimator/src/featureTracker/feature_tracker.cpp
|
| 450 |
+
index eb69c88..f254ed1 100644
|
| 451 |
+
--- a/vins_estimator/src/featureTracker/feature_tracker.cpp
|
| 452 |
+
+++ b/vins_estimator/src/featureTracker/feature_tracker.cpp
|
| 453 |
+
@@ -1,3 +1,6 @@
|
| 454 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 455 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 456 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 457 |
+
/*******************************************************
|
| 458 |
+
* Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science and Technology
|
| 459 |
+
*
|
| 460 |
+
@@ -453,7 +456,7 @@ void FeatureTracker::drawTrack(const cv::Mat &imLeft, const cv::Mat &imRight,
|
| 461 |
+
cv::hconcat(imLeft, imRight, imTrack);
|
| 462 |
+
else
|
| 463 |
+
imTrack = imLeft.clone();
|
| 464 |
+
- cv::cvtColor(imTrack, imTrack, CV_GRAY2RGB);
|
| 465 |
+
+ cv::cvtColor(imTrack, imTrack, cv::COLOR_GRAY2RGB);
|
| 466 |
+
|
| 467 |
+
for (size_t j = 0; j < curLeftPts.size(); j++)
|
| 468 |
+
{
|
| 469 |
+
diff --git a/vins_estimator/src/initial/solve_5pts.cpp b/vins_estimator/src/initial/solve_5pts.cpp
|
| 470 |
+
index 991232d..00a339b 100644
|
| 471 |
+
--- a/vins_estimator/src/initial/solve_5pts.cpp
|
| 472 |
+
+++ b/vins_estimator/src/initial/solve_5pts.cpp
|
| 473 |
+
@@ -1,3 +1,6 @@
|
| 474 |
+
+#include <opencv2/imgproc/types_c.h>
|
| 475 |
+
+#include <opencv2/calib3d/calib3d_c.h>
|
| 476 |
+
+#include <opencv2/imgcodecs/legacy/constants_c.h>
|
| 477 |
+
/*******************************************************
|
| 478 |
+
* Copyright (C) 2019, Aerial Robotics Group, Hong Kong University of Science and Technology
|
| 479 |
+
*
|
demos/hkstp_s_02/results/demo_summary.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"rtklib": {
|
| 3 |
+
"solutions": 379,
|
| 4 |
+
"quality_counts": {
|
| 5 |
+
"2": 376,
|
| 6 |
+
"4": 3
|
| 7 |
+
},
|
| 8 |
+
"first_utc": 1786608304.0,
|
| 9 |
+
"last_utc": 1786608682.0,
|
| 10 |
+
"fixed_solutions": 0
|
| 11 |
+
},
|
| 12 |
+
"vins": {
|
| 13 |
+
"poses": 1881,
|
| 14 |
+
"first_utc": 1786608306.838941,
|
| 15 |
+
"last_utc": 1786608682.841784,
|
| 16 |
+
"span_s": 376.0028429031372,
|
| 17 |
+
"path_length_3d_m": 2313.3078407448015,
|
| 18 |
+
"finite": true,
|
| 19 |
+
"strictly_increasing_timestamps": true,
|
| 20 |
+
"unit_quaternions": true
|
| 21 |
+
},
|
| 22 |
+
"fastlio": {
|
| 23 |
+
"poses": 3784,
|
| 24 |
+
"first_utc": 1786608304.3295288,
|
| 25 |
+
"last_utc": 1786608682.9548748,
|
| 26 |
+
"span_s": 378.6253459453583,
|
| 27 |
+
"path_length_3d_m": 2477.9197154012472,
|
| 28 |
+
"finite": true,
|
| 29 |
+
"strictly_increasing_timestamps": true,
|
| 30 |
+
"unit_quaternions": true
|
| 31 |
+
},
|
| 32 |
+
"notes": "Visualization, not an accuracy benchmark. Reference-point lever arms are not corrected. VIO/LIO are rigidly aligned in 2D for plotting without scaling. Inspect trajectory coverage and estimator logs."
|
| 33 |
+
}
|
demos/hkstp_s_02/results/fastlio/run.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mode": "fastlio",
|
| 3 |
+
"rate": 1.0,
|
| 4 |
+
"poses": 3784,
|
| 5 |
+
"first_t": 1786608304.3295288,
|
| 6 |
+
"last_t": 1786608682.9548748,
|
| 7 |
+
"playback_complete": true
|
| 8 |
+
}
|
demos/hkstp_s_02/results/fastlio/trajectory.tum
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
demos/hkstp_s_02/results/input_validation.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"published_input_files": 7583,
|
| 3 |
+
"size_check_passed": true,
|
| 4 |
+
"bytes": 19799200505,
|
| 5 |
+
"camera_frames": 3790,
|
| 6 |
+
"lidar_frames": 3787
|
| 7 |
+
}
|
demos/hkstp_s_02/results/provenance.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"upstream_revisions": {
|
| 3 |
+
"VINS-Fusion": "be55a937a57436548ddfb1bd324bc1e9a9e828e0",
|
| 4 |
+
"FAST_LIO": "7cc4175de6f8ba2edf34bab02a42195b141027e9",
|
| 5 |
+
"livox_ros_driver": "3d240d5666129e1a3052e78ee8487a04b08fdda3",
|
| 6 |
+
"RTKLIB-demo5": "75a2e56275485b21a67bd35bc94bbeb8936e1a74"
|
| 7 |
+
},
|
| 8 |
+
"environment": {
|
| 9 |
+
"os": "Ubuntu 20.04",
|
| 10 |
+
"ros": "Noetic",
|
| 11 |
+
"opencv": "4.2",
|
| 12 |
+
"ceres": "1.14"
|
| 13 |
+
},
|
| 14 |
+
"input_sequence": "hkstp_s_02"
|
| 15 |
+
}
|
demos/hkstp_s_02/results/rtklib_track.csv
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
timestamp_unix_utc,latitude_deg,longitude_deg,height_m,quality
|
| 2 |
+
1786608304.000,22.424923771,114.213850796,17.2058,2
|
| 3 |
+
1786608305.000,22.424925662,114.213849524,17.3011,2
|
| 4 |
+
1786608306.000,22.424928767,114.213845711,17.4976,2
|
| 5 |
+
1786608307.000,22.424933175,114.213841411,17.5130,2
|
| 6 |
+
1786608308.000,22.424933431,114.213840904,17.5638,2
|
| 7 |
+
1786608309.000,22.424934206,114.213841837,17.5978,2
|
| 8 |
+
1786608310.000,22.424933125,114.213842170,17.4856,2
|
| 9 |
+
1786608311.000,22.424932920,114.213841979,17.4714,2
|
| 10 |
+
1786608312.000,22.424932892,114.213841939,17.5398,2
|
| 11 |
+
1786608313.000,22.424935300,114.213839724,17.6071,2
|
| 12 |
+
1786608314.000,22.424940194,114.213835762,17.5417,2
|
| 13 |
+
1786608315.000,22.424942008,114.213834389,17.5976,2
|
| 14 |
+
1786608316.000,22.424940433,114.213836411,17.5300,2
|
| 15 |
+
1786608317.000,22.424937850,114.213845729,17.5209,2
|
| 16 |
+
1786608318.000,22.424933027,114.213866120,17.4998,2
|
| 17 |
+
1786608319.000,22.424922008,114.213888724,17.4902,2
|
| 18 |
+
1786608320.000,22.424904631,114.213905572,17.4771,2
|
| 19 |
+
1786608321.000,22.424885333,114.213919567,17.4307,2
|
| 20 |
+
1786608322.000,22.424862944,114.213934914,17.4463,2
|
| 21 |
+
1786608323.000,22.424837079,114.213948168,17.5114,2
|
| 22 |
+
1786608324.000,22.424811544,114.213948852,17.5162,2
|
| 23 |
+
1786608325.000,22.424790759,114.213937162,17.4667,2
|
| 24 |
+
1786608326.000,22.424777003,114.213914898,17.3730,2
|
| 25 |
+
1786608327.000,22.424775067,114.213889282,17.4201,2
|
| 26 |
+
1786608328.000,22.424785029,114.213863643,17.3774,2
|
| 27 |
+
1786608329.000,22.424808378,114.213840321,17.8436,2
|
| 28 |
+
1786608330.000,22.424839600,114.213815907,17.7860,2
|
| 29 |
+
1786608331.000,22.424879214,114.213794214,17.6981,2
|
| 30 |
+
1786608332.000,22.424928001,114.213776736,17.6871,2
|
| 31 |
+
1786608333.000,22.424981341,114.213761704,17.6892,2
|
| 32 |
+
1786608334.000,22.425030902,114.213749522,17.5896,2
|
| 33 |
+
1786608335.000,22.425070494,114.213729914,17.7161,2
|
| 34 |
+
1786608336.000,22.425095299,114.213705057,17.6387,2
|
| 35 |
+
1786608337.000,22.425107554,114.213680921,17.6642,2
|
| 36 |
+
1786608338.000,22.425112228,114.213660237,17.5784,2
|
| 37 |
+
1786608339.000,22.425113567,114.213644093,17.5264,2
|
| 38 |
+
1786608340.000,22.425114136,114.213632539,17.4564,2
|
| 39 |
+
1786608341.000,22.425113616,114.213625920,17.4460,2
|
| 40 |
+
1786608342.000,22.425111992,114.213617399,17.0994,2
|
| 41 |
+
1786608343.000,22.425117312,114.213604210,17.7631,2
|
| 42 |
+
1786608344.000,22.425108103,114.213588957,17.0702,2
|
| 43 |
+
1786608345.000,22.425095293,114.213577894,16.8523,2
|
| 44 |
+
1786608346.000,22.425076420,114.213571345,17.2005,2
|
| 45 |
+
1786608347.000,22.425057984,114.213571272,16.9807,2
|
| 46 |
+
1786608348.000,22.425041043,114.213571395,16.6102,2
|
| 47 |
+
1786608349.000,22.425013414,114.213558902,16.5300,2
|
| 48 |
+
1786608350.000,22.424985528,114.213554083,16.0906,2
|
| 49 |
+
1786608351.000,22.424949379,114.213545606,16.0922,2
|
| 50 |
+
1786608352.000,22.424908255,114.213534232,16.1991,2
|
| 51 |
+
1786608353.000,22.424866525,114.213519942,16.1519,2
|
| 52 |
+
1786608354.000,22.424828559,114.213505445,16.1276,2
|
| 53 |
+
1786608355.000,22.424795404,114.213493485,16.1411,2
|
| 54 |
+
1786608356.000,22.424765576,114.213484313,16.0736,2
|
| 55 |
+
1786608357.000,22.424735132,114.213478461,16.1267,2
|
| 56 |
+
1786608358.000,22.424697769,114.213474147,16.1363,2
|
| 57 |
+
1786608359.000,22.424657554,114.213468137,16.0849,2
|
| 58 |
+
1786608360.000,22.424615121,114.213460447,16.0276,2
|
| 59 |
+
1786608361.000,22.424574025,114.213444789,15.9992,2
|
| 60 |
+
1786608362.000,22.424539227,114.213417296,15.9913,2
|
| 61 |
+
1786608363.000,22.424517373,114.213378367,15.9729,2
|
| 62 |
+
1786608364.000,22.424510243,114.213329322,16.0473,2
|
| 63 |
+
1786608365.000,22.424522081,114.213277201,16.1568,2
|
| 64 |
+
1786608366.000,22.424547844,114.213226405,16.3651,2
|
| 65 |
+
1786608367.000,22.424571446,114.213174201,16.3009,2
|
| 66 |
+
1786608368.000,22.424591702,114.213117110,16.2306,2
|
| 67 |
+
1786608369.000,22.424607844,114.213054122,16.2441,2
|
| 68 |
+
1786608370.000,22.424620090,114.212986385,16.2905,2
|
| 69 |
+
1786608371.000,22.424631959,114.212913379,16.2648,2
|
| 70 |
+
1786608372.000,22.424645407,114.212836453,16.1326,2
|
| 71 |
+
1786608373.000,22.424661553,114.212755365,16.2519,2
|
| 72 |
+
1786608374.000,22.424679883,114.212670723,16.2577,2
|
| 73 |
+
1786608375.000,22.424699478,114.212588271,15.9546,2
|
| 74 |
+
1786608376.000,22.424719843,114.212510060,15.2076,2
|
| 75 |
+
1786608377.000,22.424743068,114.212433939,15.6962,2
|
| 76 |
+
1786608378.000,22.424788007,114.212345853,13.7820,2
|
| 77 |
+
1786608379.000,22.424824930,114.212321656,30.7997,2
|
| 78 |
+
1786608380.000,22.424851932,114.212254082,32.0450,2
|
| 79 |
+
1786608381.000,22.424886059,114.212184510,32.9057,2
|
| 80 |
+
1786608382.000,22.424916148,114.212119928,33.1245,2
|
| 81 |
+
1786608383.000,22.424945086,114.212056989,31.8818,2
|
| 82 |
+
1786608384.000,22.424980620,114.212003140,31.5638,2
|
| 83 |
+
1786608385.000,22.425009040,114.211936921,32.7595,2
|
| 84 |
+
1786608386.000,22.425042805,114.211879696,33.2094,2
|
| 85 |
+
1786608387.000,22.425067314,114.211819922,32.3461,2
|
| 86 |
+
1786608388.000,22.425091332,114.211763006,33.6267,2
|
| 87 |
+
1786608389.000,22.425105619,114.211706044,32.7616,2
|
| 88 |
+
1786608390.000,22.425129182,114.211656227,33.2604,2
|
| 89 |
+
1786608391.000,22.425159111,114.211613100,33.5124,2
|
| 90 |
+
1786608392.000,22.425193454,114.211565190,33.7135,2
|
| 91 |
+
1786608393.000,22.425228526,114.211514769,33.3310,2
|
| 92 |
+
1786608394.000,22.425264574,114.211460014,33.6088,2
|
| 93 |
+
1786608395.000,22.425299801,114.211398092,33.9194,2
|
| 94 |
+
1786608396.000,22.425335367,114.211331634,34.6586,2
|
| 95 |
+
1786608397.000,22.425366584,114.211263864,34.0368,2
|
| 96 |
+
1786608398.000,22.425401856,114.211193522,34.1087,2
|
| 97 |
+
1786608399.000,22.425441202,114.211123568,34.4078,2
|
| 98 |
+
1786608400.000,22.425485535,114.211053664,34.7480,2
|
| 99 |
+
1786608401.000,22.425528586,114.210981903,34.4887,2
|
| 100 |
+
1786608402.000,22.425575938,114.210912929,34.2222,2
|
| 101 |
+
1786608403.000,22.425625550,114.210839661,34.2353,2
|
| 102 |
+
1786608404.000,22.425675907,114.210764624,34.1566,2
|
| 103 |
+
1786608405.000,22.425725686,114.210693882,33.7613,2
|
| 104 |
+
1786608406.000,22.425771919,114.210624814,31.9460,2
|
| 105 |
+
1786608407.000,22.425818505,114.210549821,35.7954,2
|
| 106 |
+
1786608408.000,22.425871665,114.210482547,42.9736,2
|
| 107 |
+
1786608409.000,22.425902038,114.210431914,43.8923,2
|
| 108 |
+
1786608410.000,22.425958958,114.210328140,42.1862,2
|
| 109 |
+
1786608411.000,22.426002292,114.210259669,40.9042,2
|
| 110 |
+
1786608412.000,22.426044705,114.210198001,40.0911,2
|
| 111 |
+
1786608413.000,22.426084320,114.210134501,38.9541,2
|
| 112 |
+
1786608414.000,22.426128306,114.210076325,40.7457,2
|
| 113 |
+
1786608415.000,22.426173976,114.210014556,42.0021,2
|
| 114 |
+
1786608416.000,22.426220548,114.209951168,39.5033,2
|
| 115 |
+
1786608417.000,22.426267020,114.209892661,39.3117,2
|
| 116 |
+
1786608418.000,22.426312122,114.209837444,37.7434,2
|
| 117 |
+
1786608419.000,22.426353283,114.209781679,36.5654,2
|
| 118 |
+
1786608420.000,22.426389123,114.209724586,37.6543,2
|
| 119 |
+
1786608421.000,22.426431683,114.209668612,37.3623,2
|
| 120 |
+
1786608422.000,22.426469208,114.209615269,37.9983,2
|
| 121 |
+
1786608423.000,22.426507832,114.209561540,36.4504,2
|
| 122 |
+
1786608424.000,22.426535541,114.209504354,38.2062,2
|
| 123 |
+
1786608425.000,22.426581683,114.209439684,36.8021,2
|
| 124 |
+
1786608426.000,22.426621141,114.209376131,35.9209,2
|
| 125 |
+
1786608427.000,22.426673590,114.209319149,36.4611,4
|
| 126 |
+
1786608428.000,22.426703805,114.209236295,32.8356,4
|
| 127 |
+
1786608429.000,22.426736888,114.209163928,36.7902,2
|
| 128 |
+
1786608430.000,22.426781602,114.209101140,38.9585,2
|
| 129 |
+
1786608431.000,22.426823294,114.209037554,43.6381,2
|
| 130 |
+
1786608432.000,22.426858065,114.208987874,46.4521,2
|
| 131 |
+
1786608433.000,22.426895282,114.208943715,44.2939,2
|
| 132 |
+
1786608434.000,22.426910630,114.208914475,30.6415,2
|
| 133 |
+
1786608435.000,22.426954788,114.208867872,31.5067,2
|
| 134 |
+
1786608436.000,22.427000657,114.208818190,30.5118,2
|
| 135 |
+
1786608437.000,22.427060142,114.208777155,30.2951,2
|
| 136 |
+
1786608438.000,22.427121769,114.208732849,30.2088,2
|
| 137 |
+
1786608439.000,22.427189872,114.208681272,27.5996,2
|
| 138 |
+
1786608440.000,22.427259888,114.208648088,26.8138,2
|
| 139 |
+
1786608441.000,22.427324621,114.208616158,26.9146,2
|
| 140 |
+
1786608442.000,22.427390730,114.208598432,26.4501,2
|
| 141 |
+
1786608443.000,22.427454569,114.208585151,25.9711,2
|
| 142 |
+
1786608444.000,22.427512040,114.208573691,26.0915,2
|
| 143 |
+
1786608445.000,22.427567148,114.208564972,26.1793,2
|
| 144 |
+
1786608446.000,22.427618397,114.208556251,26.5200,2
|
| 145 |
+
1786608447.000,22.427665477,114.208548835,26.0738,2
|
| 146 |
+
1786608448.000,22.427707861,114.208540850,26.2051,2
|
| 147 |
+
1786608449.000,22.427741092,114.208529289,26.7889,2
|
| 148 |
+
1786608450.000,22.427763163,114.208520724,26.7434,2
|
| 149 |
+
1786608451.000,22.427777207,114.208514167,26.9793,2
|
| 150 |
+
1786608452.000,22.427788447,114.208509988,26.9602,2
|
| 151 |
+
1786608453.000,22.427795338,114.208505778,26.8149,2
|
| 152 |
+
1786608454.000,22.427799183,114.208503875,27.2554,2
|
| 153 |
+
1786608455.000,22.427799383,114.208504875,27.4208,2
|
| 154 |
+
1786608456.000,22.427799833,114.208504873,27.5618,2
|
| 155 |
+
1786608457.000,22.427799503,114.208505098,27.7275,2
|
| 156 |
+
1786608458.000,22.427799890,114.208504697,27.7025,2
|
| 157 |
+
1786608459.000,22.427799225,114.208504368,27.9568,2
|
| 158 |
+
1786608460.000,22.427799227,114.208503944,28.1107,2
|
| 159 |
+
1786608461.000,22.427800793,114.208503639,27.6776,2
|
| 160 |
+
1786608462.000,22.427812277,114.208499415,27.6287,2
|
| 161 |
+
1786608463.000,22.427831557,114.208487783,27.5038,2
|
| 162 |
+
1786608464.000,22.427858712,114.208470827,27.5442,2
|
| 163 |
+
1786608465.000,22.427889965,114.208447240,28.1225,2
|
| 164 |
+
1786608466.000,22.427921176,114.208422766,27.6592,2
|
| 165 |
+
1786608467.000,22.427950328,114.208393358,27.7076,2
|
| 166 |
+
1786608468.000,22.427978130,114.208359347,27.8591,2
|
| 167 |
+
1786608469.000,22.428004667,114.208324107,28.3314,2
|
| 168 |
+
1786608470.000,22.428035609,114.208288409,28.2237,2
|
| 169 |
+
1786608471.000,22.428071985,114.208261797,28.3941,2
|
| 170 |
+
1786608472.000,22.428115781,114.208249884,28.8889,2
|
| 171 |
+
1786608473.000,22.428163367,114.208253190,28.8947,2
|
| 172 |
+
1786608474.000,22.428214674,114.208273054,28.9151,2
|
| 173 |
+
1786608475.000,22.428267443,114.208308431,28.9767,2
|
| 174 |
+
1786608476.000,22.428322580,114.208353145,29.0231,2
|
| 175 |
+
1786608477.000,22.428384118,114.208402865,29.2734,2
|
| 176 |
+
1786608478.000,22.428448489,114.208456574,29.4651,2
|
| 177 |
+
1786608479.000,22.428514865,114.208510973,29.5772,2
|
| 178 |
+
1786608480.000,22.428583047,114.208567386,29.8047,2
|
| 179 |
+
1786608481.000,22.428652161,114.208624867,30.0119,2
|
| 180 |
+
1786608482.000,22.428720343,114.208681942,30.1789,2
|
| 181 |
+
1786608483.000,22.428787476,114.208735519,30.2856,2
|
| 182 |
+
1786608484.000,22.428850901,114.208786335,30.3478,2
|
| 183 |
+
1786608485.000,22.428913371,114.208837330,30.4428,2
|
| 184 |
+
1786608486.000,22.428972786,114.208886289,30.5494,2
|
| 185 |
+
1786608487.000,22.429027561,114.208931266,30.5184,2
|
| 186 |
+
1786608488.000,22.429076500,114.208967026,30.3985,2
|
| 187 |
+
1786608489.000,22.429126582,114.208992273,30.6303,2
|
| 188 |
+
1786608490.000,22.429182453,114.209012644,30.8512,2
|
| 189 |
+
1786608491.000,22.429236973,114.209031862,30.7385,2
|
| 190 |
+
1786608492.000,22.429282702,114.209059994,30.7342,2
|
| 191 |
+
1786608493.000,22.429314487,114.209099800,30.7037,2
|
| 192 |
+
1786608494.000,22.429326460,114.209148970,30.8494,2
|
| 193 |
+
1786608495.000,22.429315884,114.209197770,31.0418,2
|
| 194 |
+
1786608496.000,22.429285956,114.209237833,31.1332,2
|
| 195 |
+
1786608497.000,22.429241343,114.209259514,31.1903,2
|
| 196 |
+
1786608498.000,22.429191008,114.209256375,31.4337,2
|
| 197 |
+
1786608499.000,22.429146628,114.209228880,31.4873,2
|
| 198 |
+
1786608500.000,22.429111700,114.209189184,31.7378,2
|
| 199 |
+
1786608501.000,22.429076948,114.209145983,31.9379,2
|
| 200 |
+
1786608502.000,22.429041723,114.209103040,32.1744,2
|
| 201 |
+
1786608503.000,22.429000774,114.209062776,31.9971,2
|
| 202 |
+
1786608504.000,22.428958429,114.209023235,32.0792,2
|
| 203 |
+
1786608505.000,22.428916615,114.208988450,32.2568,2
|
| 204 |
+
1786608506.000,22.428876293,114.208962492,32.1485,2
|
| 205 |
+
1786608507.000,22.428834623,114.208950272,32.4012,2
|
| 206 |
+
1786608508.000,22.428788254,114.208955328,32.2624,2
|
| 207 |
+
1786608509.000,22.428740790,114.208976681,32.2745,2
|
| 208 |
+
1786608510.000,22.428698694,114.209017165,32.3616,2
|
| 209 |
+
1786608511.000,22.428659207,114.209070905,32.2724,2
|
| 210 |
+
1786608512.000,22.428618266,114.209132357,32.2979,2
|
| 211 |
+
1786608513.000,22.428574736,114.209200338,32.6254,2
|
| 212 |
+
1786608514.000,22.428535955,114.209265573,33.1309,2
|
| 213 |
+
1786608515.000,22.428579526,114.209304401,35.2406,2
|
| 214 |
+
1786608516.000,22.428595035,114.209351551,50.1256,2
|
| 215 |
+
1786608517.000,22.428553281,114.209447244,58.4860,2
|
| 216 |
+
1786608518.000,22.428482533,114.209527630,47.1739,2
|
| 217 |
+
1786608519.000,22.428437933,114.209595953,40.7314,2
|
| 218 |
+
1786608520.000,22.428392609,114.209652478,34.6028,2
|
| 219 |
+
1786608521.000,22.428289671,114.209683562,24.2530,2
|
| 220 |
+
1786608522.000,22.428256146,114.209751769,21.0916,2
|
| 221 |
+
1786608523.000,22.428202483,114.209832507,19.9858,2
|
| 222 |
+
1786608524.000,22.428176973,114.209915437,18.8959,2
|
| 223 |
+
1786608525.000,22.428135175,114.209989821,19.5290,2
|
| 224 |
+
1786608526.000,22.428087393,114.210062836,19.6628,2
|
| 225 |
+
1786608527.000,22.428035877,114.210138070,19.8248,2
|
| 226 |
+
1786608528.000,22.427982645,114.210211239,19.7972,2
|
| 227 |
+
1786608529.000,22.427926799,114.210282033,20.0902,2
|
| 228 |
+
1786608530.000,22.427866953,114.210354127,20.2499,2
|
| 229 |
+
1786608531.000,22.427806881,114.210423977,19.9275,2
|
| 230 |
+
1786608532.000,22.427748946,114.210492851,20.0967,2
|
| 231 |
+
1786608533.000,22.427691728,114.210568394,20.2538,2
|
| 232 |
+
1786608534.000,22.427637212,114.210647652,20.3281,2
|
| 233 |
+
1786608535.000,22.427586116,114.210723210,20.3779,2
|
| 234 |
+
1786608536.000,22.427535812,114.210794751,20.4148,2
|
| 235 |
+
1786608537.000,22.427486214,114.210870226,20.5788,2
|
| 236 |
+
1786608538.000,22.427436281,114.210948075,20.5428,2
|
| 237 |
+
1786608539.000,22.427388798,114.211029420,20.6256,2
|
| 238 |
+
1786608540.000,22.427342944,114.211114600,20.6304,2
|
| 239 |
+
1786608541.000,22.427295663,114.211201418,20.6167,2
|
| 240 |
+
1786608542.000,22.427247983,114.211285799,20.6530,2
|
| 241 |
+
1786608543.000,22.427195967,114.211368755,20.8670,2
|
| 242 |
+
1786608544.000,22.427140569,114.211453634,20.9557,2
|
| 243 |
+
1786608545.000,22.427082926,114.211539417,20.8829,2
|
| 244 |
+
1786608546.000,22.427026407,114.211620149,20.9066,2
|
| 245 |
+
1786608547.000,22.426968335,114.211698054,20.8800,2
|
| 246 |
+
1786608548.000,22.426909415,114.211774228,21.0280,2
|
| 247 |
+
1786608549.000,22.426851916,114.211843551,21.1501,2
|
| 248 |
+
1786608550.000,22.426795058,114.211909567,21.2429,2
|
| 249 |
+
1786608551.000,22.426740166,114.211975470,21.4231,2
|
| 250 |
+
1786608552.000,22.426690043,114.212041312,21.3075,2
|
| 251 |
+
1786608553.000,22.426640978,114.212105346,21.3940,2
|
| 252 |
+
1786608554.000,22.426592223,114.212171872,20.9362,2
|
| 253 |
+
1786608555.000,22.426543624,114.212239507,20.5499,2
|
| 254 |
+
1786608556.000,22.426494286,114.212308851,20.4238,2
|
| 255 |
+
1786608557.000,22.426443075,114.212382887,20.1302,2
|
| 256 |
+
1786608558.000,22.426391664,114.212461168,19.9623,2
|
| 257 |
+
1786608559.000,22.426340194,114.212542051,19.8361,2
|
| 258 |
+
1786608560.000,22.426287823,114.212623242,19.7239,2
|
| 259 |
+
1786608561.000,22.426235755,114.212704743,19.5333,2
|
| 260 |
+
1786608562.000,22.426186301,114.212782797,19.0761,2
|
| 261 |
+
1786608563.000,22.426135678,114.212850084,19.4595,2
|
| 262 |
+
1786608564.000,22.426086250,114.212909966,19.7828,2
|
| 263 |
+
1786608565.000,22.426036093,114.212963629,19.7857,2
|
| 264 |
+
1786608566.000,22.425984458,114.213015546,21.8032,2
|
| 265 |
+
1786608567.000,22.425930255,114.213078058,21.4608,2
|
| 266 |
+
1786608568.000,22.425867231,114.213135306,21.9168,2
|
| 267 |
+
1786608569.000,22.425798709,114.213193188,21.9780,2
|
| 268 |
+
1786608570.000,22.425729577,114.213246129,21.6818,2
|
| 269 |
+
1786608571.000,22.425663015,114.213296456,21.5107,2
|
| 270 |
+
1786608572.000,22.425598272,114.213341132,21.4627,2
|
| 271 |
+
1786608573.000,22.425537247,114.213388099,21.8035,2
|
| 272 |
+
1786608574.000,22.425472255,114.213428902,20.8047,2
|
| 273 |
+
1786608575.000,22.425400137,114.213478522,14.2185,2
|
| 274 |
+
1786608576.000,22.425344232,114.213501082,11.8574,2
|
| 275 |
+
1786608577.000,22.425289020,114.213512258,18.0416,2
|
| 276 |
+
1786608578.000,22.425235031,114.213521355,18.7570,2
|
| 277 |
+
1786608579.000,22.425178507,114.213538728,15.2569,2
|
| 278 |
+
1786608580.000,22.425124582,114.213550665,13.0549,2
|
| 279 |
+
1786608581.000,22.425066302,114.213550832,13.0377,2
|
| 280 |
+
1786608582.000,22.425016308,114.213557338,12.8467,2
|
| 281 |
+
1786608583.000,22.424965459,114.213537814,16.4115,2
|
| 282 |
+
1786608584.000,22.424911505,114.213520933,15.9928,2
|
| 283 |
+
1786608585.000,22.424863987,114.213504719,16.1836,2
|
| 284 |
+
1786608586.000,22.424823580,114.213491480,16.0430,2
|
| 285 |
+
1786608587.000,22.424788757,114.213480824,16.1234,2
|
| 286 |
+
1786608588.000,22.424747975,114.213473050,16.2796,2
|
| 287 |
+
1786608589.000,22.424699661,114.213468183,16.3074,2
|
| 288 |
+
1786608590.000,22.424642175,114.213460994,15.9233,2
|
| 289 |
+
1786608591.000,22.424590530,114.213449453,15.8685,2
|
| 290 |
+
1786608592.000,22.424548555,114.213424200,15.8039,2
|
| 291 |
+
1786608593.000,22.424522180,114.213388545,14.7065,2
|
| 292 |
+
1786608594.000,22.424511974,114.213343853,14.9535,2
|
| 293 |
+
1786608595.000,22.424519577,114.213294025,14.8667,2
|
| 294 |
+
1786608596.000,22.424545610,114.213242150,14.5236,2
|
| 295 |
+
1786608597.000,22.424575072,114.213184708,14.7182,2
|
| 296 |
+
1786608598.000,22.424597093,114.213118309,14.5431,2
|
| 297 |
+
1786608599.000,22.424614434,114.213043001,14.4416,2
|
| 298 |
+
1786608600.000,22.424629991,114.212960448,14.4282,2
|
| 299 |
+
1786608601.000,22.424644746,114.212878885,14.3476,2
|
| 300 |
+
1786608602.000,22.424659610,114.212796273,14.2357,2
|
| 301 |
+
1786608603.000,22.424676328,114.212710828,14.3541,2
|
| 302 |
+
1786608604.000,22.424694800,114.212625435,13.6028,2
|
| 303 |
+
1786608605.000,22.424716931,114.212540174,11.4285,2
|
| 304 |
+
1786608606.000,22.424740080,114.212451993,12.3399,2
|
| 305 |
+
1786608607.000,22.424759763,114.212357867,9.7502,2
|
| 306 |
+
1786608608.000,22.424850174,114.212250553,30.6134,2
|
| 307 |
+
1786608609.000,22.424889734,114.212210787,35.9752,2
|
| 308 |
+
1786608610.000,22.424930263,114.212129183,33.5077,2
|
| 309 |
+
1786608611.000,22.424968011,114.212051652,33.1273,2
|
| 310 |
+
1786608612.000,22.425003366,114.211978681,32.6370,2
|
| 311 |
+
1786608613.000,22.425041000,114.211913748,33.6034,2
|
| 312 |
+
1786608614.000,22.425075075,114.211851251,32.8528,2
|
| 313 |
+
1786608615.000,22.425103426,114.211789864,32.9446,2
|
| 314 |
+
1786608616.000,22.425120625,114.211729180,32.9106,2
|
| 315 |
+
1786608617.000,22.425136664,114.211674070,33.1092,2
|
| 316 |
+
1786608618.000,22.425162909,114.211630238,32.8516,2
|
| 317 |
+
1786608619.000,22.425196747,114.211585558,32.5798,2
|
| 318 |
+
1786608620.000,22.425238243,114.211533580,33.2855,2
|
| 319 |
+
1786608621.000,22.425274580,114.211472431,33.7781,2
|
| 320 |
+
1786608622.000,22.425310777,114.211406282,33.2465,2
|
| 321 |
+
1786608623.000,22.425346021,114.211333299,33.1823,2
|
| 322 |
+
1786608624.000,22.425380354,114.211256681,32.6738,2
|
| 323 |
+
1786608625.000,22.425418880,114.211181705,32.6246,2
|
| 324 |
+
1786608626.000,22.425461584,114.211110894,32.8275,2
|
| 325 |
+
1786608627.000,22.425504885,114.211044037,33.0946,2
|
| 326 |
+
1786608628.000,22.425547804,114.210981885,32.7104,2
|
| 327 |
+
1786608629.000,22.425590102,114.210920235,32.6496,2
|
| 328 |
+
1786608630.000,22.425633726,114.210860522,32.8215,2
|
| 329 |
+
1786608631.000,22.425672594,114.210798505,31.7653,2
|
| 330 |
+
1786608632.000,22.425713418,114.210736175,28.5264,2
|
| 331 |
+
1786608633.000,22.425766337,114.210689504,33.2260,2
|
| 332 |
+
1786608634.000,22.425801059,114.210625314,35.6755,2
|
| 333 |
+
1786608635.000,22.425837290,114.210556569,36.2692,2
|
| 334 |
+
1786608636.000,22.425876871,114.210486165,37.7403,2
|
| 335 |
+
1786608637.000,22.425924749,114.210421012,43.0879,2
|
| 336 |
+
1786608638.000,22.425977472,114.210356584,40.6792,2
|
| 337 |
+
1786608639.000,22.426012093,114.210270575,45.7061,2
|
| 338 |
+
1786608640.000,22.426055019,114.210194010,51.2410,2
|
| 339 |
+
1786608641.000,22.426106661,114.210133991,47.6448,2
|
| 340 |
+
1786608642.000,22.426161262,114.210078843,44.9546,2
|
| 341 |
+
1786608643.000,22.426209289,114.210019627,44.2858,2
|
| 342 |
+
1786608644.000,22.426245016,114.209945302,45.9558,2
|
| 343 |
+
1786608645.000,22.426288329,114.209884947,47.4088,2
|
| 344 |
+
1786608646.000,22.426315867,114.209813566,51.4641,2
|
| 345 |
+
1786608647.000,22.426360626,114.209769279,48.7796,2
|
| 346 |
+
1786608648.000,22.426400862,114.209718437,48.6258,2
|
| 347 |
+
1786608649.000,22.426442947,114.209663857,48.5217,2
|
| 348 |
+
1786608650.000,22.426488151,114.209605944,49.7480,2
|
| 349 |
+
1786608651.000,22.426524382,114.209536545,49.7377,2
|
| 350 |
+
1786608652.000,22.426559644,114.209467262,48.1010,2
|
| 351 |
+
1786608653.000,22.426604105,114.209406561,49.0505,2
|
| 352 |
+
1786608654.000,22.426648988,114.209344375,49.2328,2
|
| 353 |
+
1786608655.000,22.426714031,114.209308017,48.2215,4
|
| 354 |
+
1786608656.000,22.426813448,114.209235914,45.1313,2
|
| 355 |
+
1786608657.000,22.426806883,114.209198750,46.4992,2
|
| 356 |
+
1786608658.000,22.426850103,114.209136302,46.8463,2
|
| 357 |
+
1786608659.000,22.426894175,114.209087702,48.2930,2
|
| 358 |
+
1786608660.000,22.426932319,114.209035177,48.2583,2
|
| 359 |
+
1786608661.000,22.426967221,114.208987152,48.2904,2
|
| 360 |
+
1786608662.000,22.427006278,114.208952059,50.8027,2
|
| 361 |
+
1786608663.000,22.427039814,114.208913718,51.6937,2
|
| 362 |
+
1786608664.000,22.427076155,114.208880781,53.5945,2
|
| 363 |
+
1786608665.000,22.427121458,114.208848088,55.2431,2
|
| 364 |
+
1786608666.000,22.427165284,114.208806689,48.1040,2
|
| 365 |
+
1786608667.000,22.427221241,114.208773671,51.6111,2
|
| 366 |
+
1786608668.000,22.427281490,114.208747962,52.1113,2
|
| 367 |
+
1786608669.000,22.427344879,114.208718836,52.4776,2
|
| 368 |
+
1786608670.000,22.427409383,114.208695524,53.1946,2
|
| 369 |
+
1786608671.000,22.427473662,114.208684814,54.3134,2
|
| 370 |
+
1786608672.000,22.427538164,114.208671621,54.6535,2
|
| 371 |
+
1786608673.000,22.427592554,114.208666554,50.5736,2
|
| 372 |
+
1786608674.000,22.427670034,114.208658259,53.4322,2
|
| 373 |
+
1786608675.000,22.427735341,114.208647391,53.4781,2
|
| 374 |
+
1786608676.000,22.427797840,114.208631302,53.1195,2
|
| 375 |
+
1786608677.000,22.427855553,114.208612136,54.1868,2
|
| 376 |
+
1786608678.000,22.427910291,114.208588160,54.0100,2
|
| 377 |
+
1786608679.000,22.427962000,114.208557880,55.3561,2
|
| 378 |
+
1786608680.000,22.428004598,114.208525156,55.6580,2
|
| 379 |
+
1786608681.000,22.428046822,114.208484282,57.6209,2
|
| 380 |
+
1786608682.000,22.428077778,114.208450739,56.5911,2
|
demos/hkstp_s_02/results/vins/run.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"mode": "vins",
|
| 3 |
+
"rate": 1.0,
|
| 4 |
+
"poses": 1881,
|
| 5 |
+
"first_t": 1786608306.838941,
|
| 6 |
+
"last_t": 1786608682.841784,
|
| 7 |
+
"playback_complete": true
|
| 8 |
+
}
|
demos/hkstp_s_02/results/vins/trajectory.tum
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
demos/hkstp_s_02/scripts/build_ros.sh
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -eo pipefail
|
| 3 |
+
ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
| 4 |
+
cd "$ROOT"
|
| 5 |
+
mkdir -p third_party ros_ws/src
|
| 6 |
+
fetch() {
|
| 7 |
+
local name=$1 url=$2 revision=$3
|
| 8 |
+
if [ ! -d "third_party/$name/.git" ]; then
|
| 9 |
+
git clone "$url" "third_party/$name"
|
| 10 |
+
git -C "third_party/$name" checkout "$revision"
|
| 11 |
+
fi
|
| 12 |
+
test "$(git -C "third_party/$name" rev-parse HEAD)" = "$revision"
|
| 13 |
+
}
|
| 14 |
+
fetch VINS-Fusion https://github.com/HKUST-Aerial-Robotics/VINS-Fusion.git be55a937a57436548ddfb1bd324bc1e9a9e828e0
|
| 15 |
+
fetch FAST_LIO https://github.com/hku-mars/FAST_LIO.git 7cc4175de6f8ba2edf34bab02a42195b141027e9
|
| 16 |
+
fetch livox_ros_driver https://github.com/Livox-SDK/livox_ros_driver.git 3d240d5666129e1a3052e78ee8487a04b08fdda3
|
| 17 |
+
git -C third_party/FAST_LIO submodule update --init --recursive
|
| 18 |
+
for pair in 'VINS-Fusion vins_noetic.patch' 'FAST_LIO fastlio_build_order.patch'; do
|
| 19 |
+
read -r name patch <<< "$pair"
|
| 20 |
+
if git -C "third_party/$name" apply --check "$ROOT/patches/$patch" 2>/dev/null; then
|
| 21 |
+
git -C "third_party/$name" apply "$ROOT/patches/$patch"
|
| 22 |
+
else
|
| 23 |
+
git -C "third_party/$name" apply --reverse --check "$ROOT/patches/$patch"
|
| 24 |
+
fi
|
| 25 |
+
done
|
| 26 |
+
python3 - <<'PY'
|
| 27 |
+
from pathlib import Path
|
| 28 |
+
import shutil
|
| 29 |
+
w=Path.cwd();ws=w/'ros_ws/src'
|
| 30 |
+
for name in ['FAST_LIO','VINS-Fusion']:
|
| 31 |
+
p=ws/name
|
| 32 |
+
if not p.exists():p.symlink_to(w/'third_party'/name)
|
| 33 |
+
# FAST-LIO links against Livox message types even for a Velodyne-only run.
|
| 34 |
+
# Build the official message definitions without the hardware SDK/driver.
|
| 35 |
+
m=ws/'livox_ros_driver';m.mkdir(exist_ok=True)
|
| 36 |
+
shutil.copytree(w/'third_party/livox_ros_driver/livox_ros_driver/msg',m/'msg',dirs_exist_ok=True)
|
| 37 |
+
(m/'CMakeLists.txt').write_text('cmake_minimum_required(VERSION 3.0.2)\nproject(livox_ros_driver)\nfind_package(catkin REQUIRED COMPONENTS message_generation std_msgs)\nadd_message_files(FILES CustomPoint.msg CustomMsg.msg)\ngenerate_messages(DEPENDENCIES std_msgs)\ncatkin_package(CATKIN_DEPENDS message_runtime std_msgs)\n')
|
| 38 |
+
(m/'package.xml').write_text('<package format="2"><name>livox_ros_driver</name><version>0.0.1</version><description>Official Livox messages for offline FAST-LIO</description><maintainer email="darren.huang@polyu.edu.hk">UrbanV2X</maintainer><license>MIT</license><buildtool_depend>catkin</buildtool_depend><build_depend>message_generation</build_depend><exec_depend>message_runtime</exec_depend><depend>std_msgs</depend></package>')
|
| 39 |
+
PY
|
| 40 |
+
source /opt/ros/noetic/setup.bash
|
| 41 |
+
cd ros_ws
|
| 42 |
+
catkin_make -j4 -l4 '-DCATKIN_WHITELIST_PACKAGES=livox_ros_driver;fast_lio;camera_models;vins'
|
demos/hkstp_s_02/scripts/configure.py
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Generate algorithm configs from the published s_02 calibration."""
|
| 3 |
+
import argparse
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import numpy as np
|
| 6 |
+
import yaml
|
| 7 |
+
|
| 8 |
+
ap = argparse.ArgumentParser()
|
| 9 |
+
ap.add_argument('--data', type=Path, required=True)
|
| 10 |
+
ap.add_argument('--output', type=Path, required=True)
|
| 11 |
+
a = ap.parse_args()
|
| 12 |
+
a.output.mkdir(parents=True, exist_ok=True)
|
| 13 |
+
c = yaml.safe_load((a.data/'calib/Extrinsics/Camera-IMU/imu_to_cam2.yaml').read_text())
|
| 14 |
+
R = np.array(c['Rotation']).reshape(3, 3)
|
| 15 |
+
t = np.array(c['Translation'])
|
| 16 |
+
T = np.eye(4); T[:3,:3] = R.T; T[:3,3] = -R.T @ t
|
| 17 |
+
fx, fy, cx, cy = np.array(c['intrinsics']) / 2
|
| 18 |
+
k1,k2,p1,p2 = c['distortion_coeffs']
|
| 19 |
+
(a.output/'cam2.yaml').write_text(f'''%YAML:1.0
|
| 20 |
+
model_type: PINHOLE
|
| 21 |
+
camera_name: cam2
|
| 22 |
+
image_width: 1100
|
| 23 |
+
image_height: 870
|
| 24 |
+
distortion_parameters:
|
| 25 |
+
k1: {k1}
|
| 26 |
+
k2: {k2}
|
| 27 |
+
p1: {p1}
|
| 28 |
+
p2: {p2}
|
| 29 |
+
projection_parameters:
|
| 30 |
+
fx: {fx}
|
| 31 |
+
fy: {fy}
|
| 32 |
+
cx: {cx}
|
| 33 |
+
cy: {cy}
|
| 34 |
+
''')
|
| 35 |
+
(a.output/'vins.yaml').write_text(f'''%YAML:1.0
|
| 36 |
+
imu: 1
|
| 37 |
+
num_of_cam: 1
|
| 38 |
+
imu_topic: /imu/data
|
| 39 |
+
image0_topic: /cam2/image_raw
|
| 40 |
+
output_path: "{a.output.resolve()}/"
|
| 41 |
+
cam0_calib: cam2.yaml
|
| 42 |
+
image_width: 1100
|
| 43 |
+
image_height: 870
|
| 44 |
+
estimate_extrinsic: 0
|
| 45 |
+
body_T_cam0: !!opencv-matrix
|
| 46 |
+
rows: 4
|
| 47 |
+
cols: 4
|
| 48 |
+
dt: d
|
| 49 |
+
data: {T.ravel().tolist()}
|
| 50 |
+
multiple_thread: 1
|
| 51 |
+
max_cnt: 200
|
| 52 |
+
min_dist: 30
|
| 53 |
+
freq: 10
|
| 54 |
+
F_threshold: 1.0
|
| 55 |
+
show_track: 0
|
| 56 |
+
flow_back: 1
|
| 57 |
+
max_solver_time: 0.04
|
| 58 |
+
max_num_iterations: 8
|
| 59 |
+
keyframe_parallax: 10.0
|
| 60 |
+
acc_n: 0.08
|
| 61 |
+
gyr_n: 0.004
|
| 62 |
+
acc_w: 0.00004
|
| 63 |
+
gyr_w: 0.000002
|
| 64 |
+
g_norm: 9.787561
|
| 65 |
+
estimate_td: 0
|
| 66 |
+
td: {c['timeshift_cam_imu_by_dataset']['aug13']}
|
| 67 |
+
load_previous_pose_graph: 0
|
| 68 |
+
pose_graph_save_path: "{a.output.resolve()}/pose_graph/"
|
| 69 |
+
save_image: 0
|
| 70 |
+
''')
|
| 71 |
+
l = yaml.safe_load((a.data/'calib/Extrinsics/LiDAR-IMU/hdl32_to_imu.yaml').read_text())
|
| 72 |
+
cfg = dict(common=dict(lid_topic='/velodyne_points', imu_topic='/imu/data',time_sync_en=False,
|
| 73 |
+
time_offset_lidar_to_imu=l['time_offset_to_imu_s_by_dataset']['aug13']),
|
| 74 |
+
preprocess=dict(lidar_type=2,scan_line=32,scan_rate=10,timestamp_unit=0,blind=2.0),
|
| 75 |
+
mapping=dict(acc_cov=0.1,gyr_cov=0.1,b_acc_cov=0.0001,b_gyr_cov=0.0001,
|
| 76 |
+
fov_degree=360.0,det_range=100.0,extrinsic_est_en=False,
|
| 77 |
+
extrinsic_T=l['Translation'],extrinsic_R=l['Rotation']),
|
| 78 |
+
publish=dict(path_en=True,scan_publish_en=False,dense_publish_en=False,scan_bodyframe_pub_en=False),
|
| 79 |
+
pcd_save=dict(pcd_save_en=False,interval=-1),
|
| 80 |
+
feature_extract_enable=False,point_filter_num=3,max_iteration=3,
|
| 81 |
+
filter_size_surf=0.5,filter_size_map=0.5,cube_side_length=1000.0,runtime_pos_log_enable=False)
|
| 82 |
+
(a.output/'fastlio.yaml').write_text(yaml.safe_dump(cfg,sort_keys=False))
|
demos/hkstp_s_02/scripts/make_rosbag.py
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Adapt public PNG/BIN/CSV files to ROS1 inputs; do not modify source files."""
|
| 3 |
+
import argparse, csv, json
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import cv2
|
| 6 |
+
import numpy as np
|
| 7 |
+
import rosbag, rospy
|
| 8 |
+
from sensor_msgs.msg import Image, Imu, PointCloud2, PointField
|
| 9 |
+
|
| 10 |
+
ap=argparse.ArgumentParser()
|
| 11 |
+
ap.add_argument('--data',type=Path,required=True)
|
| 12 |
+
ap.add_argument('--output',type=Path,required=True)
|
| 13 |
+
ap.add_argument('--mode',choices=['vins','fastlio'],required=True)
|
| 14 |
+
a=ap.parse_args()
|
| 15 |
+
assert not a.output.exists(), 'Refusing to overwrite an input bag'
|
| 16 |
+
events=[]
|
| 17 |
+
with (a.data/'imu.csv').open() as f:
|
| 18 |
+
for row in csv.DictReader(f):events.append((int(row['t']),0,row))
|
| 19 |
+
directory='camera/cam2' if a.mode=='vins' else 'lidar/hdl32'
|
| 20 |
+
suffix='*.png' if a.mode=='vins' else '*.bin'
|
| 21 |
+
frames=sorted((a.data/directory).glob(suffix))
|
| 22 |
+
assert len(frames)==(3790 if a.mode=='vins' else 3787), len(frames)
|
| 23 |
+
events += [(int(p.stem),1,p) for p in frames]
|
| 24 |
+
events.sort(key=lambda x:(x[0],x[1]))
|
| 25 |
+
counts={'imu':0,'frames':0}
|
| 26 |
+
with rosbag.Bag(str(a.output),'w',compression='lz4') as bag:
|
| 27 |
+
for us,kind,obj in events:
|
| 28 |
+
stamp=rospy.Time(us//1000000,(us%1000000)*1000)
|
| 29 |
+
if kind==0:
|
| 30 |
+
m=Imu();m.header.frame_id='imu';m.orientation_covariance[0]=-1
|
| 31 |
+
m.angular_velocity.x=float(obj['wx']);m.angular_velocity.y=float(obj['wy']);m.angular_velocity.z=float(obj['wz'])
|
| 32 |
+
m.linear_acceleration.x=float(obj['ax']);m.linear_acceleration.y=float(obj['ay']);m.linear_acceleration.z=float(obj['az'])
|
| 33 |
+
topic='/imu/data';counts['imu']+=1
|
| 34 |
+
elif a.mode=='vins':
|
| 35 |
+
im=cv2.imread(str(obj),cv2.IMREAD_GRAYSCALE)
|
| 36 |
+
assert im.shape==(1740,2200)
|
| 37 |
+
im=cv2.resize(im,(1100,870),interpolation=cv2.INTER_AREA)
|
| 38 |
+
m=Image();m.header.frame_id='cam2';m.height=870;m.width=1100;m.encoding='mono8';m.is_bigendian=0;m.step=1100;m.data=im.tobytes()
|
| 39 |
+
topic='/cam2/image_raw';counts['frames']+=1
|
| 40 |
+
else:
|
| 41 |
+
points=np.fromfile(obj,dtype='<f4').reshape(-1,6)
|
| 42 |
+
assert np.all(points[:,4]==points[:,4].astype(np.uint16))
|
| 43 |
+
dt=np.dtype([('x','<f4'),('y','<f4'),('z','<f4'),('intensity','<f4'),('ring','<u2'),('time','<f4')])
|
| 44 |
+
packed=np.empty(len(points),dtype=dt)
|
| 45 |
+
for i,k in enumerate(['x','y','z','intensity','ring','time']):packed[k]=points[:,i]
|
| 46 |
+
m=PointCloud2();m.header.frame_id='hdl32';m.height=1;m.width=len(points);m.is_bigendian=False;m.is_dense=False
|
| 47 |
+
m.fields=[PointField(k,dt.fields[k][1],PointField.UINT16 if k=='ring' else PointField.FLOAT32,1) for k in dt.names]
|
| 48 |
+
m.point_step=dt.itemsize;m.row_step=m.point_step*m.width;m.data=packed.tobytes()
|
| 49 |
+
topic='/velodyne_points';counts['frames']+=1
|
| 50 |
+
m.header.stamp=stamp
|
| 51 |
+
bag.write(topic,m,stamp)
|
| 52 |
+
if kind and counts['frames']%500==0:print(counts,flush=True)
|
| 53 |
+
assert counts['imu']==151601,counts
|
| 54 |
+
a.output.with_suffix('.json').write_text(json.dumps(dict(mode=a.mode,counts=counts,first_us=events[0][0],last_us=events[-1][0],camera_preprocessing='grayscale and half-resolution; no crop or undistortion' if a.mode=='vins' else None),indent=2))
|
| 55 |
+
print(counts,flush=True)
|
demos/hkstp_s_02/scripts/record_odometry.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Record ROS odometry as TUM: t x y z qx qy qz qw."""
|
| 3 |
+
import argparse
|
| 4 |
+
import rospy
|
| 5 |
+
from nav_msgs.msg import Odometry
|
| 6 |
+
ap=argparse.ArgumentParser();ap.add_argument('--topic',required=True);ap.add_argument('--output',required=True)
|
| 7 |
+
a=ap.parse_args()
|
| 8 |
+
f=open(a.output,'x',buffering=1)
|
| 9 |
+
def receive(m):
|
| 10 |
+
p=m.pose.pose.position;q=m.pose.pose.orientation
|
| 11 |
+
f.write(' '.join(f'{v:.9f}' for v in [m.header.stamp.to_sec(),p.x,p.y,p.z,q.x,q.y,q.z,q.w])+'\n')
|
| 12 |
+
rospy.init_node('urbanv2x_trajectory_recorder',anonymous=True)
|
| 13 |
+
rospy.Subscriber(a.topic,Odometry,receive,queue_size=10000)
|
| 14 |
+
rospy.spin()
|
| 15 |
+
f.close()
|
demos/hkstp_s_02/scripts/run_ros_demo.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Run one isolated ROS master, estimator, recorder and bag player."""
|
| 3 |
+
import argparse,json,os,signal,subprocess,time,xmlrpc.client
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
ap=argparse.ArgumentParser()
|
| 6 |
+
ap.add_argument('--mode',choices=['vins','fastlio'],required=True)
|
| 7 |
+
ap.add_argument('--bag',type=Path,required=True)
|
| 8 |
+
ap.add_argument('--config',type=Path,required=True)
|
| 9 |
+
ap.add_argument('--output',type=Path,required=True)
|
| 10 |
+
ap.add_argument('--port',type=int,default=11531)
|
| 11 |
+
ap.add_argument('--rate',type=float,default=0.5)
|
| 12 |
+
a=ap.parse_args();a.output.mkdir(parents=True,exist_ok=True)
|
| 13 |
+
assert not (a.output/'trajectory.tum').exists()
|
| 14 |
+
env=os.environ.copy();env.update(ROS_MASTER_URI=f'http://127.0.0.1:{a.port}',ROS_HOME=str(a.output.resolve()/'ros_home'),OMP_NUM_THREADS='1',OPENBLAS_NUM_THREADS='1')
|
| 15 |
+
children=[];logs=[]
|
| 16 |
+
def start(cmd,name):
|
| 17 |
+
f=(a.output/(name+'.log')).open('w');logs.append(f)
|
| 18 |
+
p=subprocess.Popen(cmd,env=env,stdout=f,stderr=subprocess.STDOUT,start_new_session=True);children.append(p);return p
|
| 19 |
+
try:
|
| 20 |
+
master=start(['roscore','-p',str(a.port)],'roscore')
|
| 21 |
+
for _ in range(100):
|
| 22 |
+
try:
|
| 23 |
+
xmlrpc.client.ServerProxy(env['ROS_MASTER_URI']).getPid('/demo');break
|
| 24 |
+
except Exception:time.sleep(.1)
|
| 25 |
+
else:raise RuntimeError('ROS master did not start')
|
| 26 |
+
subprocess.run(['rosparam','set','/use_sim_time','true'],env=env,check=True)
|
| 27 |
+
if a.mode=='fastlio':
|
| 28 |
+
subprocess.run(['rosparam','load',str(a.config.resolve())],env=env,check=True)
|
| 29 |
+
estimator=start(['rosrun','fast_lio','fastlio_mapping'],'estimator');topic='/Odometry'
|
| 30 |
+
else:
|
| 31 |
+
estimator=start(['rosrun','vins','vins_node',str(a.config.resolve())],'estimator');topic='/vins_estimator/odometry'
|
| 32 |
+
recorder=start(['python3',str(Path(__file__).with_name('record_odometry.py')),'--topic',topic,'--output',str(a.output/'trajectory.tum')],'recorder')
|
| 33 |
+
time.sleep(5)
|
| 34 |
+
if estimator.poll() is not None:raise RuntimeError('Estimator exited during startup')
|
| 35 |
+
player=start(['rosbag','play','--clock','--rate',str(a.rate),'--delay','2',str(a.bag.resolve())],'playback')
|
| 36 |
+
while player.poll() is None:
|
| 37 |
+
if estimator.poll() is not None:raise RuntimeError('Estimator exited during playback')
|
| 38 |
+
time.sleep(2)
|
| 39 |
+
assert player.returncode==0,player.returncode
|
| 40 |
+
# Allow asynchronous estimation to drain; require the trajectory to stop growing.
|
| 41 |
+
last=-1;stable=0
|
| 42 |
+
for _ in range(90):
|
| 43 |
+
time.sleep(2)
|
| 44 |
+
p=a.output/'trajectory.tum';size=p.stat().st_size if p.exists() else 0
|
| 45 |
+
stable=stable+1 if size==last else 0;last=size
|
| 46 |
+
if stable>=10:break
|
| 47 |
+
rows=(a.output/'trajectory.tum').read_text().splitlines()
|
| 48 |
+
assert len(rows)>10,'No usable trajectory; inspect estimator.log'
|
| 49 |
+
(a.output/'run.json').write_text(json.dumps(dict(mode=a.mode,rate=a.rate,poses=len(rows),first_t=float(rows[0].split()[0]),last_t=float(rows[-1].split()[0]),playback_complete=True),indent=2))
|
| 50 |
+
print((a.output/'run.json').read_text())
|
| 51 |
+
finally:
|
| 52 |
+
for p in reversed(children):
|
| 53 |
+
if p.poll() is None:
|
| 54 |
+
os.killpg(p.pid,signal.SIGINT)
|
| 55 |
+
try:p.wait(timeout=10)
|
| 56 |
+
except subprocess.TimeoutExpired:os.killpg(p.pid,signal.SIGTERM)
|
| 57 |
+
for f in logs:f.close()
|
demos/hkstp_s_02/scripts/run_rtk.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -eo pipefail
|
| 3 |
+
ROOT=$(cd "$(dirname "$0")/.." && pwd)
|
| 4 |
+
cd "$ROOT"
|
| 5 |
+
# Base observations and navigation must be obtained by the user from SatRef.
|
| 6 |
+
# BASE_OBS points to a RINEX observation file; remaining arguments are NAV files.
|
| 7 |
+
BASE_OBS=${1:?Usage: bash scripts/run_rtk.sh BASE_OBS NAV_FILE...}
|
| 8 |
+
shift
|
| 9 |
+
if [ "$#" -eq 0 ]; then echo 'Provide applicable base-station navigation files.' >&2; exit 2; fi
|
| 10 |
+
if [ ! -d third_party/RTKLIB-demo5 ]; then
|
| 11 |
+
git clone https://github.com/rtklibexplorer/RTKLIB.git third_party/RTKLIB-demo5
|
| 12 |
+
git -C third_party/RTKLIB-demo5 checkout 75a2e56275485b21a67bd35bc94bbeb8936e1a74
|
| 13 |
+
fi
|
| 14 |
+
test "$(git -C third_party/RTKLIB-demo5 rev-parse HEAD)" = 75a2e56275485b21a67bd35bc94bbeb8936e1a74
|
| 15 |
+
make -C third_party/RTKLIB-demo5/app/consapp/rnx2rtkp/gcc -j4
|
| 16 |
+
mkdir -p results
|
| 17 |
+
third_party/RTKLIB-demo5/app/consapp/rnx2rtkp/gcc/rnx2rtkp \
|
| 18 |
+
-k configs/rtklib_demo5.conf -o results/rtklib_demo5.pos \
|
| 19 |
+
data/gnss/f9p/observations.obs "$BASE_OBS" "$@" data/gnss/f9p/broadcast.nav
|
demos/hkstp_s_02/scripts/summarize.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Summarize executed demos and plot trajectories, without claiming benchmark accuracy."""
|
| 3 |
+
import json,datetime,collections
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import numpy as np
|
| 6 |
+
import matplotlib
|
| 7 |
+
matplotlib.use('Agg')
|
| 8 |
+
import matplotlib.pyplot as plt
|
| 9 |
+
|
| 10 |
+
w=Path(__file__).resolve().parents[1]
|
| 11 |
+
ref=np.genfromtxt(w/'data/reference_original.csv',delimiter=',',names=True)
|
| 12 |
+
times=ref['timestamp_unix_utc']
|
| 13 |
+
ref_xy=np.column_stack([ref['east_m'],ref['north_m']])
|
| 14 |
+
summary={}
|
| 15 |
+
fig,axes=plt.subplots(1,3,figsize=(15,5),constrained_layout=True)
|
| 16 |
+
for ax in axes:
|
| 17 |
+
ax.set_aspect('equal',adjustable='datalim');ax.grid(alpha=.2)
|
| 18 |
+
ax.set_xlabel('East / aligned x (m)');ax.set_ylabel('North / aligned y (m)')
|
| 19 |
+
|
| 20 |
+
def ecef(lat,lon,h):
|
| 21 |
+
lat=np.radians(lat);lon=np.radians(lon);a=6378137.;e2=6.69437999014e-3
|
| 22 |
+
n=a/np.sqrt(1-e2*np.sin(lat)**2)
|
| 23 |
+
return np.column_stack([(n+h)*np.cos(lat)*np.cos(lon),(n+h)*np.cos(lat)*np.sin(lon),(n*(1-e2)+h)*np.sin(lat)])
|
| 24 |
+
records=[line.split() for line in (w/'results/rtklib_demo5.pos').read_text().splitlines() if line and not line.startswith('%')]
|
| 25 |
+
t=np.array([datetime.datetime.strptime(' '.join(r[:2]),'%Y/%m/%d %H:%M:%S.%f').replace(tzinfo=datetime.timezone.utc).timestamp() for r in records])
|
| 26 |
+
llh=np.array([[float(v) for v in r[2:5]] for r in records]);quality=[int(r[5]) for r in records]
|
| 27 |
+
lat0=ref['latitude_deg'][0];lon0=ref['longitude_deg'][0];h0=ref['ellipsoid_height_m'][0]
|
| 28 |
+
lat,lon=np.radians([lat0,lon0]);rotation=np.array([[-np.sin(lon),np.cos(lon),0],[-np.sin(lat)*np.cos(lon),-np.sin(lat)*np.sin(lon),np.cos(lat)]])
|
| 29 |
+
xy=(ecef(llh[:,0],llh[:,1],llh[:,2])-ecef(np.array([lat0]),np.array([lon0]),np.array([h0])))@rotation.T+ref_xy[0]
|
| 30 |
+
axes[0].plot(*ref_xy.T,color='#adb5bd',lw=2,label='Reference (original point)')
|
| 31 |
+
axes[0].plot(*xy.T,color='#147d92',lw=1.4,label='RTKLIB demo5')
|
| 32 |
+
axes[0].set_title('GNSS: RTKLIB demo5\nGeographic coordinates; no fitted alignment')
|
| 33 |
+
axes[0].legend(fontsize=8)
|
| 34 |
+
summary['rtklib']=dict(solutions=len(records),quality_counts=dict(collections.Counter(quality)),first_utc=float(t[0]),last_utc=float(t[-1]),fixed_solutions=quality.count(1))
|
| 35 |
+
(w/'results/rtklib_track.csv').write_text('timestamp_unix_utc,latitude_deg,longitude_deg,height_m,quality\n'+''.join(f'{ts:.3f},{lat:.9f},{lon:.9f},{height:.4f},{q}\n' for ts,(lat,lon,height),q in zip(t,llh,quality)))
|
| 36 |
+
|
| 37 |
+
for ax,mode,label,color in zip(axes[1:],['vins','fastlio'],['VINS-Fusion (mono + IMU)','FAST-LIO2 (HDL-32E + IMU)'],['#dc6b27','#685ac5']):
|
| 38 |
+
p=np.loadtxt(w/f'results/{mode}/trajectory.tum',ndmin=2)
|
| 39 |
+
assert p.shape[1]==8 and np.isfinite(p).all(),mode
|
| 40 |
+
assert np.all(np.diff(p[:,0])>0),mode+' timestamps'
|
| 41 |
+
assert np.all(np.abs(np.linalg.norm(p[:,4:8],axis=1)-1)<1e-3),mode+' quaternions'
|
| 42 |
+
good=(p[:,0]>=times[0])&(p[:,0]<=times[-1]);pp=p[good]
|
| 43 |
+
target=np.column_stack([np.interp(pp[:,0],times,ref_xy[:,i]) for i in range(2)])
|
| 44 |
+
source=pp[:,1:3];mean_s=source.mean(axis=0);mean_t=target.mean(axis=0)
|
| 45 |
+
u,s,vt=np.linalg.svd((source-mean_s).T@(target-mean_t));D=np.diag([1.,np.linalg.det(u@vt)])
|
| 46 |
+
rot=u@D@vt;aligned=(source-mean_s)@rot+mean_t
|
| 47 |
+
ax.plot(*ref_xy.T,color='#adb5bd',lw=2,label='Reference (original point)')
|
| 48 |
+
ax.plot(*aligned.T,color=color,lw=1.3,label=label)
|
| 49 |
+
ax.set_title(label+'\n2D rigid alignment for visualization; no scale fit')
|
| 50 |
+
ax.legend(fontsize=8)
|
| 51 |
+
summary[mode]=dict(poses=len(p),first_utc=float(p[0,0]),last_utc=float(p[-1,0]),span_s=float(p[-1,0]-p[0,0]),path_length_3d_m=float(np.linalg.norm(np.diff(p[:,1:4],axis=0),axis=1).sum()),finite=True,strictly_increasing_timestamps=True,unit_quaternions=True)
|
| 52 |
+
fig.suptitle('UrbanV2X hkstp_s_02 · Executed getting-started examples',fontsize=15)
|
| 53 |
+
(w/'assets').mkdir(exist_ok=True);fig.savefig(w/'assets/s02_demo_trajectories.png',dpi=160)
|
| 54 |
+
summary['notes']='Visualization, not an accuracy benchmark. Reference-point lever arms are not corrected. VIO/LIO are rigidly aligned in 2D for plotting without scaling. Inspect trajectory coverage and estimator logs.'
|
| 55 |
+
(w/'results/demo_summary.json').write_text(json.dumps(summary,indent=2))
|
| 56 |
+
print(json.dumps(summary,indent=2))
|
docs/GETTING_STARTED.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Getting Started with UrbanV2X
|
| 2 |
+
|
| 3 |
+
Start with **`hkstp_s_02`**, a 379-second HKSTP sequence. These examples use its released files and calibration: RTKLIB demo5 for GNSS, VINS-Fusion in monocular–inertial mode with cam2, and FAST-LIO2 with HDL-32E. The supplied adapter creates local ROS bags from PNG/BIN/CSV files; it does not change the source release.
|
| 4 |
+
|
| 5 |
+
## 1. Download only the inputs you need
|
| 6 |
+
|
| 7 |
+
Install `huggingface_hub` in your download environment, then run:
|
| 8 |
+
|
| 9 |
+
```python
|
| 10 |
+
from huggingface_hub import snapshot_download
|
| 11 |
+
|
| 12 |
+
snapshot_download(
|
| 13 |
+
repo_id="polyutaslab/UrbanV2X",
|
| 14 |
+
repo_type="dataset",
|
| 15 |
+
local_dir="UrbanV2X",
|
| 16 |
+
allow_patterns=[
|
| 17 |
+
"demos/hkstp_s_02/**",
|
| 18 |
+
"hkstp_s_02/calib/**",
|
| 19 |
+
"hkstp_s_02/imu.csv",
|
| 20 |
+
"hkstp_s_02/reference_original.csv",
|
| 21 |
+
"hkstp_s_02/gnss/f9p/**", # RTKLIB
|
| 22 |
+
"hkstp_s_02/camera/cam2/*.png", # VINS-Fusion
|
| 23 |
+
"hkstp_s_02/lidar/hdl32/*.bin", # FAST-LIO2
|
| 24 |
+
],
|
| 25 |
+
)
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Remove the camera or LiDAR pattern if you only need GNSS. Then prepare the example directory:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
cd UrbanV2X/demos/hkstp_s_02
|
| 32 |
+
ln -s ../../hkstp_s_02 data
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
The examples below run from this directory. Use a Python environment compatible with ROS Noetic for the ROS scripts; the download environment can be separate.
|
| 36 |
+
|
| 37 |
+
## 2. GNSS: RTKLIB demo5
|
| 38 |
+
|
| 39 |
+
The rover input is `gnss/f9p/observations.obs`, with `broadcast.nav`. Obtain **HKST** base observations and applicable navigation files for **13 August 2026, 08:00–09:00 UTC** directly from [Hong Kong Lands Department SatRef](https://www.geodetic.gov.hk/en/rinex/downv.aspx). Follow the [provider's usage terms](../hkstp_s_02/gnss/hkst/README.md); the base data are not included in this repository.
|
| 40 |
+
|
| 41 |
+
With Git, a C compiler and Make installed:
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
bash scripts/run_rtk.sh /path/to/hkst-observations.obs /path/to/navigation-files/*
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
The script builds the pinned **RTKLIB demo5 b34L** revision and uses `configs/rtklib_demo5.conf`. This is dual-frequency kinematic post-processing with combined forward/backward solutions, a 15° elevation mask, base coordinates from the RINEX header, and UTC output. Results are written to `results/rtklib_demo5.pos`.
|
| 48 |
+
|
| 49 |
+
Check the quality column rather than assuming a fixed RTK solution. The tested run produced **379 solutions: 376 float, 3 DGPS, and no fixed solutions**. This example demonstrates data ingestion and processing, not a claim of centimetre-level accuracy.
|
| 50 |
+
|
| 51 |
+
Upstream: [RTKLIB demo5](https://github.com/rtklibexplorer/RTKLIB).
|
| 52 |
+
|
| 53 |
+
## 3. Prepare the ROS examples
|
| 54 |
+
|
| 55 |
+
The tested environment is Ubuntu 20.04, ROS Noetic, OpenCV 4.2 and Ceres 1.14. With ROS Noetic configured, install the required development packages:
|
| 56 |
+
|
| 57 |
+
```bash
|
| 58 |
+
sudo apt-get install build-essential cmake git libceres-dev \
|
| 59 |
+
python3-numpy python3-opencv python3-yaml \
|
| 60 |
+
ros-noetic-rosbag ros-noetic-cv-bridge ros-noetic-image-transport \
|
| 61 |
+
ros-noetic-pcl-ros ros-noetic-tf ros-noetic-eigen-conversions
|
| 62 |
+
bash scripts/build_ros.sh
|
| 63 |
+
source /opt/ros/noetic/setup.bash
|
| 64 |
+
source ros_ws/devel/setup.bash
|
| 65 |
+
python3 scripts/configure.py --data data --output configs
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
The build script pins upstream revisions and applies the supplied OpenCV/Noetic and build-order compatibility patches. The estimator algorithms are unchanged. For the Velodyne-only FAST-LIO example, it builds the official Livox message definitions without the hardware driver.
|
| 69 |
+
|
| 70 |
+
## 4. Visual–inertial odometry: VINS-Fusion
|
| 71 |
+
|
| 72 |
+
```bash
|
| 73 |
+
python3 scripts/make_rosbag.py --data data --mode vins --output vins_input.bag
|
| 74 |
+
python3 scripts/run_ros_demo.py --mode vins --bag vins_input.bag \
|
| 75 |
+
--config configs/vins.yaml --output results/vins --port 11531 --rate 1
|
| 76 |
+
```
|
| 77 |
+
|
| 78 |
+
The adapter uses all 3,790 cam2 images and 151,601 IMU samples. Images become grayscale at 1100 × 870 for this demo, with matching half-scale intrinsics; they are not cropped or undistorted. The published `imu_to_cam2` transform is inverted to obtain VINS's `body_T_cam0`. The `aug13` camera–IMU offset is applied through `td`. Extrinsics and time offset are held fixed; no loop-closure node is launched.
|
| 79 |
+
|
| 80 |
+
The output `results/vins/trajectory.tum` has columns `t x y z qx qy qz qw`. Logs and `run.json` record execution and trajectory coverage. Use a fresh output directory for a rerun.
|
| 81 |
+
|
| 82 |
+
Upstream: [VINS-Fusion](https://github.com/HKUST-Aerial-Robotics/VINS-Fusion).
|
| 83 |
+
|
| 84 |
+
## 5. LiDAR–inertial odometry: FAST-LIO2
|
| 85 |
+
|
| 86 |
+
```bash
|
| 87 |
+
python3 scripts/make_rosbag.py --data data --mode fastlio --output fastlio_input.bag
|
| 88 |
+
python3 scripts/run_ros_demo.py --mode fastlio --bag fastlio_input.bag \
|
| 89 |
+
--config configs/fastlio.yaml --output results/fastlio --port 11532 --rate 1
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
The adapter uses all 3,787 HDL-32E scans and 151,601 IMU samples. It maps the six BIN columns to PointCloud2 fields `x, y, z, intensity, ring, time`, retaining per-point offsets in seconds. FAST-LIO is configured for a 32-channel Velodyne and `timestamp_unit: 0`. It uses the published LiDAR-to-IMU rotation, translation and `aug13` time offset, with online extrinsic estimation disabled. Standard FAST-LIO downsampling operates inside the estimator; the source point clouds remain unchanged.
|
| 93 |
+
|
| 94 |
+
The output is `results/fastlio/trajectory.tum`. Check `run.json` and `estimator.log` before using a trajectory. Lower `--rate` if your machine cannot keep up with playback.
|
| 95 |
+
|
| 96 |
+
Upstream: [FAST-LIO2](https://github.com/hku-mars/FAST_LIO).
|
| 97 |
+
|
| 98 |
+
## Executed example results
|
| 99 |
+
|
| 100 |
+
The complete released input streams were replayed at 1× speed. The table reports output coverage after estimator initialization; it is not an accuracy ranking.
|
| 101 |
+
|
| 102 |
+
| Example | Outputs | UTC output interval on 2026-08-13 |
|
| 103 |
+
|---|---:|---|
|
| 104 |
+
| RTKLIB demo5 b34L | 379 solutions: 376 float, 3 DGPS, 0 fixed | 08:05:04.000–08:11:22.000 |
|
| 105 |
+
| VINS-Fusion, cam2 + IMU | 1,881 poses | 08:05:06.839–08:11:22.842 |
|
| 106 |
+
| FAST-LIO2, HDL-32E + IMU | 3,784 poses | 08:05:04.330–08:11:22.955 |
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
|
| 110 |
+
The GNSS plot uses geographic coordinates without fitted alignment. VINS and FAST-LIO are aligned to the reference in 2D by rotation and translation only for visualization; no scale is fitted. VINS shows visible drift in this run. Reference-point lever arms have not been corrected, so these plots are not a substitute for a carefully specified accuracy evaluation.
|
| 111 |
+
|
| 112 |
+
Download [VINS trajectory](../demos/hkstp_s_02/results/vins/trajectory.tum), [FAST-LIO trajectory](../demos/hkstp_s_02/results/fastlio/trajectory.tum), or [GNSS solution coordinates](../demos/hkstp_s_02/results/rtklib_track.csv). The [summary](../demos/hkstp_s_02/results/demo_summary.json) and [version record](../demos/hkstp_s_02/results/provenance.json) accompany the runs. VIO/LIO trajectories passed finite-value, strictly increasing timestamp, and unit-quaternion checks. Output cadence and initialization mean pose counts differ from input frame counts.
|
| 113 |
+
|
| 114 |
+
## Timing and evaluation
|
| 115 |
+
|
| 116 |
+
- PNG and BIN filenames are integer UTC microseconds. The adapter uses these timestamps; IMU CSV timestamps use the same unit.
|
| 117 |
+
- Do not subtract a GPS–UTC offset from camera or LiDAR filenames. RINEX has its own declared time system.
|
| 118 |
+
- `reference_original.csv` retains the original GNSS/INS reference point and attitude convention. It is not automatically the IMU-centre trajectory produced by VINS or FAST-LIO.
|
| 119 |
+
- Record initialization coverage, time alignment, lever arms, coordinate transforms and any trajectory alignment when reporting accuracy. Successful playback alone is not an accuracy benchmark.
|
| 120 |
+
|
| 121 |
+
For cooperative experiments, download `roadside/rsi2_a/lidar/*.pcd` and `roadside/rsi2_b/lidar/*.pcd`. Their filenames use bag-record UTC microseconds, while point timestamps remain on the native device clocks; see the [roadside notes](../hkstp_s_02/roadside/README.md).
|