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

Improvements to snake gate detection and subsequent pose estimation #2334

Merged
merged 36 commits into from
Sep 26, 2018

Conversation

guidoAI
Copy link
Contributor

@guidoAI guidoAI commented Sep 25, 2018

Improvements to the gate detection and pose estimation, including:

  • Allowing snake gate to produce multiple simultaneous gate detections
  • Better detection of slanted gates by remembering the snake end locations
  • Bug fixes in the gate pose estimation

guidoAI and others added 30 commits September 7, 2018 22:16
…all necessary parameters) and snaake_gate_detection (which only takes the image and coordinates)
Mutex

[fix] mutex_init gate_detect
…and added the memory of snake end points for higher snaking success
…filtered for drawing. Now multiple detections.
Copy link
Member

@gautierhattenberger gautierhattenberger left a comment

Choose a reason for hiding this comment

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

looks good in general
maybe cleaning a bit some remaining unused comments

@@ -46,14 +46,14 @@
#include "paparazzi.h"

// to debug the algorithm, uncomment the define:
// #define DEBUG_SNAKE_GATE
#define DEBUG_SNAKE_GATE

Choose a reason for hiding this comment

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

do you really want to keep this enabled by default ? all the other ones are disabled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Changed it.

@guidoAI
Copy link
Contributor Author

guidoAI commented Sep 25, 2018

Commented out the define, and went over comments, removing some that were no longer necessary

@kirkscheper kirkscheper merged commit f264db7 into paparazzi:master Sep 26, 2018
shuoli-robotics pushed a commit to shuoli-robotics/paparazzi that referenced this pull request Oct 15, 2018
…aparazzi#2334)

* First addition of snake gate functions, no refinement of the gate corners yet.

* Added corner refinement functions

* Added an initial module, and added check_color to both image.h (with all necessary parameters) and snaake_gate_detection (which only takes the image and coordinates)

* Compiling

* Debugging the snake gate detection

* Added settings to the gate detection module

* Added a few settings, removed a few spurious variables

* start of code for pose estimation - missing mathematical functions by Michael

* Added the matrix calcaluation functions necessary for PnP

* In principle, the pipeline is in place, not compiling yet though.

* Resolving some first small errors

* Code compiling without warnings.

* debugging position estimator

* Pose estimation working

* GateDetect pushes ABI message

Mutex

[fix] mutex_init gate_detect

* correct the x,x,x to x,y,z mistake

* First part of Kirks comments

* Processed remaining remarks of Kirk

* Use Bound, now correctly

* Removed listener

* Added comments, removed printing, fixed code style

* Added total number of samples for better execution frequency control and added the memory of snake end points for higher snaking success

* added intersection over union

* Added possibility to do the intial check with a polygon

* Use intersection of union to detect different gates

* multiple gates first step working

* plotting the gate too soon results in grey boxes, since the image is filtered for drawing. Now multiple detections.

* extra drawing

* Better rejection of filled blobs, not doing filtering when drawing and detecting, because it reduces the FPS considerably.

* Debugged gate coordinates

* Actually passing back all gates

* Preparing for pull request, formatting code, etc.

* Changes based on pull request comments
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

4 participants