Gazebo | Ignition | Community
Ask Your Question

How actuators and sensonrs communicate in Gazebo ?

asked 2014-10-23 15:55:13 -0500

djou07 gravatar image


I know that interface in Gazebo is with plugins and sockets (or a middleware like ROS). Plugins provides users a direct access to Gazebo libraries (so we can change for example properties of a model directly) and sockets are used to communication between server and client and enter-process.

But what I don't understand is how sensors and actuators communicate ?

I am a bit confused ?

Thanks in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-03 14:03:40 -0500

Usually there is a software module in the middle that is considered your robot controller. It reads from sensors and it sends commands to actuators. Often, how your robot reacts to sensor inputs depends on your application and your situation, so this middle layer is usually your custom code. I'm not sure if this answers your question or not.

edit flag offensive delete link more


thanks for your response, so this software module in the middle is the plugin ?

djou07 gravatar imagedjou07 ( 2014-11-05 04:40:47 -0500 )edit

The Gazebo plugins are there to simulate sensors or to simulate the motors or actuators of your simulated robot. For example, there's an ultrasonic sensor plugin that looks at what's in front of the sensor and publishes a sensormsgs/Range message. There is also a differential drive plugin that looks at input from a geometrymsgs/Twist message and turns the simulated robot's wheels appropriately. The code that looks at the Range data and publishes Twist commands is your custom robot code.

Kurt Leucht gravatar imageKurt Leucht ( 2015-09-14 10:16:47 -0500 )edit

Question Tools


Asked: 2014-10-23 15:55:13 -0500

Seen: 571 times

Last updated: Nov 03 '14