Swarm API

Public Member Functions
swarm::BrokerPlugin Class Reference

This is a world plugin designed to centralize all the messages sent by the members of the swarm. More...

#include <BrokerPlugin.hh>

Inheritance diagram for swarm::BrokerPlugin:
Inheritance graph
[legend]

Public Member Functions

 BrokerPlugin ()=default
 Class constructor. More...
 
virtual ~BrokerPlugin ()
 Class destructor. More...
 
virtual void Load (gazebo::physics::WorldPtr _world, sdf::ElementPtr _sdf)
 

Detailed Description

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).

Constructor & Destructor Documentation

swarm::BrokerPlugin::BrokerPlugin ( )
default

Class constructor.

virtual swarm::BrokerPlugin::~BrokerPlugin ( )
virtual

Class destructor.


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