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

Revision history [back]

click to hide/show revision 1
initial version

Just encountered the same.

Apparently, you just need to replace all occurrences of "laser" with "ranger" (as per this post )

Here's a handy one-liner to do so (for all stage files below current directory):

perl -p -i -e 's/laser/ranger/g' $(find . -name *.world) $(find . -name *.inc)

I also notice the upgrade-world.sh script in stage pkg... may be useful for getting rid of other deprecated stuff in your .world files?

Just encountered the same.

Apparently, you just need to replace all occurrences of "laser" with "ranger" (as per this post )

Here's a handy one-liner to do so (for all stage files below current directory):

perl

`perl -p -i -e 's/laser/ranger/g' $(find . -name *.world) $(find . -name *.inc)

*.inc)`

I also notice the upgrade-world.sh `upgrade-world.sh` script in stage pkg... may be useful for getting rid of other deprecated stuff in your .world files?files? UPDATE: looks like you also have to wrap your laser in a "sensor" block... So the old sick.inc ...

define sick laser
(
    range_max 80
    fov 180.0
    samples 180
    size [ 0.156 0.155 0.19 ]
)

Has now become:

define sick ranger
(
  sensor(
    range_max 80
    fov 180.0
    samples 180
    size [ 0.156 0.155 0.19 ]
  )
)

Just encountered the same.

Apparently, you just need to replace all occurrences of "laser" with "ranger" (as per this post )

Here's a handy one-liner to do so (for all stage files below current directory):

`perl -p -i -e 's/laser/ranger/g' $(find . -name *.world) $(find . -name *.inc)`
I also notice the `upgrade-world.sh` script in stage pkg... may be useful for getting rid of other deprecated stuff in your .world files? UPDATE: looks like you also have to wrap your laser in a "sensor" block... So the old sick.inc ...
define sick laser
(
    range_max 80
    fov 180.0
    samples 180
    size [ 0.156 0.155 0.19 ]
)

Has now become:

define sick ranger
(
  sensor(
    range_max 80
range [ 0 80 ]
    fov 180.0
    samples 180
  )
  size [ 0.156 0.155 0.19 ]
  )
)