Formula-Student-Driverless-Simulator icon indicating copy to clipboard operation
Formula-Student-Driverless-Simulator copied to clipboard

Not precise depth values

Open federicochiesa opened this issue 4 years ago • 3 comments

We have enabled the depth camera on the simulator, but the depth values are given as integer and are not precise. For example, in this image, the yellow cone on the right is given a depth of "5", the blue one is "6" and the yellow one in the distance is "15". This seems wrong as the cones are very close to the car's wheel and it's strange to see a depth of 5(meters?) from the camera.

The RGB image that I sent corresponds to the depth one, we set the two cameras to be in the same position in the settings.json

federicochiesa avatar Jun 07 '21 10:06 federicochiesa

Hi @federicochiesa, from what I can remember, these depth sensors were implemented in a short timeframe very close to the start date of the FS Online competition. They also were pretty overpowered compared to teams not using them, so it could be that they were nerfed by making them less accurate. @SijmenHuizenga Please correct me if I am wrong.

mvanlobensels avatar Aug 04 '21 13:08 mvanlobensels

Ok, I got it. Since we are using this simulator for our own testing, is there a flag or an option to disable the nerfing and get accurate values?

federicochiesa avatar Aug 26 '21 12:08 federicochiesa

I don't think there's a flag for it. I'm afraid you'll have to dive into the sensor code yourself to fix it

mvanlobensels avatar Sep 10 '21 07:09 mvanlobensels

I'm using the depth cameras as well and they provide me accurate values. Could you share how you calculate the depth of the cones? Maybe there is a bug in your implementation.

masskro0 avatar Nov 28 '22 19:11 masskro0