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

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

Hi,

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
1

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
(
  sensor(
    range [ 0.10 0.8 ]
    fov 180.0
    samples 2
  )
  size [ 0.02 0.04 0.02 ]
)
edit flag offensive delete link more
0

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

Comments

@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

Question Tools

Stats

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

Seen: 511 times

Last updated: Apr 02 '13