Ball detection and chasing logic. More...
Classes | |
| class | DriveBot |
| ROS 2 service node that relays velocity commands to the robot. More... | |
| struct | ImageDimensions |
| Image dimensions and stride information. More... | |
| class | ProcessImage |
| ROS 2 client node that processes camera images to detect and chase a white ball. More... | |
| struct | RgbThreshold |
| RGB color threshold values for ball detection. More... | |
Enumerations | |
| enum class | BallRegion : std::uint8_t { Left , Center , Right , NotFound } |
| Detected ball region in the image. | |
Functions | |
| BallRegion | findBallRegion (const uint8_t *data, ImageDimensions dims, RgbThreshold threshold) |
| Detects the ball region within an image based on RGB thresholds. | |
Ball detection and chasing logic.
| BallRegion robot_control::ball_chaser::findBallRegion | ( | const uint8_t * | data, |
| ImageDimensions | dims, | ||
| RgbThreshold | threshold ) |
Detects the ball region within an image based on RGB thresholds.
| data | Pointer to raw image data (RGB format). |
| dims | Image dimensions and stride. |
| threshold | RGB color threshold for ball detection. |