Gazebo | Ignition | Community
Ask Your Question

How to create sensor that is affected by environment stimuli of simulation?

asked 2023-06-27 13:44:34 -0500

ymoghadd gravatar image


How must I go about creating a sensor plugin that is affected by environment stimuli of the simulation (e.g. a sensor whose values are affected by the wind speed)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-06-28 20:26:26 -0500

Veerachart gravatar image

There is a function Wind() available from the physics::World which gives you the wind used in this world. From that, wind's velocity can be obtained, and even modified.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2023-06-27 13:44:34 -0500

Seen: 62 times

Last updated: Jun 28 '23