sim: camera ve bang GPU (lib tuy chon vslam_sim_gl, EGL + GLES3 + assimp) -- anh IR co texture that + depth khop tung pixel, vslam_node --sim-gl, tool vslam_render_preview

This commit is contained in:
trung09122002
2026-10-03 19:13:50 +07:00
parent 0dd2546ab1
commit f9fd18b5aa
17 changed files with 1329 additions and 22 deletions

View File

@@ -42,6 +42,7 @@
#include "vslam/clock.h"
#include "vslam/gazebo_world.h"
#include "vslam/sim_camera_renderer.h"
#include "vslam/driver_interfaces.h"
#include "vslam/vslam_common.h"
@@ -366,6 +367,12 @@ class SimSource {
using GroundTruthCallback = std::function<void(UnixTime, const SimPose3&)>;
void SetGroundTruthCallback(GroundTruthCallback cb, double rate_hz = 0.0);
// Ve camera bang renderer ngoai (GPU, vslam_sim_gl): depth VA anh IR
// (`CameraFrame::infra1`) tu mesh co texture, thay raycast CPU. null = raycast
// CPU nhu cu, khong co anh IR. Goi truoc Run(); renderer duoc goi tren luong
// vong mo phong.
void SetCameraRenderer(std::shared_ptr<SimCameraRenderer> r);
// Danh dau mot vung hinh chu nhat (toa do THE GIOI, met) la KINH.
//
// O kinh phai la o BI CHIEM trong ban do (data >= 50) -- kinh la vat can