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

Help Required! Changing Subscribed Topics of a Package

asked 2017-11-01 07:06:25 -0500

AllanXyl gravatar image

Greeting friends, I am currently working on a low cost method of mapping and I have decided to use ultrasonic to do it.

Ultrasonic Range Package:

Mapping Package:

The problem is the ultrasonic publishes a "sensor" topic while the mapping subscribes to "scan". Is there a method to make the mapping package subscribe to "sensor" instead?

Cheers, Thanks for your time.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-01 13:02:14 -0500

gvdhoorn gravatar image

This is a question of semantics. A single measurement is not directly equivalent to a "scan", at least the the type that gmapping is looking for (LaserScan). You'll have to find (or implement) a node that converts your ultrasonic range measurements into a (poor) LaserScan msg.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-11-01 07:06:25 -0500

Seen: 86 times

Last updated: Nov 01 '17