Public Member Functions | Public Attributes | List of all members
tools.image_subscriber.ImageSubscriber Class Reference
Inheritance diagram for tools.image_subscriber.ImageSubscriber:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, topic="usb_cam/image_raw")
 
def callback (self, ros_data)
 

Public Attributes

 bridge
 
 compressed
 
 currentHeader
 
 currentImage
 
 frame_count
 
 start_time
 
 subscriber
 

Detailed Description

A class to subscribe to a ROS camera

Definition at line 40 of file image_subscriber.py.

Constructor & Destructor Documentation

def tools.image_subscriber.ImageSubscriber.__init__ (   self,
  topic = "usb_cam/image_raw" 
)
Initialize ros publisher, ros subscriber

Definition at line 43 of file image_subscriber.py.

Member Function Documentation

def tools.image_subscriber.ImageSubscriber.callback (   self,
  ros_data 
)
Callback function of subscribed topic. 
Here images get converted to cv2 format

Definition at line 60 of file image_subscriber.py.

Member Data Documentation

tools.image_subscriber.ImageSubscriber.bridge

Definition at line 53 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.compressed

Definition at line 48 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.currentHeader

Definition at line 47 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.currentImage

Definition at line 46 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.frame_count

Definition at line 49 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.start_time

Definition at line 50 of file image_subscriber.py.

tools.image_subscriber.ImageSubscriber.subscriber

Definition at line 54 of file image_subscriber.py.


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


cnn_bridge
Author(s): Noam C. Golombek , Alexander Beringolts
autogenerated on Mon Jun 10 2019 12:53:26