Comments (16)
- Varify if the openmp is installed, if not, apt install it:
sudo apt-get install libomp-dev
- try catkin_make, not catkin build
from fast_lio.
Hi @XW-HKU Thank you for your reply. I have installed openmp and done catkin_make. However I still get the error:
home/isera2/catkin_ws/src/FAST_LIO/src/laserMapping.cpp: In function ‘void h_share_model(state_ikfom&, esekfom::dyn_share_datastruct<double>&)’:
/home/isera2/catkin_ws/src/FAST_LIO/src/laserMapping.cpp:559:40: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
omp_set_num_threads(MP_PROC_NUM);
^
In file included from /home/isera2/catkin_ws/src/FAST_LIO/src/laserMapping.cpp:35:0:
/usr/lib/gcc/x86_64-linux-gnu/7/include/omp.h:86:13: note: initializing argument 1 of ‘void omp_set_num_threads(int)’
extern void omp_set_num_threads (int) __GOMP_NOTHROW;
from fast_lio.
What's your ubuntu and gcc version?
gcc --version
from fast_lio.
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
I use ROS melodic, Eigen version 3.3.4.
I can run Fast_lio 1 but I cannot catkin_make this new version.
from fast_lio.
A bit confusing, do you run git submodule update --init?
from fast_lio.
may be you can try delete the devel/ and build/ directory before catkin_make
from fast_lio.
A bit confusing, do you run git submodule update --init?
Yes I did. I have the ikd-tree files.
may be you can try delete the devel/ and build/ directory before catkin_make
I have cleaned and remade the folder many times.
I can't find where MP_PROC_NUM is defined in laserMapping.cpp In omp.h, the function takes in an int datatype, which I think is the source of the error. How was MP_PROC_NUM defined?
Once again, I like to thank you for your prompt responses!
from fast_lio.
A bit confusing, do you run git submodule update --init?
Yes I did. I have the ikd-tree files.
may be you can try delete the devel/ and build/ directory before catkin_make
I have cleaned and remade the folder many times.
I can't find where MP_PROC_NUM is defined in laserMapping.cpp In omp.h, the function takes in an int datatype, which I think is the source of the error. How was MP_PROC_NUM defined?
Once again, I like to thank you for your prompt responses!
The MP_PROC_NUM is defined in CMakeLists.txt. It is predefined during cmake based on your cpu archtectuer.
Oh, what's your cpu type?
from fast_lio.
cat /proc/cpuinfo | grep 'name'| uniq
model name : Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
cat /proc/cpuinfo | grep process| wc -l
4 (4 processors)
from fast_lio.
When you fresh making the project, you will see the messages in terminator like below:
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/xw/XW/ws_fastlio_hku/devel
-- Using CMAKE_PREFIX_PATH: /home/xw/XW/ws_fastlio_hku/devel;/home/xw/ws_common/devel;/home/xw/ws_livoxrosdriver/devel;/opt/ros/melodic
-- This workspace overlays: /home/xw/XW/ws_fastlio_hku/devel;/home/xw/ws_common/devel;/home/xw/ws_livoxrosdriver/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/xw/XW/ws_fastlio_hku/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 1 packages in topological order:
-- ~~ - fast_lio
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'fast_lio'
-- ==> add_subdirectory(FAST_LIO)
Current CPU archtecture: x86_64
Processer number: 16
core for MP: 3
You can show me the last three lines to see if there is any difference.
Current CPU archtecture: x86_64
Processer number: 16
core for MP: 3
from fast_lio.
Current CPU archtecture: x86_64
Processer number: 4
core for MP: 2
from fast_lio.
Current CPU archtecture: x86_64
Processer number: 4
core for MP: 2
That should be fine. what's your cmake version?
from fast_lio.
cmake version 3.10.2
from fast_lio.
cmake version 3.10.2
Seems everything is right.
from fast_lio.
Hi, I made it work.
I replaced
add_definitions(-DMP_PROC_NUM="${PROC_NUM}")
in the CMakeLists.txt with
add_definitions(-DMP_PROC_NUM=2)
directly and it works fine. I'm not really sure what's the issue? Maybe the syntax is wrong or there is a bug with the typecasting but it now works.
Thanks so much for your time. We can close the issue if there's nothing else to add.
from fast_lio.
MP_PROC_NUM
Thank you, there is truly a bug in cmake file, I fixed it in the newly update.
from fast_lio.
Related Issues (20)
- 建图时坐标系与实际不符 HOT 1
- Indoor odometers are not very accurate HOT 3
- Implementation on UAV / Livox Avia HOT 1
- Resilience to dust/smoke/fog HOT 1
- imu辅助雷达去畸变的这行代码,谁能帮我解释下每个变量的含义啊 HOT 1
- Possibility of Using LIO on Point Cloud Created From Depth Cameras HOT 1
- Segmentation fault in ikd-tree rebuild process, cause by "Add_by_points". HOT 2
- 建图到一半,直接停止增量建图,前面的部分也开始逐个消失 HOT 1
- About Robosense M1 Lidar HOT 1
- fatal error: fast_lio/Pose6D.h: No such file or directory. HOT 1
- fastlio+livox HOT 1
- velodyne not fit into this project. HOT 2
- About NCLT Dataset ground truth HOT 1
- Downsampling Error HOT 1
- Livox MID-360 FAST_LIO2 建图过程中地图消失问题
- Gmapping navigation HOT 3
- The fineness of point cloud display in rviz HOT 1
- 里程计输出频率问题? HOT 1
- FAST_LIO uses only one core of the CPU HOT 1
- Is IMU optional? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast_lio.