tools: so nguon z tren doc (G3) -- vslam_vo_bench (F2M RTAB-Map tren IR+depth, hang tham chieu ds*sin(pitch) bang GravityAlign, num IMU Hz/bias/truot/nhieu IR), slope_eval/slope_fuse/slope_summary/slope_bakeoff.sh (3 muc giong that, DM-VIO ngoai repo); vslam_vsr_export them bias/nhieu IR; vslam_record --gl-headlight/--gl-ambient
This commit is contained in:
@@ -271,6 +271,7 @@ int main(int argc, char** argv) {
|
||||
bool write_gt = false;
|
||||
bool use_gl = false; // ve camera bang GPU (anh IR) -- chi kich ban doc
|
||||
uint32_t cam_decimate = 2; // anh 640x480 / N, nhu crop_decimate cua robot
|
||||
double gl_headlight = -1.0, gl_ambient = -1.0; // am = mac dinh renderer
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
const std::string a = argv[i];
|
||||
@@ -282,6 +283,8 @@ int main(int argc, char** argv) {
|
||||
else if (a == "--gt") write_gt = true;
|
||||
else if (a == "--gl") use_gl = true;
|
||||
else if (a == "--cam-decimate") cam_decimate = static_cast<uint32_t>(std::atoi(next().c_str()));
|
||||
else if (a == "--gl-headlight") gl_headlight = std::atof(next().c_str());
|
||||
else if (a == "--gl-ambient") gl_ambient = std::atof(next().c_str());
|
||||
else if (a == "--help") {
|
||||
std::printf("cach dung: %s --scenario TEN --out-dir D [--robot robot.yaml] [--gt]\n"
|
||||
" %s --list\n"
|
||||
@@ -382,7 +385,10 @@ int main(int argc, char** argv) {
|
||||
if (use_gl) {
|
||||
#ifdef VSLAM_HAVE_SIM_GL
|
||||
std::string gerr;
|
||||
auto r = vslam::CreateGlCameraRenderer(sim.world(), vslam::DefaultGlRendererConfig(), &gerr);
|
||||
vslam::GlRendererConfig gc = vslam::DefaultGlRendererConfig();
|
||||
if (gl_headlight >= 0.0) gc.headlight = gl_headlight;
|
||||
if (gl_ambient >= 0.0) gc.ambient = gl_ambient;
|
||||
auto r = vslam::CreateGlCameraRenderer(sim.world(), gc, &gerr);
|
||||
if (!r) {
|
||||
std::fprintf(stderr, "%s: --gl: %s\n", s.name, gerr.c_str());
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user