ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Display text in RViz

asked 2020-01-17 10:08:24 -0500

xbaelus gravatar image

Hi!

I want to display some text information in RViz GUI, but not associated to specific point but rather always visible to the user. Is it possible to to render text at a fixed position in view, or maybe display it in some other way?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-17 11:03:51 -0500

gvdhoorn gravatar image

You should be able to do this with the jsk_rviz_plugins package.

Specifically, the overlay_text plugin.

Screenshot from their documentation:

overlay text plugin

edit flag offensive delete link more

Comments

Thank you for the link to the very useful plugin. Is it possible though to use this to overlay text inside a camera image display window? If yes, how do i do it?

Amrita Suresh gravatar image Amrita Suresh  ( 2021-02-08 03:25:34 -0500 )edit

@Amrita Suresh, you can overlay text inside the camera image using OpenCV. First convert the ROS Image message to OpenCV image using CvBridge. Add text to the image frame. Reconvert this to a ROS Image message and publish to a different topic. You can view this new topic in the RViz display window. Some guidance on how to use CvBridge can be seen here

trunc8 gravatar image trunc8  ( 2021-07-31 23:15:57 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-01-17 10:08:24 -0500

Seen: 2,472 times

Last updated: Jan 17 '20