ethz-asl / rovio

Other
1.12k stars 506 forks source link

ERROR: No valid coordinate data! #121

Closed EricWebsmith closed 7 years ago

EricWebsmith commented 7 years ago

I have installed ROVIO. After that, I run it with several datasets including MH01,02,03,04 and Vicon01. I got the same error each time I ran it. And the coordinators in the Scene window drift away very soon.

I thought it was caused by using only one camera so I modified the CMakeList.txt file setting ROVIO_NCAM = 2, that did not help.

I then tried building it without scene, no help.

I also tried setting doVECalibration = false. no help.

I noticed that at the beginning it was very slow. if I hit space and pause the bag, the tracker0 window take 10 seconds to pause. The scene window updates every 5 seconds, and if I try to move it by dragging, it takes 5 seconds, too. I am not sure if the issue was cause by my slow computer.

The algorithm keeps getting new features even when the helicopter is not moving. I see blue numbers keep increase. I also see features being removed and adding in in verbose mode.

Do I need to calibrate the camera and IMU sensors before I use ROVIO with the provided datasets?

EricWebsmith commented 7 years ago

screenshot from 2017-05-05 14 16 35

bloeschm commented 7 years ago

have you compiled in release mode? in debug mode rovio is too slow and will soon miss up (I think due to skipping measurements)

EricWebsmith commented 7 years ago

yes, I compiled in release mode. I used the command in the README.md file.

bloesch commented 7 years ago

Does the tracking fail since the beginning?

EricWebsmith commented 7 years ago

yes, it gives the error after five seconds.

bloesch commented 7 years ago

what if you run the rosbag very slowly? also, have you tried using the rovio_rosbag_node.launch? there you can directly specify the rosbag to be loaded which is then directly loaded by rovio such that no messages are missed.

EricWebsmith commented 7 years ago

thanks, it helped and the error message gone.

i tried running it slow by using --rate 0.1, no help.

I then tried rovio_rosbag_node.launch. it looks fine. the numbers now are green and they do not change. the problem is that I do not get a scene window and I have no idea if it drifts or not.

I deleted everything in the build and devel folder and rebuilt the package with

catkin build rovio --cmake-args -DCMAKE_BUILD_TYPE=Release -DMAKE_SCENE=ON

i still dont have the scene window.

I run the rovio_node.launch , but the scene window seems not response to the ros bag.

What should i do to see the scene window? thanks.

bloesch commented 7 years ago

The scene window should be visible when using -DMAKE_SCENE=ON with rovio_node.launch. Also, be sure that when changing the cmake parameters you properly rebuild your workspace.

EricWebsmith commented 7 years ago

@bloesch , I ran rovio_node again just now and everything is fine. I no longer get "ERROR: No valid coordinate data!" Thanks very much and sorry for waiting your time.

EricWebsmith commented 7 years ago

I am guessing it was caused by the poor computer. too slow it the computer.

raoulj commented 6 years ago

Setting --rate 0.1 as @bloesch suggested fixed the drift issue for me.

hook25127 commented 4 years ago

@juwikuang Hello, I got the same error: "ERROR: No valid coordinate data!" How you running it slow by using --rate 0.1?