ros_gazebo_gym.common.markers.text_overlay

Contains a class that can be used for displaying text in RViz.

Note

This class overloads the jsk_rviz_plugins.msgs.OverlayText class in order to pre-initialize some of its attributes. It further automatically makes sure the text width and height are not to small.

Module Contents

Classes

TextOverlay

RViz text overlay.

class ros_gazebo_gym.common.markers.text_overlay.TextOverlay(*args, **kwargs)[source]

Bases: jsk_rviz_plugins.msg.OverlayText

RViz text overlay.

Note

When no width or height are supplied it makes sure that the display fits all the text.

action

The marker message action (add or remove).

Type:

float

width

The overlay width.

Type:

int

height

The overlay height.

Type:

int

left

Position relative to the left.

Type:

int

top

Position relative to the top.

Type:

int

bg_color

The overlay background color.

Type:

std_msgs.ColorRGBA

fg_color

The text color.

Type:

std_msgs.ColorRGBA

line_width

The text line width.

Type:

int

font

The font.

Type:

str

text

The text.

Type:

str

Initialize text overlay object.

property text_size[source]

Retrieve the text size.