Gazebo | Ignition | Community
Ask Your Question

How to do an arrow/line that indicates wind direction?

asked 2023-03-16 08:29:29 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


For my thesis I need an arrow/line that indicate the wind direction on gazebo. I define the wind direction on my .world file and I have a ros topic that publish that information too and I can subscribe it, but I don't know how can make an arrow on gazebo that indicates the direction of the wind...

Something like this...

image description

Does anyone know how I can do it? Any idea?

Please help! Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-03-20 02:34:56 -0500

Veerachart gravatar image

Maybe a GUI plugin that subscribes to the topic (or get the wind from physics interface), and use this ArrowVisual class?

edit flag offensive delete link more


Sorry for my ignorance... But how can I do that?

jpftavares gravatar imagejpftavares ( 2023-03-20 10:53:40 -0500 )edit

Maybe start from this tutorial about showing things in the GUI? More resources can be found in the links provided in here. Example plugins can also be found in the github repo.

Veerachart gravatar imageVeerachart ( 2023-03-22 20:12:35 -0500 )edit

Thanks! I will try!

jpftavares gravatar imagejpftavares ( 2023-03-23 10:19:11 -0500 )edit

At the moment the solution I have found was draw the dash line and arrow on blender and import to gazebo as .dae file and works for now. The dash line I attached to the robot (only with visual properties) and the arrow I create a SDF Model and included on .world file

jpftavares gravatar imagejpftavares ( 2023-03-23 10:21:18 -0500 )edit

I would also be interested in this but for the newer gz-sim instead of gazebo classic. I'm looking for an arrow or marker that would follow the model and show the direction of wind even when the model itself rotates. I'm looking into plugins now but if anyone else has had luck let me know!

gragleas gravatar imagegragleas ( 2023-03-23 13:20:20 -0500 )edit

Question Tools

1 follower


Asked: 2023-03-16 08:29:29 -0500

Seen: 134 times

Last updated: Mar 20 '23