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

How to draw circles with RVIZ markers?

asked 2019-06-18 10:28:17 -0600

Mobile_robot gravatar image

updated 2019-06-18 13:00:14 -0600

Hello all,

I would like to indicate a special zone around an object (for instance a cube) in RVIZ by a marker. I have looked at the basic_marker tutorial and it is possible to creat this zone by a LINE_STRIP. But I was wondering if we can create a one like the Interactive Markers. I have looked the documents and I did not find that the circle around the object like the one on ChessPiece is configurable.

Do you have any idea how to do it correctly?

Thanks,

edit retag flag offensive close merge delete

Comments

Assuming you just want the circle to look the same as the one used by the interactive markers then you can reproduce it using a triangle list marker and setting the alpha transparency of the whole marker to around 50%.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-06-18 10:37:41 -0600 )edit

There are marker types for CUBE, SPHERE and CYLINDER. Would those be sufficient for what you're trying to do?

A circle can be made from a really flat cylinder.

or does it need to be an 'open' circle (ie: not a filled one)?

gvdhoorn gravatar image gvdhoorn  ( 2019-06-18 10:43:57 -0600 )edit

thanks for your comment @gvdhoorn, I found exactly the CYLINDER shape marker as the easiest solution.

Mobile_robot gravatar image Mobile_robot  ( 2019-06-19 01:55:42 -0600 )edit

@PeteBlackerThe3rd thanks for your comment.

Mobile_robot gravatar image Mobile_robot  ( 2019-06-19 01:56:37 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-06-19 01:54:39 -0600

Mobile_robot gravatar image

As I understood, based on your application and your requirement there exist different solutions. For my case as @gvdhoorn mentioned it can be solved by a CYLINDER shape marker.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-06-18 10:28:17 -0600

Seen: 2,519 times

Last updated: Jun 19 '19