# How to use two gmapping packages simultaneously

Hi all, I was trying to use two gmapping packages, one is the original one, and the another is modified one. Following is what I did:

1. clone gmapping package

2. rename the folder (slam_gampping_modi)

3. modify CMAKE file

4. compile

But it just destroyed everything, somehow my AMCL didn't work. (which is another one mystery and I had to reinstall my ubuntu this afternoon

I think the problem is the modification of CMAKE file, so could anyone please tell me which part of this file I need to change so it will be dealt as a new package?

edit retag close merge delete

1

This sounds a lot like an xy-problem. What are actually trying to do?

For the ROS world, the package name is actually not specified in the CMakeLists.txt, but in the package.xml. Ideally, this is the same as the project_name in the CMakeLists.txt. But this is no ..

( 2018-11-14 00:58:40 -0500 )edit

requirement.

However, just changing the CMakeLists.txt might destroy your workspace, which is easily recoverable. But by no means this should lead to you having to reinstall Ubuntu... You would have to jump through some hoops to achieve this, if you wanted to...

( 2018-11-14 01:00:09 -0500 )edit

yeah I admit it, it seems like a xy-problem now...what I'm trying to do is solve my previous questionlink text. I thought I can realize my goal by change a default parameter in the source code, but I still need the ..

( 2018-11-14 01:11:33 -0500 )edit

original one, so that's where this question came from. I guess the right thing to do is write a subscriber, but I don't know how to load this subscribed map into a local variable of a function. Because I was a new bee lol, that's also the reason I reinstall my system, to me that's the fastest way

( 2018-11-14 01:14:19 -0500 )edit