Gazebo | Ignition | Community
Ask Your Question

Simulation and real life - add external disturbances

asked 2019-04-12 06:34:52 -0500

Dylan gravatar image

I'm trying to simulate my quadcopter in Gazebo using ROS Kinetic, but the problem is that the simulation is ideal and everything works perfectly, but when I go to the real life it doesn't work as expected.

That's why I'm trying to add noise to my quadcopter movements. For example, I would like to publish a sine movement in x and y axis and, over that, my control. So, I think that the solution would be 2 topics publishing in the same node (/cmd_vel) but with movements being added, I mean, not one topic publishing or the other. For example, if my noise is 1.5 in an instant and the control is -0.4, then what I want to publish in that instant is 1.1

How can I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-12 09:56:44 -0500

froohoo gravatar image

updated 2019-04-12 10:00:26 -0500

It seems like you could write a Gazebo plugin (like but instead of applying a constant force in one direction, apply Gaussian noise (or some other distribution) in all 3 directions to your quadcopter. This assumes you are trying to simulate environmental disturbances like turbulence, updrafts etc...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-04-12 06:34:52 -0500

Seen: 141 times

Last updated: Apr 12 '19