That probably deserves some bug reports instead of a thread but I fixed the redefined error in the ROS wrappers last week in SVN:
https://code.ros.org/svn/ros-pkg/stacks/slam_gmapping/trunk/gmapping/gmapping-r39-2.patch

gmapping compiles on gcc 4.7 now.

Not sure about your other error.

On Sun, May 6, 2012 at 8:54 AM, Kevin Walchko <kevin.walchko@gmail.com> wrote:
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!
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users