gz/sim/comms/MsgManager.hh
void AddInbound(const std::string &_address, const msgs::DataframeSharedPtr &_msg)
Add a new message to the inbound queue.
bool RemoveInbound(const std::string &_address, const msgs::DataframeSharedPtr &_msg)
Remove a message from the inbound queue.
void Set(const Registry &_newContent)
Set the data structure containing subscriptions and data queues.
uint64_t Entity
An Entity identifies a single object in simulation such as a model, link, or light....
Definition: gz/sim/Entity.hh:58
DataQueue inboundMsgs
Queue of inbound messages.
Definition: gz/sim/comms/MsgManager.hh:58
This library is part of the Gazebo project.
STL class.
DataQueue outboundMsgs
Queue of outbound messages.
Definition: gz/sim/comms/MsgManager.hh:61
void Set(msgs::AxisAlignedBox *_b, const math::AxisAlignedBox &_v)
void DeliverMsgs()
This function delivers all the messages in the inbound queue to the appropriate subscribers....
const Registry & DataConst() const
Get an inmutable reference to the data containing subscriptions and data queues.
bool RemoveOutbound(const std::string &_address, const msgs::DataframeSharedPtr &_msg)
Remove a message from the outbound queue.
void AddOutbound(const std::string &_address, const msgs::DataframeSharedPtr &_msg)
Add a new message to the outbound queue.
Registry & Data()
Get a mutable reference to the data containing subscriptions and data queues.
std::string modelName
Model name associated to this address.
Definition: gz/sim/comms/MsgManager.hh:67
Registry Copy() const
Get a copy of the data structure containing subscriptions and data queues.
bool AddSubscriber(const std::string &_address, const std::string &_modelName, const std::string &_topic)
Add a new subscriber. It's possible to associate multiple topics to the same address/model pair....
All the information associated to an address.
Definition: gz/sim/comms/MsgManager.hh:55
Class to handle messages and subscriptions.
Definition: gz/sim/comms/MsgManager.hh:78
gazebo::Entity entity
Entity of the model associated to this address.
Definition: gz/sim/comms/MsgManager.hh:70
SubscriptionHandler subscriptions
Subscribers.
Definition: gz/sim/comms/MsgManager.hh:64
bool RemoveSubscriber(const std::string &_address, const std::string &_topic)
Remove an existing subscriber.