HKUST-Aerial-Robotics / VINS-Mobile

Monocular Visual-Inertial State Estimator on Mobile Phones
GNU General Public License v3.0
1.27k stars 524 forks source link

Problem for porting VINS-Mobile to linux #101

Closed ray2004a closed 6 years ago

ray2004a commented 6 years ago

Thanks for the great sharing. Before porting to android system, I am trying to port VINS-Mobile to linux system and make some optimization and testing. But I face some problem on reconstruction.

  1. I changed the top img_msg->header = systemtime(my own timestamp). Q: Is it any problem to change the time_stamp from float lowPart = image.at(0,0);
    float highPart = image.at(0,1); to common system time? [system time updating every 0.01sec on my own thread]

  2. I gave a virtual IMU data which is random and update every 0.01sec. Does it cause any problem?

Now what i'm facing is that, the feature detection is working now, but the ID is always updating, and the track_num and f_manager.getFeatureCount() is always get 0. I think it is problem on f_manager.addFeatureCheckParallax() or solveVinsPnP(), because the Ps, Vs, Rs, Bas and Bgs is also 0. Do anybody have idea....

ray2004a commented 6 years ago

Already found the bug on 20/12/2017