UrbanV2X-Viewer / ALIGNMENT.md
darrenwongf's picture
Show vehicle and lamp-pole sensor models in cooperative scene
2480903 verified
|
Raw History Blame Contribute Delete
3.95 kB

Common-coordinate preview for hkstp_s_02

The browser maps the five preview clouds into one local East–North–Up (ENU) coordinate frame, in metres. This is an illustrative cooperative-sensing preview; it is not a claim of accepted survey-grade calibration or hardware synchronization.

Roadside poses

The anchor is WGS84 latitude 22.424549180520735°, longitude 114.21351706021711°, ellipsoidal altitude 9.414061702787876 m. Each roadside transform is p_ENU = R_ENU_sensor p_sensor + t_ENU. Its matrices and translations are included per sample in manifest.json. Source files are hkstp_2a_lla_attitude.yaml and hkstp_2b_lla_attitude.yaml from the project's roadside public-calibration export. Both source files have refinement_stable: false and quality_status: needs_review; those flags have not been changed.

Onboard pose

The closest 100 Hz epoch from the released hkstp_s_02 original reference trajectory supplies position and roll, pitch, heading at the onboard LiDAR file timestamp. Its ENU origin agrees with the roadside anchor. The display rotation follows the prior point-cloud alignment experiment:

R_ENU_lidar = M_NED_to_ENU Rz(heading) Ry(pitch) Rx(roll) diag(1,-1,-1) Rz(-90deg).

The final -90° mounting-yaw correction was empirically derived in that experiment, not taken from the released LiDAR–IMU calibration. The original reference position is used without an independently verified LiDAR lever arm. This display transform must not replace the dataset's calibration files. No per-frame ICP or whole-trajectory fit is applied.

Checks and limits

At preview samples +50 s and +60 s, roadside-to-onboard nearest-neighbour median distances within a 35 m horizontal vehicle radius were approximately 0.74/0.96 m (2a/2b) and 0.82/1.23 m. These diagnostics use downsampled clouds, include dynamic objects and partial overlap, and are not calibration accuracy measurements. Visible residual offsets remain. A return outside roadside coverage is not evidence of a missing stream.

The shared slider uses camera 2 file time. Each cloud is the nearest file within 150 ms. Onboard file time represents its first point; roadside file time represents bag-record UTC. Native device time has not been corrected. Dynamic objects can therefore appear displaced. Original sensor files remain unchanged.

Preview clouds are voxel-filtered at 0.15 m and capped at 24,000 points per sensor. Frames are sampled about every five seconds; playback is a preview, not real-time recording speed.

Display names and additional onboard LiDARs

The viewer names the roadside sensors rsi_1 (previously 2a, source directory rsi2_a) and rsi_2 (previously 2b, source directory rsi2_b). Original dataset paths remain valid.

Onboard HDL-32, XT32 and AT128P are all shown. For XT32 and AT128P, the released hkstp_s_02/calib/Extrinsics/LiDAR-LiDAR/xt32_to_hdl32.yaml and at128p_to_hdl32.yaml map each cloud into HDL-32 coordinates. The viewer then applies the same illustrative ENU pose convention described above, evaluated at each stream's own selected file timestamp:

R_ENU_sensor = R_ENU_hdl32 R_hdl32_sensor

t_ENU_sensor = t_ENU_hdl32 + R_ENU_hdl32 t_hdl32_sensor.

Every sample records its selected file, timestamp, extrinsic source and final transform in manifest.json. No scan deskewing or additional time-offset correction is applied. The unverified global mounting convention and reference lever arm limitations still apply.

Schematic sensor models

The onboard marker is a procedural vehicle model whose position follows the selected HDL-32 pose and whose heading follows the original reference heading (ENU yaw = 90 degrees minus heading). Both roadside markers are upright lamp-pole models anchored at their sensor positions. Model shapes, dimensions and lamp-arm directions are illustrative, not surveyed assets or additional calibration. They do not transform or replace the point clouds.