This is a world plugin designed to centralize all the messages sent by the members of the swarm. More...
#include <BrokerPlugin.hh>

Public Member Functions | |
| BrokerPlugin ()=default | |
| Class constructor. More... | |
| virtual | ~BrokerPlugin () |
| Class destructor. More... | |
| virtual void | Load (gazebo::physics::WorldPtr _world, sdf::ElementPtr _sdf) |
This is a world plugin designed to centralize all the messages sent by the members of the swarm.
This plugin subscribes to the "/swarm/broker/incoming" topic, on which all the agents publish their messages. This plugin receives and queues the messages. The broker uses its Update() function to dispatch the queued messages. Dispatch of a message may directly deliver it to the destination/s node/s or it may forward the message to a network simulator (ns-3).
|
default |
Class constructor.
|
virtual |
Class destructor.