SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
gztopic.GzCommunicator Class Reference

Gztopic pulisher object. More...

Inheritance diagram for gztopic.GzCommunicator:

Public Member Functions

def __init__
 Constructor. More...
 
def StartCommunicator
 Build the socket and start the connection. More...
 
def stop
 Close the connection. More...
 
def publish
 Publish message. More...
 

Public Attributes

 MASTER_TCP_IP
 
 MASTER_TCP_PORT
 
 NODE_TCP_IP
 
 NODE_TCP_PORT
 
 TCP_BUFFER_SIZE
 
 s_reg
 

Detailed Description

Gztopic pulisher object.

Constructor & Destructor Documentation

def gztopic.GzCommunicator.__init__ (   self,
  masterip = '127.0.0.1',
  masterport = 11345 
)

Constructor.

Parameters
selfObject pointer
masteripMaster ip address
masterportMaster port number
Init function

Member Function Documentation

def gztopic.GzCommunicator.publish (   self,
  msg 
)

Publish message.

Parameters
selfObject pointer
msgMessage object
def gztopic.GzCommunicator.StartCommunicator (   self,
  topic,
  messagetype 
)

Build the socket and start the connection.

Parameters
selfObject pointer
topicGztopic string
messagetypeName of the messgae object
Start the communication through gztopic
def gztopic.GzCommunicator.stop (   self)

Close the connection.

Parameters
selfObject pointer
Stop the communicator

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