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

Is there any way to add multiple topurg rangers to a robot in ros stage?

asked 2014-07-08 12:58:07 -0500

robospace gravatar image

We are using ros stage in both hydro and indigo.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-09 14:54:54 -0500

allenh1 gravatar image

updated 2014-07-11 10:49:35 -0500

Yes, but I'm not sure why you'd need to... This would be configured in the .world file.

define hokuyolaser ranger
(
  sensor(       
    range [ 0.0  5.0 ]
    fov 270
   samples 270
  )

  # generic model properties
  color "blue"
  size [ 0.07 0.07 0.05 ] # dimensions from LMS200 data sheet 
)

define hokuyorapid ranger
(
  sensor(       
    range [ 0.0  4.0 ]
    fov 240
   samples 240
  )

  color "blue"
  size [ 0.073 0.060 0.055 ]
)

pioneer3dx
(         
  # can refer to the robot by this name
  name "pioneer"
  pose [92 46 0 0] 

  hokuyorapid(color "blue")
  hokuyolaser(color "red")
)

This is an example. I didn't add the pose variable in the configuration, so they would be on top of one another if input as such. Put them at different positions.


Update: Stage will not allow for a single robot to have multiple rangefinders... But, you could use sonar in addition to a laser rangefinder (I know this for a fact - I did this all the time when I was using player... Ah, back in the day.)

edit flag offensive delete link more

Comments

I am getting this error message when include more than one laser in a world file [FATAL] [1405007574.089127505]: number of position models and laser models must be equal in the world file. [FATAL] [1405007574.089237927]: BREAKPOINT HIT

robospace gravatar image robospace  ( 2014-07-10 10:56:00 -0500 )edit

Haha, well I guess that answers that question. Sorry, didn't try it myself. Apparently Stage is not ok with that. I shall update my answer accordingly.

allenh1 gravatar image allenh1  ( 2014-07-11 10:47:22 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-08 12:58:07 -0500

Seen: 473 times

Last updated: Jul 11 '14