ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Robot in Stage with two Infrared Sensors

asked 2013-03-28 10:54:21 -0600

MiguelRobPinto gravatar image

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

ngrennan gravatar image


I would like to simulate a robot, in the stage, with two infra-red sensors, is it possible? I tried to put two Laser Range Finders with only one measurement, but it didn't result!

Someone can help me?

Thanks in advance

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-02 08:56:53 -0600

bombilee gravatar image

I have two Sharp GP2D12 IR sensor for my old roomba-create project. This is the setting for the sensor in the world file, they will use the same interface as laser. You can adjust the fov depending on your actual setup on the robot.

define GD2D12 ranger
    range [ 0.10 0.8 ]
    fov 180.0
    samples 2
  size [ 0.02 0.04 0.02 ]
edit flag offensive delete link more

answered 2013-03-29 11:49:57 -0600

BlackManta gravatar image

updated 2013-03-29 11:50:34 -0600

I am pretty sure stage views laser as continuous scan. I don't know what would happen with only 1 reading (apparently it doesn't work).

I can't remember but if you can use sonar in ROS stage (I thought you could), but if you can you could create a sonar with two readings at +/- 45 degrees (or whatever your sensors are at).

I only used sonar with the old player/stage system, I am not sure if ROS stage has sonar.

edit flag offensive delete link more


@BlackManta Nope !! I am sure that the stage wrapper doesn't wrap in sonars ! only lasers ! .... :-(

Arkapravo gravatar image Arkapravo  ( 2013-04-03 21:47:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-03-28 10:54:21 -0600

Seen: 450 times

Last updated: Apr 02 '13