Doly C++ SDK v1.00
Loading...
Searching...
No Matches
EdgeEvent.h
Go to the documentation of this file.
1#pragma once
2#include "EdgeEventListener.h"
3
15
16namespace EdgeEvent
17{
27 void AddListener(EdgeEventListener* observer, bool priority = false);
28
35
43 void AddListenerOnChange(void(*onChange)(std::vector<IrSensor> sensors));
44
50 void RemoveListenerOnChange(void(*onChange)(std::vector<IrSensor> sensors));
51
59 void AddListenerOnGapDetect(void(*onChange)(GapDirection gap_type));
60
66 void RemoveListenerOnGapDetect(void(*onChange)(GapDirection gap_type));
67
68} // namespace EdgeEvent
Public API types and listener interface for EdgeControl.
Interface for receiving edge and gap detection events from edge controller.
Definition EdgeEventListener.h:83
GapDirection
Direction of a detected gap or edge relative to the robot.
Definition EdgeEventListener.h:34
Definition EdgeEvent.h:17
void RemoveListenerOnGapDetect(void(*onChange)(GapDirection gap_type))
Unregister a function callback for gap detection events.
void AddListenerOnGapDetect(void(*onChange)(GapDirection gap_type))
Register a function callback for gap detection events.
void AddListener(EdgeEventListener *observer, bool priority=false)
Register an EdgeEventListener instance.
void RemoveListener(EdgeEventListener *observer)
Unregister an EdgeEventListener instance.
void AddListenerOnChange(void(*onChange)(std::vector< IrSensor > sensors))
Register a function callback for sensor state changes.
void RemoveListenerOnChange(void(*onChange)(std::vector< IrSensor > sensors))
Unregister a function callback for sensor state changes.