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:
clone gmapping package
rename the folder (slam_gampping_modi)
modify CMAKE file
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?
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 thepackage.xml
. Ideally, this is the same as theproject_name
in theCMakeLists.txt
. But this is no ..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...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 ..
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