gtsam_vio icon indicating copy to clipboard operation
gtsam_vio copied to clipboard

lack header file imu_state.h

Open anchao1997 opened this issue 2 years ago • 3 comments

lack header file imu_state.h in cam_state.h and feature.hpp

Screenshot from 2022-06-01 20-24-32

I wonder how to solve it

anchao1997 avatar Jun 01 '22 12:06 anchao1997

I actually copied this code over from the msckf_vio package: https://github.com/KumarRobotics/msckf_vio/tree/master/include/msckf_vio

I’m not sure why this worked when I was using it, or what changed, but the easiest thing you could do is just copy over imu_state.h from the package linked above.

From there, you can figure out whether some of those files/imports are really necessary in the first place, or whether you can just delete them.

vkopli avatar Jun 03 '22 16:06 vkopli

Essentially what happened is we reused the image processor from msckf_vio. The image processor identifies “features” or corners in the depth camera’s video feed, and assigns them a new ID number if they haven’t been seen before. I just made use of whatever features the image processor outputted.

I copied over the minimal files to make things work at the time, so it’s possible that the contents of imu_state.h were never used, and you could just get rid of the import of imu_state.h altogether.

vkopli avatar Jun 03 '22 17:06 vkopli

oh, thanks

anchao1997 avatar Jun 06 '22 11:06 anchao1997