How can I modify or change parameters or topics' names wrt laser_scan?

asked 2019-09-16 01:27:54 -0600

kane_choigo gravatar image

Hi, I'm working on ROS kinetic in Ububtu 16.04.

I'm trying to modify some launch or source files to do simple practice. (To be honest, that package is .)

But unfortunately, my 2D lidar sensor of Hokuyo seems to be unacceptable to the above package. (In the above package, it uses SICK LMS200-style sensors with 0.5 deg angular resolution.)

I guess the reason why my sensor's scan data should not be acceptable would be below: the names of laser topics could be at odds with each other.

And really really really unfortunately, I can't find where to modify.

If you happened to have ever had used released packages with your own message or topics, please help me.

Thanks in advance :)

Best regard

edit retag flag offensive close merge delete


Just changing the topic name will not do anything since you have laserscan and the package you have mentioned requires RGB-D data

Choco93 gravatar image Choco93  ( 2019-09-16 02:58:03 -0600 )edit

Also I have Asus Xtion pro for this package so that I can get RGB-D data.

kane_choigo gravatar image kane_choigo  ( 2019-09-16 23:02:06 -0600 )edit

Then you just need to remap topic names of Xtion pro to match that from spencer or vice-versa.

Choco93 gravatar image Choco93  ( 2019-09-17 01:29:18 -0600 )edit

Thank you so much. I'm doing it now but is it not necessary to modify other source codes( kinds of .cpp or .py ) since I just run this package by roslaunch?

kane_choigo gravatar image kane_choigo  ( 2019-09-17 01:46:59 -0600 )edit

No need to modify any code, you just need to make sure that required topics are available and that their names match

Choco93 gravatar image Choco93  ( 2019-09-17 02:00:39 -0600 )edit