mit-aera / FlightGoggles

A framework for photorealistic hardware-in-the-loop agile flight simulation using Unity3D and ROS. Developed by MIT AERA group.
http://flightgoggles.mit.edu
Other
402 stars 99 forks source link

IR Markers inconsistent? #82

Closed foehnx closed 5 years ago

foehnx commented 5 years ago

Hi all

I have a question regarding the IR markers. It seems that the marker positions from the "nominal_gate_locations.yaml" do not coincide with the corner locations used for rendering the IR markers. I do not mean the difference of the nominal gate position and the perturbed (in the context of AlphaPilot), but effectively the corners seem to be wrong for some gate. If we calculate the reprojections for certain gates (i.e. Gate21), they seem to be wider/taller/smaller than given by the corner information from the yaml file. Our reprojection formula/algorithm appears to be correct since it agrees with most of the gates (from a variety of viewpoints) and their corner IR markers from FlightGoggles, but not with Gate21 and some others....

Winter-Guerra commented 5 years ago

Hi @foehnph,

We're looking into this now. This is an odd problem since the nominal IR locations were output by FlightGoggles and should correspond to the nominal locations in the environment.

Is gate 21 the only gate that exhibits this issue? If not, which others also exhibit the issue? We're going to try to reproduce via reprojection and will get back to you. For the purposes of reproducing the issue, any examples you could provide would be very helpful.

Best, -Winter

Winter-Guerra commented 5 years ago

Ah, this might be a marker ID association problem stemming from a performance improvement fix introduced in this commit.

Will verify and put out a patch if needed.

foehnx commented 5 years ago

I'm not concerned about the marker IDs. Our reprojections are still close to the projections from unity. Just for some gates they seem to be distributed around the gate position with a different height/width compared to the one in the nominal_gate_locations.yaml (we do account for gate rotation with respect to the camera pose). atm I can not check for all the gates... no time right now, sorry. I will provide an image illustrating what I mean later on

Winter-Guerra commented 5 years ago

Ok, thanks! I'm looking forward to seeing the image(s). It would be a big help.

foehnx commented 5 years ago

red are the gate markers given by unity, green our computed reprojection. In this scenario there is no perturbation. Note that the markers of the closer gate are perfectly overlaying and the markers further away (gate21) are not concentric. In fact they seem to be higher and less wide in distribution around the gate. It happens for other gates, too and is not related to the distance as far as we can tell.

out

varunmurali1 commented 5 years ago

Hi @foehnph ,

It looks like some of the marker locations in nominal_gate_locations.yaml were from a previous beta build of FlightGoggles. We've updated the file and no longer have reprojection issues (see attached screenshot). Sorry about that...

ir_marker_reprojection

foehnx commented 5 years ago

perfect! this fixed the problem!

Thanks a lot!