Gazebo | Ignition | Community
Ask Your Question
0

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

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

ymoghadd gravatar image

Hello,

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
0

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

Stats

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

Seen: 62 times

Last updated: Jun 28 '23