Public Member Functions | Public Attributes | List of all members
receiver.IPSReceiver Class Reference

Public Member Functions

def __init__ (self)
 
def callback (self, msg)
 
def publish (self)
 
def shutdown (self)
 

Public Attributes

 baudrate
 
 con
 
 host
 
 port
 
 rate
 
 rec_pub
 
 rec_send_sub
 
 type
 

Detailed Description

Use this class to establish a connection with the metraTec IPS receiver or USB stick and publish the received
messages to the ips/receiver/raw topic. The node also listens to the ips/receiver/send topic and invokes a
callback that forwards these messages to the connected receiver when it is updated.

Definition at line 40 of file receiver.py.

Constructor & Destructor Documentation

def receiver.IPSReceiver.__init__ (   self)
Initialize IPS receiver class by passing the IP address the receiver or port the USB stick is connected to.

Definition at line 46 of file receiver.py.

Member Function Documentation

def receiver.IPSReceiver.callback (   self,
  msg 
)
Send message to connected device when /ips/receiver/send topic is updated.
:param msg: String: message to be sent to the connected device

Definition at line 70 of file receiver.py.

def receiver.IPSReceiver.publish (   self)
Publish raw receiver messages to the ips/receiver/raw topic.

Definition at line 79 of file receiver.py.

def receiver.IPSReceiver.shutdown (   self)
Close USB connection on shutdown.

Definition at line 93 of file receiver.py.

Member Data Documentation

receiver.IPSReceiver.baudrate

Definition at line 55 of file receiver.py.

receiver.IPSReceiver.con

Definition at line 56 of file receiver.py.

receiver.IPSReceiver.host

Definition at line 51 of file receiver.py.

receiver.IPSReceiver.port

Definition at line 52 of file receiver.py.

receiver.IPSReceiver.rate

Definition at line 68 of file receiver.py.

receiver.IPSReceiver.rec_pub

Definition at line 66 of file receiver.py.

receiver.IPSReceiver.rec_send_sub

Definition at line 64 of file receiver.py.

receiver.IPSReceiver.type

Definition at line 49 of file receiver.py.


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


indoor_positioning
Author(s): Christian Arndt
autogenerated on Mon Jun 10 2019 13:33:13