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

how to visualize quadrangle in rviz

asked 2012-03-12 15:54:49 -0600

clark gravatar image

I am looking for a proper way to visualize quadrangles in rviz. The quadrangles are from a dynamically updated map representing a terrain environment.

The closest display type I can find in rviz is the 2d map, but it is limited to 2d flat ground while in my case the elevation of cells has to be considered; another close approach is to visualize the vertexes of quadrangle, but no color filling of the quadrangles can be achieved.

thanks for any advices clark

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-03-13 07:04:57 -0600

dornhege gravatar image

The best way is probably to manually generate triangles for a visualization_msgs/Marker.

edit flag offensive delete link more

Comments

Agree, I think this a way worth trying. Thanks.

clark gravatar image clark  ( 2012-03-13 19:05:02 -0600 )edit
0

answered 2012-03-13 09:26:16 -0600

mjcarroll gravatar image

You can also use the Polygon DisplayType.

It accepts a PolygonStamped message and displays it in rviz for you.

I have used this before to demonstrate a boundary of a field. This will not fill in the polygon for you, though.

edit flag offensive delete link more

Comments

noted. the limit is that no fill for the polygon is provided.

clark gravatar image clark  ( 2012-03-13 17:38:25 -0600 )edit

I think that if you want fill, then Marker is the way to go. You could "triangulate" your polygon, which is commonly done in computer graphics.

mjcarroll gravatar image mjcarroll  ( 2012-03-13 18:18:28 -0600 )edit

Question Tools

Stats

Asked: 2012-03-12 15:54:49 -0600

Seen: 839 times

Last updated: Mar 13 '12