Robotics StackExchange | Archived questions

compile gmapping with debug options

Hi everyone

I'm trying to recompile the gmapping node with the debug options in order to perform some analysis with valgrind but I need to compile all the code in debug mode.

On all the nodes I used until today (with rosbuild, since gmapping is not catkinized yet) to compile in debug mode I use the common way based on ROSBUILDTYPE:

# Set the build type.  Options are:
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
#  Debug          : w/ debug symbols, w/o optimization
#  Release        : w/o debug symbols, w/ optimization
#  RelWithDebInfo : w/ debug symbols, w/ optimization
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries

set(ROS_BUILD_TYPE Debug)

I tried also with the CMakeList of gmapping but it does not work.. I think the issue is hidden in this following line of the CMakeList

# Build GMapping
execute_process(COMMAND cmake -E chdir ${PROJECT_SOURCE_DIR} make -f Makefile.gmapping RESULT_VARIABLE _make_failed)

does anyone have an idea? thx, byeee!

Augusto

update 05/21/2013 I opened an issue at github and thanks to hershwg first (draft) solution is ready. check it out here: https://github.com/ros-perception/slam_gmapping/issues/5 As soon as I'll have time to close the issue I'll put an answer here.

Asked by Augusto Luis Ballardini on 2013-05-15 11:54:11 UTC

Comments

It is happy if you posted the answer here!

Asked by kaviranga on 2016-08-14 06:57:13 UTC

Gmapping has been catkinize so you should write the answer and close this question.

Asked by dgangwar on 2017-05-09 00:23:52 UTC

Answers