![]() |
An open-source, flexible 3D physical simulation framework
|
Interface for classes that want to receive data from the DataBroker. More...
#include <ReceiverInterface.h>
Public Member Functions | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
virtual void | receiveData (const DataInfo &info, const DataPackage &dataPackage, int callbackParam)=0 |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur. More... | |
Interface for classes that want to receive data from the DataBroker.
Definition at line 48 of file ReceiverInterface.h.
|
inline |
Definition at line 51 of file ReceiverInterface.h.
|
inlinevirtual |
Definition at line 52 of file ReceiverInterface.h.
|
pure virtual |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.
info | Information about the DataPackage. |
dataPackage | The DataPackage containing all the data. |
callbackParam | The int the receiver passed during registration. The default (the receiver didn't provide a callbackParam) is 0. This can be used to easily distinguish different registrations. |
Implemented in mars::sim::Simulator, mars::sim::SimMotor, mars::sim::RotatingRaySensor, mars::sim::CameraSensor, mars::plugins::Plot3D::Plot3D, mars::sim::ScanningSonar, mars::plugins::PythonMars::PythonMars, mars::data_broker_gui::DataConnWidget, mars::sim::HapticFieldSensor, mars::log_console::MainConsole, mars::plugins::Text3D::Text3D, mars::viz::Viz, mars::sim::RaySensor, mars::sim::Joint6DOFSensor, mars::gui::CameraConfig, mars::data_broker_gui::DataWidget, mars::plugins::obstacle_generator::ObstacleGenerator, data_broker_plotter2::DataBrokerPlotter, mars::plugins::connectors::Connectors, mars::plugins::EntityView::EntityView, mars::plugins::__namespace__::__classname__, mars::plugin::SkyDomePlugin::SkyDomePlugin, mars::plugins::__namespace__::__classname__, mars::plugins::Plot3D::MotorPlot, mars::sim::MultiLevelLaserRangeFinder, data_broker_plotter::DataBrokerPlotter, mars::gui::BlenderExportGUI, mars::sim::MotorPositionSensor, mars::sim::NodeArraySensor, mars::sim::JointArraySensor, mars::sim::MotorCurrentSensor, mars::sim::RayGridSensor, mars::sim::JointAVGTorqueSensor, mars::sim::JointLoadSensor, mars::sim::NodeContactSensor, mars::sim::NodeContactForceSensor, mars::sim::NodeRotationSensor, mars::sim::NodeAngularVelocitySensor, mars::sim::NodePositionSensor, mars::sim::NodeVelocitySensor, VizPlugin, mars::sim::JointTorqueSensor, mars::sim::JointVelocitySensor, and mars::sim::JointPositionSensor.