Master Class Reference

A manager that directs topic connections, enables each gazebo network client to locate one another for peer-to-peer communication. More...

#include <gazebo_core.hh>

Public Types

typedef std::map< unsigned int, transport::ConnectionPtrConnection_M
 
typedef std::list< std::pair< msgs::Publish, transport::ConnectionPtr > > PubList
 
typedef std::list< std::pair< msgs::Subscribe, transport::ConnectionPtr > > SubList
 

Public Member Functions

 Master ()
 Constructor. More...
 
virtual ~Master ()
 Destructor. More...
 
void Fini ()
 Finalize the master. More...
 
void Init (uint16_t _port)
 Initialize. More...
 
void Run ()
 Run the master. More...
 
void RunOnce ()
 Run the master one iteration. More...
 
void RunThread ()
 Run the master in a new thread. More...
 
void Stop ()
 Stop the master. More...
 

Detailed Description

A manager that directs topic connections, enables each gazebo network client to locate one another for peer-to-peer communication.

Base class for simulation server that handles commandline options, starts a Master, runs World update and sensor generation loops.

Member Typedef Documentation

◆ Connection_M

typedef std::map<unsigned int, transport::ConnectionPtr> Connection_M

◆ PubList

typedef std::list< std::pair<msgs::Publish, transport::ConnectionPtr> > PubList

◆ SubList

typedef std::list< std::pair<msgs::Subscribe, transport::ConnectionPtr> > SubList

Constructor & Destructor Documentation

◆ Master()

Master ( )

Constructor.

◆ ~Master()

virtual ~Master ( )
virtual

Destructor.

Member Function Documentation

◆ Fini()

void Fini ( )

Finalize the master.

◆ Init()

void Init ( uint16_t  _port)

Initialize.

Parameters
[in]_portThe master's port

◆ Run()

void Run ( )

Run the master.

◆ RunOnce()

void RunOnce ( )

Run the master one iteration.

◆ RunThread()

void RunThread ( )

Run the master in a new thread.

◆ Stop()

void Stop ( )

Stop the master.


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