Image Client
ImageClient
Inherits from: ROSClient
A ROS client for handling image messages.
This class inherits from ROSClient and provides functionality for publishing and receiving image messages over ROS topics, with support for various image encodings and formats.
ImageClient
Initialize the image client.
decode_image
Decode image data from ROS message format.
Base64 encoded image data
Image height in pixels
Image width in pixels
Image encoding format. Supported formats:
- ‘rgb8’: 8-bit RGB color
- ‘bgr8’: 8-bit BGR color (converted to RGB)
- ‘rgba8’: 8-bit RGBA color (converted to RGB)
- ‘bgra8’: 8-bit BGRA color (converted to RGB)
- ‘32FC1’: 32-bit floating point grayscale
Decoded image array in RGB format (for color images) or grayscale format (for ‘32FC1’). For RGB format, has shape (height, width, 3). For grayscale, has shape (height, width, 1).
publish_agent_image
publish_image
Publish an image to the configured topic.
get_image
Get the most recent processed image.
The most recent image data, or None if no image is available
Was this page helpful?