TinyRobotics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MessageHandler Class Referenceabstract

Interface for handling messages in the TinyRobotics framework. More...

#include <MessageHandler.h>

Inheritance diagram for MessageHandler:
Inheritance graph
[legend]

Public Member Functions

virtual bool onMessage (const Message< float > &msg)=0
 Handle an incoming message (pure virtual).
 
virtual bool onMessage (const Message< Coordinate< float > > &msg)
 
virtual bool onMessage (const Message< GPSCoordinate > &msg)
 
virtual bool onMessage (const Message< MotionState3D > &msg)
 

Detailed Description

Interface for handling messages in the TinyRobotics framework.

MessageHandler provides a base interface for classes that process messages. It also supports chaining multiple handlers for flexible message routing.

Member Function Documentation

◆ onMessage() [1/3]

virtual bool onMessage ( const Message< Coordinate< float > > &  msg)
inlinevirtual

Reimplemented in MessageBus.

◆ onMessage() [2/3]

virtual bool onMessage ( const Message< float > &  msg)
pure virtual

Handle an incoming message (pure virtual).

This method should be implemented by derived classes to process messages.

Parameters
msgThe message to handle.
Returns
true if the message was handled successfully, false otherwise.

Implemented in AirplaneOdometryModel3D, DroneOdometryModel3D, OdometryDifferentialDriveModel, OdometryModel2D, CallbackMessageHandler, MessageBus, MessageHandlerBinary, MessageHandlerPrint, MessageHandlerPrintXML, MessageHandlerPrintJSON, MicroROS, SpeedFromThrottle, AirPlane< T, MotorMT, ServoMT >, CarAckerman< T, MotorMT, ServoMT >, CarDifferential< N, T, MotorMT >, MotorBoat< T, MotorMT, ServoMT >, and Quadrotor< T, DriverT >.

◆ onMessage() [3/3]

virtual bool onMessage ( const Message< GPSCoordinate > &  msg)
inlinevirtual

Reimplemented in MessageBus.


The documentation for this class was generated from the following file: