Skip to content
TJArk-Robotics edited this page Nov 29, 2016 · 17 revisions

#TJArk Vision Ball Perceptor

Table of contents

1.Usage
2.BallSpotProvider
3.BallPerceptor

Usage

In order to use this code, the B-Human's framework should be needed. If you want to use this code based on other code releases, you might need to make some change and manually adapt this code to your own code base. In order to implement this module, a copy of the modules and representations must be placed in their corresponding folders, Src/Modules/Perception and Src/Representations/Perception respectively. For further information, please refer to the BHuman Coderelease. For the sake of simplicity, we follow the same structure as the code. There are two modules in this algorithm: BallSpotProviderand BallPerceptor. This page will make a short description of these two modules.

2.BallSpotProvider

This module is responsible for finding ballspots that might be the center of a ball and transferring them to the BallPerceptor. As the ball used in RoboCup2016 has a black and white ball print on it, so we need to search all the white regions (provided by the ScanLine representation which provides image regions classified by colors. For further information, please refer to the BHuman Coderelease.) and use some criteria to discard the points that is impossible a ball obviously. More information can be found in the BallSpotProvider.

3.BallPerceptor

BallPerceptor is in charge of finding a most possible ball among all the ballspots which are provided by BallSpotsProvider. It also calculates the radius, center and distance of the ballspots. Then it transfers them to blackboard so that other modules can use it for further computation. More information can be found in the BallPerceptor page.

Clone this wiki locally