VIS4ROB-lab / covins

COVINS-(G) -- A (Generic) Framework for Collaborative Visual-Inertial SLAM and Multi-Agent 3D Mapping
366 stars 63 forks source link

How to save the output trajectory in ROS mode? #37

Closed NatureLan-sudo closed 1 year ago

NatureLan-sudo commented 1 year ago

Hello, I'm sorry to bother you. I hope you can provide some help. Currently, in our code, we are able to output the trajectory and save it to the f_dataset-MH01_monoi.txt file when running in non-ROS mode. However, when we run the code using roslaunch, we are unable to output and save the corresponding trajectory. I have made some modifications to the code below, based on the non-ROS mode. However, I am encountering the following errors. Could you please provide some assistance? @patriksc image After the run is completed, I will use Ctrl+C to end the operation of the frontend and get the following result. I did not receive any trajectory files and the terminal appears to have thrown an error. image

patriksc commented 1 year ago

Hi! The message terminate called without an active exception usually appears when threads are not properly terminated. However, according to the terminal output, the trajectory files should have been written to disk. My best guess would be that the target file path to write the trajectory is incorrect. I would modify the code that writes the trajectory in Systems.cc to output the exact file path where it tries to write the trajectory file, and verify this path is correct and existing.