Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARDrone vision fix #2215

Merged
merged 3 commits into from
Jan 16, 2018
Merged

Conversation

TitusBraber
Copy link
Contributor

The ARDrone in paparazzi Master was flying at 2-5 FPS, which is insufficient for proper optical flow.
Upon investigating it turns out that this is the case since #2079
where the feature management was introduced, later fixed in #2087. However the feature management is turned off by default.

Furthermore the pyramid was set two 2 layers standard.

Testing on an ARDrone and Bebop alongsides showed that the Bebop had no issue with the code and was still flying arround 90 FPS(camera maximum) while the ARDrone dropped from 30-60 FPS(camera max) to 2-5 FPS.

In this pullrequest I set the pyramid back to 0, which improved FPS to about 10-15 FPS. I also tried to turn on feature management, which had the same result. Combining these two changes returned the FPS to 30-60 FPS for an ARDrone.

I changed the setting in all ARDrone conf files that include the vision, to leave Bebop untouched.

@@ -37,6 +37,9 @@
<module name="pose_history"/>
<module name="cv_opticflow">
<define name="OPTICFLOW_CAMERA" value="bottom_camera"/>
<!-- ARDrone2 FPS improvements -->
<define name="OPTICFLOW_PYRAMID_LEVEL" value="0"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra tab here in all updated files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange, this is what I see in eclipse, but on github there is an extra tab. I will run the fix code style to try and fix it!
screenshot from 2018-01-16 12-02-59

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, fix code style is not for xml facepalm

@kirkscheper
Copy link
Member

Is this flight tested?

@TitusBraber
Copy link
Contributor Author

Yes, I wanted to know whether it was just a number increasing or actually returning performance. Luckily it added the performance back to normal levels.
Only tested on an ARDrone2, because it was only changed on an ARDrone2. Bebop1 quality didn't degrade.

@kirkscheper kirkscheper merged commit b6efd95 into paparazzi:master Jan 16, 2018
@TitusBraber TitusBraber deleted the ARDroneVisionFix branch January 16, 2018 14:11
biancabndris pushed a commit to biancabndris/paparazzi that referenced this pull request Aug 29, 2018
* Test fix

* added fix to other ardrone airframes using vision

* removed tabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants