Closed MoonUniverse closed 5 years ago
For the 1st part, seem like the error is from the pose graph solver. Could you disable the pose graph solver? In the launch just enclose it with
For the get_imu_T_cam, I recommend you don't comment out my code, but instead disable the thread which does the 200hz computation (I used this topic to control the quadrotor, but it is not needed for normal visualization). You could do this my looking at the composer class in pose graph solver repo and keyframe_pose_graph_solver_node in https://github.com/mpkuse/solve_keyframe_pose_graph/tree/master/src.
Another tip, at each of the threads, I have #defines which could use to know what is happening in those threads.
Do let me know if you could get just the cerebro part working correctly, I could help you out for the pose graph solver.
I think "realsense node >> cerebro" is causing problem because, I am waiting the vins (odometry) and connection to the image descriptor solver.
When I run the code, I usually start the realsense drive preceeded by a sleep for a few seconds. You could try that.
Yes,when I start the realsense drive preceeded by a sleep for a few seconds,it's no problem.Now,the biggest problem is can't locate in the map.Even if the cerebro part works properly,Relocalization still fails!
So the way comparison happens is a simple dot product, Could you plot the dot product chart?
Look at this function:
I suggest you turn on logging for these two functions and log all your matches. You need to set the #defines (see my comments in those functions).
However, if the environments is too self-similar this is going to struggle. Is the match shown in the screenshot you posted correctly identified ?
yes,the match is correctly! I am trying logging to find the problem.
Hi @mpkuse ! I have tasted the code for some weeks,i find some problem about this project! First: what(): std::bad_alloc
Startup sequence: realsense node >> cerebro Cause this problem Startup sequence: cerebro >> realsense node it's good! no problem.
Second: It’s often impossible to locate in the map.I don't know if this question is related to the deletion of the following code?
But if I don't delete this code i will got a bug!
Thank you for much!!!