How to use two gmapping packages simultaneously

asked 2018-11-13 19:01:32 -0600

Hui Zhang gravatar image

updated 2018-11-13 19:02:40 -0600

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 flag offensive close merge delete

Comments

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 ..

mgruhler gravatar image mgruhler  ( 2018-11-14 00:58:40 -0600 )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...

mgruhler gravatar image mgruhler  ( 2018-11-14 01:00:09 -0600 )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 ..

Hui Zhang gravatar image Hui Zhang  ( 2018-11-14 01:11:33 -0600 )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

Hui Zhang gravatar image Hui Zhang  ( 2018-11-14 01:14:19 -0600 )edit