Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

laser_scan_matcher building problem

Basically I'm trying to get laser scanner data in world coordinates. I would like to make it possible to get the whole point cloud data with subscriber node from python code to work on it (I'm making project of detecting moving objects from laser scanner data). If any of you guys reading this post have some experience in this topic i would like to ask some more questions.

I'm new to ROS and I'm not sure if this is the right package to use in this case. So the problem is, while I'm trying to build package from these steps : $ cd [indigo catkin workspace directory] $ git clone https://github.com/ccny-ros-pkg/scan_tools $ sudo apt-get install libgsl0-dev $ catkin_make $ roslaunch laser_scan_matcher demo.launch

After running catkin build I receive an error saying :

Errors     << laser_scan_matcher:cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_matcher/build.cmake.000.log
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:21 (pkg_check_modules)


cd /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/build/laser_scan_matcher; catkin build --get-env laser_scan_matcher | catkin env -si  /usr/bin/cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_matcher --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/devel/.private/laser_scan_matcher -DCMAKE_INSTALL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/install; cd -
...............................................................................
Failed     << laser_scan_matcher:cmake               [ Exited with code 1 ]    
Failed    <<< laser_scan_matcher                     [ 5.3 seconds ]           
Finished  <<< ncd_parser                             [ 9.5 seconds ]           
_______________________________________________________________________________
Warnings   << laser_scan_sparsifier:make /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_sparsifier/build.make.000.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/include/laser_scan_sparsifier/laser_scan_sparsifier.h:33,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:30:
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp: In constructor ‘scan_tools::LaserScanSparsifier::LaserScanSparsifier(ros::NodeHandle, ros::NodeHandle)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: unknown conversion type character ‘,’ in format [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:348:176: warning: too many arguments for format [-Wformat-extra-args]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~

The rest of the packages is being built successfully.

Finished  <<< laser_scan_sparsifier                  [ 10.5 seconds ]          
Finished  <<< polar_scan_matcher                     [ 11.2 seconds ]          
Finished  <<< laser_scan_splitter                    [ 12.1 seconds ]          
Finished  <<< scan_to_cloud_converter                [ 15.9 seconds ]          
Finished  <<< laser_ortho_projector                  [ 23.7 seconds

I work on Ubunti 18.04 LTS and ROS Melodic

laser_scan_matcher building problem

Basically I'm trying to get laser scanner data in world coordinates. I would like to make it possible to get the whole point cloud data with subscriber node from python code to work on it (I'm making project of detecting moving objects from laser scanner data). If any of you guys reading this post have some experience in this topic i would like to ask some more questions.

I'm new to ROS and I'm not sure if this is the right package to use in this case. So the problem is, while I'm trying to build package from these steps : :

$ cd [indigo catkin workspace directory] $ git clone https://github.com/ccny-ros-pkg/scan_tools $ sudo apt-get install libgsl0-dev $ catkin_make $ roslaunch laser_scan_matcher demo.launch

After running catkin build I receive an error saying :

Errors     << laser_scan_matcher:cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_matcher/build.cmake.000.log
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:21 (pkg_check_modules)


cd /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/build/laser_scan_matcher; catkin build --get-env laser_scan_matcher | catkin env -si  /usr/bin/cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_matcher --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/devel/.private/laser_scan_matcher -DCMAKE_INSTALL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/install; cd -
...............................................................................
Failed     << laser_scan_matcher:cmake               [ Exited with code 1 ]    
Failed    <<< laser_scan_matcher                     [ 5.3 seconds ]           
Finished  <<< ncd_parser                             [ 9.5 seconds ]           
_______________________________________________________________________________
Warnings   << laser_scan_sparsifier:make /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_sparsifier/build.make.000.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/include/laser_scan_sparsifier/laser_scan_sparsifier.h:33,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:30:
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp: In constructor ‘scan_tools::LaserScanSparsifier::LaserScanSparsifier(ros::NodeHandle, ros::NodeHandle)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: unknown conversion type character ‘,’ in format [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:348:176: warning: too many arguments for format [-Wformat-extra-args]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~

The rest of the packages is being built successfully.

Finished  <<< laser_scan_sparsifier                  [ 10.5 seconds ]          
Finished  <<< polar_scan_matcher                     [ 11.2 seconds ]          
Finished  <<< laser_scan_splitter                    [ 12.1 seconds ]          
Finished  <<< scan_to_cloud_converter                [ 15.9 seconds ]          
Finished  <<< laser_ortho_projector                  [ 23.7 seconds

I work on Ubunti 18.04 LTS and ROS Melodic

laser_scan_matcher building problem

Basically I'm trying to get laser scanner data in world coordinates. I would like to make it possible to get the whole point cloud data with subscriber node from python code to work on it (I'm making project of detecting moving objects from laser scanner data). If any of you guys reading this post have some experience in this topic i would like to ask some more questions.

I'm new to ROS and I'm not sure if this is the right package to use in this case. So the problem is, while I'm trying to build package from these steps :

$ cd [indigo catkin workspace directory]
$ git clone https://github.com/ccny-ros-pkg/scan_tools
$ sudo apt-get install libgsl0-dev
$ catkin_make
$ roslaunch laser_scan_matcher demo.launch

demo.launch

After running catkin build I receive an error saying :

Errors     << laser_scan_matcher:cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_matcher/build.cmake.000.log
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:21 (pkg_check_modules)


cd /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/build/laser_scan_matcher; catkin build --get-env laser_scan_matcher | catkin env -si  /usr/bin/cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_matcher --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/devel/.private/laser_scan_matcher -DCMAKE_INSTALL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/install; cd -
...............................................................................
Failed     << laser_scan_matcher:cmake               [ Exited with code 1 ]    
Failed    <<< laser_scan_matcher                     [ 5.3 seconds ]           
Finished  <<< ncd_parser                             [ 9.5 seconds ]           
_______________________________________________________________________________
Warnings   << laser_scan_sparsifier:make /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_sparsifier/build.make.000.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/include/laser_scan_sparsifier/laser_scan_sparsifier.h:33,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:30:
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp: In constructor ‘scan_tools::LaserScanSparsifier::LaserScanSparsifier(ros::NodeHandle, ros::NodeHandle)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: unknown conversion type character ‘,’ in format [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:348:176: warning: too many arguments for format [-Wformat-extra-args]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~

The rest of the packages is being built successfully.

Finished  <<< laser_scan_sparsifier                  [ 10.5 seconds ]          
Finished  <<< polar_scan_matcher                     [ 11.2 seconds ]          
Finished  <<< laser_scan_splitter                    [ 12.1 seconds ]          
Finished  <<< scan_to_cloud_converter                [ 15.9 seconds ]          
Finished  <<< laser_ortho_projector                  [ 23.7 seconds

I work on Ubunti 18.04 LTS and ROS Melodic

laser_scan_matcher building problem

Basically I'm trying to get laser scanner data in world coordinates. I would like to make it possible to get the whole point cloud data with subscriber node from python code to work on it (I'm making project of detecting moving objects from laser scanner data). If any of you guys reading this post have some experience in this topic i would like to ask some more questions.

I'm new to ROS and I'm not sure if this is the right package to use in this case. So the problem is, while I'm trying to build package from these steps :(From THIS post):

$ cd [indigo catkin workspace directory]
$ git clone https://github.com/ccny-ros-pkg/scan_tools
$ sudo apt-get install libgsl0-dev
$ catkin_make
$ roslaunch laser_scan_matcher demo.launch

After running catkin build I receive an error saying :

Errors     << laser_scan_matcher:cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_matcher/build.cmake.000.log
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:21 (pkg_check_modules)


cd /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/build/laser_scan_matcher; catkin build --get-env laser_scan_matcher | catkin env -si  /usr/bin/cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_matcher --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/devel/.private/laser_scan_matcher -DCMAKE_INSTALL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/install; cd -
...............................................................................
Failed     << laser_scan_matcher:cmake               [ Exited with code 1 ]    
Failed    <<< laser_scan_matcher                     [ 5.3 seconds ]           
Finished  <<< ncd_parser                             [ 9.5 seconds ]           
_______________________________________________________________________________
Warnings   << laser_scan_sparsifier:make /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_sparsifier/build.make.000.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/include/laser_scan_sparsifier/laser_scan_sparsifier.h:33,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:30:
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp: In constructor ‘scan_tools::LaserScanSparsifier::LaserScanSparsifier(ros::NodeHandle, ros::NodeHandle)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: unknown conversion type character ‘,’ in format [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:348:176: warning: too many arguments for format [-Wformat-extra-args]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~

The rest of the packages is being built successfully.

Finished  <<< laser_scan_sparsifier                  [ 10.5 seconds ]          
Finished  <<< polar_scan_matcher                     [ 11.2 seconds ]          
Finished  <<< laser_scan_splitter                    [ 12.1 seconds ]          
Finished  <<< scan_to_cloud_converter                [ 15.9 seconds ]          
Finished  <<< laser_ortho_projector                  [ 23.7 seconds

I work on Ubunti 18.04 LTS and ROS Melodic

laser_scan_matcher building problem

Basically I'm trying to get laser scanner data in world coordinates. I would like to make it possible to get the whole point cloud data with subscriber node from python code to work on it (I'm making project of detecting moving objects from laser scanner data). If any of you guys reading this post have some experience in this topic i would like to ask some more questions.

I'm new to ROS and I'm not sure if this is the right package to use in this case. So the problem is, while I'm trying to build package from these steps (From THIS post):

$ cd [indigo catkin workspace directory]
$ git clone https://github.com/ccny-ros-pkg/scan_tools
$ sudo apt-get install libgsl0-dev
$ catkin_make
$ roslaunch laser_scan_matcher demo.launch

After running catkin build I receive an error saying :

Errors     << laser_scan_matcher:cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_matcher/build.cmake.000.log
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
  CMakeLists.txt:21 (pkg_check_modules)


cd /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/build/laser_scan_matcher; catkin build --get-env laser_scan_matcher | catkin env -si  /usr/bin/cmake /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_matcher --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/devel/.private/laser_scan_matcher -DCMAKE_INSTALL_PREFIX=/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/install; cd -
...............................................................................
Failed     << laser_scan_matcher:cmake               [ Exited with code 1 ]    
Failed    <<< laser_scan_matcher                     [ 5.3 seconds ]           
Finished  <<< ncd_parser                             [ 9.5 seconds ]           
_______________________________________________________________________________
Warnings   << laser_scan_sparsifier:make /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/logs/laser_scan_sparsifier/build.make.000.log
In file included from /opt/ros/melodic/include/ros/ros.h:40:0,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/include/laser_scan_sparsifier/laser_scan_sparsifier.h:33,
                 from /media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:30:
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp: In constructor ‘scan_tools::LaserScanSparsifier::LaserScanSparsifier(ros::NodeHandle, ros::NodeHandle)’:
/opt/ros/melodic/include/ros/console.h:348:176: warning: unknown conversion type character ‘,’ in format [-Wformat=]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:348:176: warning: too many arguments for format [-Wformat-extra-args]
     ::ros::console::print(filter, __rosconsole_define_location__loc.logger_, __rosconsole_define_location__loc.level_, __FILE__, __LINE__, __ROSCONSOLE_FUNCTION__, __VA_ARGS__)
                                                                                                                                                                                ^
/opt/ros/melodic/include/ros/console.h:351:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’
     ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(NULL, __VA_ARGS__)
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:387:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’
       ROSCONSOLE_PRINT_AT_LOCATION(__VA_ARGS__); \
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/ros/melodic/include/ros/console.h:572:35: note: in expansion of macro ‘ROS_LOG_COND’
 #define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)
                                   ^~~~~~~~~~~~
/opt/ros/melodic/include/rosconsole/macros_generated.h:266:24: note: in expansion of macro ‘ROS_LOG’
 #define ROS_FATAL(...) ROS_LOG(::ros::console::levels::Fatal, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)
                        ^~~~~~~
/opt/ros/melodic/include/ros/assert.h:134:7: note: in expansion of macro ‘ROS_FATAL’
       ROS_FATAL(__VA_ARGS__); \
       ^~~~~~~~~
/media/wojtek/48ee3ba1-28bb-493d-b2ff-de733667d003/wojtek/wstool_ws2/src/scan_tools/laser_scan_sparsifier/src/laser_scan_sparsifier.cpp:45:3: note: in expansion of macro ‘ROS_ASSERT_MSG’
   ROS_ASSERT_MSG(step_ > 0,
   ^~~~~~~~~~~~~~

The rest of the packages is being built successfully.

Finished  <<< laser_scan_sparsifier                  [ 10.5 seconds ]          
Finished  <<< polar_scan_matcher                     [ 11.2 seconds ]          
Finished  <<< laser_scan_splitter                    [ 12.1 seconds ]          
Finished  <<< scan_to_cloud_converter                [ 15.9 seconds ]          
Finished  <<< laser_ortho_projector                  [ 23.7 seconds

I work on Ubunti Ubuntu 18.04 LTS and ROS Melodic