ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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?
2 | No.2 Revision |
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
upgrade-world.sh
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 ] ) )
3 | No.3 Revision |
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 80range [ 0 80 ] fov 180.0 samples 180 ) size [ 0.156 0.155 0.19 ]))