|
TinyRobotics
|
Simple edge-following algorithm for grayscale camera images. More...
#include <CameraEdgeFollower.h>


Classes | |
| struct | Result |
Public Member Functions | |
| CameraEdgeFollower (uint8_t threshold=20) | |
| Result | process (const uint8_t *image, size_t width, size_t height) |
Public Member Functions inherited from MessageSource | |
| void | subscribe (MessageHandler &handler, MessageOrigin origin=MessageOrigin::Undefined, MessageContent content=MessageContent::Undefined) |
| Subscribe a message handler to this source, with optional filtering. | |
| void | unsubscribeAll () |
| Remove all registered message handlers. | |
| void | sendMessage (Message< float > &msg) |
| Publish a message to all registered handlers. | |
| void | sendMessage (const Message< Coordinate< float > > &msg) |
| Publish a message to all registered handlers. | |
| void | sendMessage (const Message< GPSCoordinate > &msg) |
| Publish a message to all registered handlers. | |
| void | sendMessage (const Message< MotionState3D > &msg) |
| Overload for MotionState3D messages. | |
Protected Attributes | |
| uint8_t | _threshold |
Protected Attributes inherited from MessageSource | |
| std::vector< MessageHandlerEntry > | messageHandlers_ |
Simple edge-following algorithm for grayscale camera images.
This class scans a horizontal row of a grayscale image (e.g., from a line or edge sensor) to detect the strongest edge (sharpest intensity change) using a threshold. It is useful for basic line-following or edge-detection robots.
Features:
Usage Example: