Hi Zac,
Sorry for the delay, took more time than I expected. Anyways I tested everything, I think the topics and frame_ids are all fine, should be good to work!
If you notice anything wrong let me know, I should now clean up the code and re-submit my patch :D I'll wait for some news from you first though, to make sure everything's ok this time!
To run this version of stage just unzip the stack, place it under your ros stack path and do:
$ rospack find new_stage
$ rosmake new_stage
$ roscore
On a new terminal window/tab:
$ roscd new_stage
$ rosrun new_stage newstageros world/willow-roomba_ranger_laser.world
This world file has 2 robots on the willow map, one with an array of sonars and another one with 2 lasers.
I changed the names of the stack, pkg etc etc so there's no trouble with the installed version of simulator_stage. Also I added the Range msgs to that stage pkg just for testing since it isen't part of sensor_msgs yet.
Hope this helps,
Gonçalo Cabrita
ISR - University of Coimbra
Portugal
On Fri, Dec 3, 2010 at 9:10 PM, zdydek
<zac@mit.edu> wrote:
Gonçalo,
I was able to find a copy of your patch and played around a bit with it.
Nice work! I made some changes that work for my system, but are not very
general. In particular, I added frame_id's for the two lasers on my robot so
that messages posted to the /scan topic have the right frame id's and can be
used by amcl and everything else.
Still...I'm noticing some strange behavior, so I look forward to seeing your
changes. Maybe they will resolve my issues as well.
Thanks!
-Zac
--
View this message in context: http://ros-users.122217.n3.nabble.com/Simulating-multiple-laser-scanners-in-Stage-tp2008197p2014313.html