sim: dia hinh 3D -- doc va san cao tu model vslam_terrain_*, robot di tren mat san, LiDAR tia 3D, ground truth 6-DoF, world slope_test (5 doc 5-30 do)

This commit is contained in:
trung09122002
2026-10-03 18:31:13 +07:00
parent be2aa17e3e
commit 26ee1a3b72
27 changed files with 2373 additions and 37 deletions

View File

@@ -87,6 +87,9 @@ StatusResponse Runtime::OpenSource() {
Transform t;
if (cfg_->robot.StaticTransform(kBaseLinkFrame, kLaserFrame, &t)) {
sc.lidar_x = t.translation.x;
// Do cao LiDAR tren TAM TRUC. Duong 2D cu khong dung; dia hinh 3D thi
// can de tia o dung 0.2165 m tren san.
sc.lidar_z = t.translation.z;
}
if (cfg_->robot.StaticTransform(kBaseLinkFrame, kCameraFrame, &t)) {
sc.camera_x = t.translation.x;
@@ -2121,6 +2124,9 @@ void Runtime::WebLoop() {
snap.ground_truth = have_gt_latched ? gt_latched
: source_->sim->ground_truth();
source_->sim->true_tilt(&snap.gt_roll, &snap.gt_pitch);
// Do cao san THAT duoi robot. Chi khac 0 khi world co dia hinh (doc,
// san cao); uoc luong hien van la 2D nen day la thuoc do cho no.
snap.gt_z = source_->sim->ground_truth_3d().z;
}
// pose_map = map_correction * pose_odom.