[ros-users] Errors compiling gmapping

Kevin Walchko kevin.walchko at gmail.com
Sun May 6 15:54:42 UTC 2012


OSX 10.7.2
Fuerte
XCode 4.3.2


I found a strange error in gmapping under build/gmapping_export/gridfastslam/gfs2rec.cpp, for some reason i gets redefined (line 148)? 

struct ResampleRecord: public Record{
	vector<unsigned int> indexes;
	virtual void read(istream& is){
		is >> dim;
		for (unsigned int i=0; i< dim; i++){
			unsigned int i; <<<<<<< why redefined???
			is >> i;
			indexes.push_back(i);
		}
	}
};

Unfortunately all of this code appears to be in a tar ball so when I fix the code and do a make clean, it all gets erased and downloaded again. 

I tried not doing the make clean, but it still fails because the makefile tries to reapply patches to code it already applied patches too. I commented out the code in cmakelists.txt so it can move on (it failed because of the failed patch re-applies), but then the next errors are the paths are not setup correctly.

/Users/kevin/ros_sandbox/stacks/geometry/tf/include/tf/tf.h:91:23: warning: 
      in-class initializer for static data member of type 'const double' is a
      GNU extension [-Wgnu]
  static const double DEFAULT_CACHE_TIME = 10.0;  //!< The default ...
                      ^                    ~~~~
In file included from /Users/kevin/ros_sandbox/stacks/slam_gmapping/gmapping/src/slam_gmapping.cpp:107:
/Users/kevin/ros_sandbox/stacks/slam_gmapping/gmapping/src/slam_gmapping.h:28:10: fatal error: 
      'gmapping/gridfastslam/gridslamprocessor.h' file not found
#include "gmapping/gridfastslam/gridslamprocessor.h"
         ^
1 warning and 1 error generated.

This code is hosed … I assume it runs on Linux right? How can I fix the include path?
Thanks!


More information about the ros-users mailing list