ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
ros_image_streamer.viewer_node Namespace Reference

Classes

class  ViewerNode
 

Functions

np.ndarray _to_bgr (np.ndarray frame, str encoding)
 
tuple[np.ndarray, str] _raw_msg_to_frame (Image msg)
 
tuple[np.ndarray, str] _compressed_msg_to_frame (CompressedImage msg)
 
None _draw_label (np.ndarray img, str text, tuple pos, float scale=0.55)
 
None _draw_header_overlay (np.ndarray display, header, str encoding, tuple shape)
 
def main (args=None)
 

Variables

dictionary _ENCODING_CONVERSIONS
 
int _FREQ_WINDOW = 30
 
int _HEADER_PADDING = 10
 
int _HEADER_LINE_H = 22
 
float _HEADER_SCALE = 0.50
 
dictionary _SINGLE_CHANNEL_ENCODINGS = {'mono8', 'bayer_rggb8', 'bayer_bggr8', 'bayer_gbrg8', 'bayer_grbg8'}
 

Function Documentation

◆ _compressed_msg_to_frame()

tuple[np.ndarray, str] ros_image_streamer.viewer_node._compressed_msg_to_frame ( CompressedImage  msg)
private
Here is the caller graph for this function:

◆ _draw_header_overlay()

None ros_image_streamer.viewer_node._draw_header_overlay ( np.ndarray  display,
  header,
str  encoding,
tuple  shape 
)
private
Here is the caller graph for this function:

◆ _draw_label()

None ros_image_streamer.viewer_node._draw_label ( np.ndarray  img,
str  text,
tuple  pos,
float   scale = 0.55 
)
private
Here is the caller graph for this function:

◆ _raw_msg_to_frame()

tuple[np.ndarray, str] ros_image_streamer.viewer_node._raw_msg_to_frame ( Image  msg)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _to_bgr()

np.ndarray ros_image_streamer.viewer_node._to_bgr ( np.ndarray  frame,
str  encoding 
)
private
Here is the caller graph for this function:

◆ main()

def ros_image_streamer.viewer_node.main (   args = None)

Variable Documentation

◆ _ENCODING_CONVERSIONS

dictionary ros_image_streamer.viewer_node._ENCODING_CONVERSIONS
private
Initial value:
1 = {
2  'rgb8': cv2.COLOR_RGB2BGR,
3  'mono8': None,
4  'bgr8': None,
5  'bayer_rggb8': cv2.COLOR_BayerRGGB2BGR,
6  'bayer_bggr8': cv2.COLOR_BayerBGGR2BGR,
7  'bayer_gbrg8': cv2.COLOR_BayerGBRG2BGR,
8  'bayer_grbg8': cv2.COLOR_BayerGRBG2BGR,
9 }

◆ _FREQ_WINDOW

int ros_image_streamer.viewer_node._FREQ_WINDOW = 30
private

◆ _HEADER_LINE_H

int ros_image_streamer.viewer_node._HEADER_LINE_H = 22
private

◆ _HEADER_PADDING

int ros_image_streamer.viewer_node._HEADER_PADDING = 10
private

◆ _HEADER_SCALE

float ros_image_streamer.viewer_node._HEADER_SCALE = 0.50
private

◆ _SINGLE_CHANNEL_ENCODINGS

dictionary ros_image_streamer.viewer_node._SINGLE_CHANNEL_ENCODINGS = {'mono8', 'bayer_rggb8', 'bayer_bggr8', 'bayer_gbrg8', 'bayer_grbg8'}
private