slam_gmapping icon indicating copy to clipboard operation
slam_gmapping copied to clipboard

does it run in ros2 foxy?

Open ashsifat opened this issue 3 years ago • 3 comments

I was trying to build it in ros2-foxy using colcon build and have this error. Starting >>> slam_gmapping --- stderr: slam_gmapping
-fuse-ld=lld -Wl,--disable-new-dtags In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:9, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h: In function ‘void rle(OutputIterator&, const Iterator&, const Iterator&)’: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h:140:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 140 | if (count>0) | ^~ /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/particlefilter/particlefilter.h:142:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 142 | out++; | ^~~ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:10, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/utils/point.h: At global scope: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/utils/point.h:205:2: warning: extra ‘;’ [-Wpedantic] 205 | }; //end namespace | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_base/sensorreading.h:4, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:6, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_base/sensor.h:21:2: warning: extra ‘;’ [-Wpedantic] 21 | }; //end namespace | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:6, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_base/sensorreading.h:23:2: warning: extra ‘;’ [-Wpedantic] 23 | }; //end namespace | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:7, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_odometry/odometrysensor.h:17:2: warning: extra ‘;’ [-Wpedantic] 17 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:8, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_range/rangesensor.h:33:2: warning: extra ‘;’ [-Wpedantic] 33 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:9, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_odometry/odometryreading.h:27:2: warning: extra ‘;’ [-Wpedantic] 27 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:10, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/sensor/sensor_range/rangereading.h:24:2: warning: extra ‘;’ [-Wpedantic] 24 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:11, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/configuration.h:15:2: warning: extra ‘;’ [-Wpedantic] 15 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:12, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/log/sensorlog.h:27:2: warning: extra ‘;’ [-Wpedantic] 27 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/map.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:3, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/accessstate.h:6:2: warning: extra ‘;’ [-Wpedantic] 6 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/map.h:6, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:3, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/array2d.h:185:2: warning: extra ‘;’ [-Wpedantic] 185 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:3, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/map.h:262:2: warning: extra ‘;’ [-Wpedantic] 262 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/harray2d.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:4, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/utils/autoptr.h:96:2: warning: extra ‘;’ [-Wpedantic] 96 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:4, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/grid/harray2d.h:197:2: warning: extra ‘;’ [-Wpedantic] 197 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:5, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/smmap.h:52:2: warning: extra ‘;’ [-Wpedantic] 52 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:7, from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/utils/stat.h:145:2: warning: extra ‘;’ [-Wpedantic] 145 | }; //end namespace | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:15, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/scanmatcher/scanmatcher.h:250:2: warning: extra ‘;’ [-Wpedantic] 250 | }; | ^ In file included from /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:16, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/motionmodel.h:17:2: warning: extra ‘;’ [-Wpedantic] 17 | }; | ^ In file included from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/include/slam_gmapping/slam_gmapping.h:45, from /home/ash/dev_ws/src/slam_gmapping/slam_gmapping/src/slam_gmapping.cpp:24: /home/ash/dev_ws/install/openslam_gmapping/include/gmapping/gridfastslam/gridslamprocessor.h:335:2: warning: extra ‘;’ [-Wpedantic] 335 | }; | ^

Finished <<< slam_gmapping [7.90s]

Summary: 3 packages finished [11.5s] 1 package had stderr output: slam_gmapping

ashsifat avatar May 06 '21 11:05 ashsifat

Yes it compiled successfully. It does work in foxy as well.

shiveshkhaitan avatar May 06 '21 14:05 shiveshkhaitan

any idea why this error is happening in foxy? i tried building the master branch using colcon build.

ashsifat avatar May 07 '21 00:05 ashsifat

There is no error. These are just warnings. You can ignore them.

shiveshkhaitan avatar May 07 '21 02:05 shiveshkhaitan