Package intera_interface :: Module head_display :: Class HeadDisplay
[hide private]
[frames] | no frames]

Class HeadDisplay

source code

object --+
         |
        HeadDisplay

Interface class for head display

Displays a given image file or multiple files on the robot's face.

Pass the relative or absolute file path to an image file on your computer, and the example will read and convert the image using cv_bridge, sending it to the screen as a standard ROS Image Message.

Notes: Max screen resolution is 1024x600. Images are always aligned to the top-left corner. Image formats are those supported by OpenCv - LoadImage().

Instance Methods [hide private]
 
__init__(self)
Constructor
source code
sensor_msgs/Image or None
_setup_image(self, image_path)
Load the image located at the specified path
source code
 
display_image(self, image_path, display_in_loop=False, display_rate=1.0)
Displays image(s) to robot's head
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor

Overrides: object.__init__

_setup_image(self, image_path)

source code 

Load the image located at the specified path

Parameters:
  • image_path (str) - the relative or absolute file path to the image file
Returns: sensor_msgs/Image or None

display_image(self, image_path, display_in_loop=False, display_rate=1.0)

source code 

Displays image(s) to robot's head

Parameters:
  • image_path (list) - the relative or absolute file path to the image file(s)
  • display_in_loop (bool) - Set True to loop through all image files infinitely
  • display_rate (float) - the rate to publish image into head