ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Queries about sensors in simulation

asked 2012-10-17 00:36:02 -0600

ChengXiang gravatar image

updated 2014-01-28 17:13:57 -0600

ngrennan gravatar image

Hi. I am a new user to ROS and have some questions regarding the use of sensors in simulation.

I undrstand that in order to simulate a sensors, you need to write the gazebo extension for it in the robot's URDF file My doubts are mainly about the elements in the gazebo's extension block.

First of all, am I right to said that the controllers are what that operate the sensors in gazebo? So do I need to install drivers for sensors at all?

To use the controller, you need to choose the correct plugins, but where do we download the plugins from? The sensor's wiki page?

Lastly, how do we know what to include in the elements within the <controller> element? So far what I did is just refer the code block from robots like turtlebot without understanding what each part is for.

I checked this website, but it is still work in process.

Thank you.Pardon me if my questions sounds amatuerish.

edit retag flag offensive close merge delete

Comments

What type(s) of sensors are you interested in learning more about?

SL Remy gravatar image SL Remy  ( 2012-10-17 07:29:10 -0600 )edit

Hi. Right now I am trying to learn more about camera sensor. But as my project progress, I might also need to incorporate IMU and GPS.

ChengXiang gravatar image ChengXiang  ( 2012-10-17 16:34:36 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-10-18 02:53:10 -0600

SL Remy gravatar image

updated 2012-10-18 10:50:38 -0600

The site is still being developed but keep your eye on the sensors page.

All the sensors that you've mentioned (camera, gps, imu) do already exist.

Some are provided by gazebo, and others are provided as plugins by the ROS community.

(gazebo "native" examples include include CameraSensor, ContactSensor, DepthCameraSensor, ImuSensor, RaySensor, RFIDSensor, RFIDTag) and check out Team Hector's ROS gazebo plugins.

An example of how they use their camera can be seen in quadrotor_with_cam.urdf.xacro.

edit flag offensive delete link more

Comments

Thanks trinighost. The team Hector's site answers my doubt on the XML's parameter. So I will not need to install sensors' drivers for simulation? Just the plugin will do?

ChengXiang gravatar image ChengXiang  ( 2012-10-18 04:35:04 -0600 )edit

I think it's safe to consider a gazebo plugin as the equivalent of a sensor driver..

SL Remy gravatar image SL Remy  ( 2012-10-18 04:53:23 -0600 )edit

And you will need to "install" (i.e. download/checkout/rosinstall then rosmake) the packages that have the plugins that you need.

SL Remy gravatar image SL Remy  ( 2012-10-18 04:55:03 -0600 )edit

I see. That is what I think too. Just that I wasn't too sure about that. Thanks for clarifying.

ChengXiang gravatar image ChengXiang  ( 2012-10-18 05:16:22 -0600 )edit

Note that the hector_gazebo stack is released since a couple of weeks at least for ROS fuerte, so you can simply run "sudo apt-get install ros-fuerte-hector-gazebo" to make the sensor plugins available.

Johannes Meyer gravatar image Johannes Meyer  ( 2012-10-19 23:39:55 -0600 )edit

I see. Thank you.

ChengXiang gravatar image ChengXiang  ( 2012-10-20 22:59:43 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2012-10-17 00:36:02 -0600

Seen: 1,464 times

Last updated: Oct 18 '12