Closed JulianYG closed 5 years ago
I haven't compiled with cloudprocpy however it's hard to diagnose the problem with so little information. What system are you compiling on? What version of python are you using? Can you copy/paste the output from cmake?
I'm using ubuntu 14.04, and python 2.7.6. I tried to run cmake with BUILD_CLOUDPROC option on, and after that the make was successful. I then added the trajopt/build/lib and trajopt/ into .bashrc, but when I import that line I got the error. The output from cmake is:
cmake .. -DBUILD_CLOUDPROC=ON-- Boost version: 1.54.0
-- Found the following Boost libraries: -- system -- python -- thread -- program_options adding test with path /home/cvgl_ros/installed_libraries/trajopt/python_examples/arm_to_joint_target.py python exc /home/cvgl_ros/installed_libraries/anaconda2/bin/python adding test with path /home/cvgl_ros/installed_libraries/trajopt/python_examples/arm_to_cart_target.py python exc /home/cvgl_ros/installed_libraries/anaconda2/bin/python adding test with path /home/cvgl_ros/installed_libraries/trajopt/python_examples/fullbody_plan.py python exc /home/cvgl_ros/installed_libraries/anaconda2/bin/python adding test with path /home/cvgl_ros/installed_libraries/trajopt/python_examples/position_base.py python exc /home/cvgl_ros/installed_libraries/anaconda2/bin/python adding test with path /home/cvgl_ros/installed_libraries/trajopt/python_examples/this_side_up.py python exc /home/cvgl_ros/installed_libraries/anaconda2/bin/python -- Could NOT find GUROBI (missing: GUROBI_LIBRARY GUROBI_CXX_LIBRARY GUROBI_INCLUDE_DIR) Gurobi not found. If you want to use Gurobi, set the GUROBI_HOME variable -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2") -- Boost version: 1.54.0 -- Found the following Boost libraries: -- python -- Boost version: 1.54.0 -- Found the following Boost libraries: -- system -- filesystem -- thread -- date_time -- iostreams -- serialization -- checking for module 'openni-dev' -- package 'openni-dev' not found -- checking for module 'openni-dev' -- package 'openni-dev' not found -- checking for module 'openni-dev' -- package 'openni-dev' not found -- looking for PCL_COMMON -- looking for PCL_OCTREE -- looking for PCL_IO -- looking for PCL_KDTREE -- looking for PCL_SEARCH -- looking for PCL_SAMPLE_CONSENSUS -- looking for PCL_FILTERS -- looking for PCL_FEATURES -- looking for PCL_KEYPOINTS -- looking for PCL_GEOMETRY -- looking for PCL_SEGMENTATION -- looking for PCL_VISUALIZATION -- looking for PCL_OUTOFCORE -- looking for PCL_REGISTRATION -- looking for PCL_RECOGNITION -- looking for PCL_SURFACE -- looking for PCL_PEOPLE -- looking for PCL_TRACKING -- looking for PCL_APPS -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (Required is at least version "2") -- Boost version: 1.54.0 -- Found the following Boost libraries: -- python -- Configuring done -- Generating done -- Build files have been written to: /home/cvgl_ros/installed_libraries/trajopt/build
Thanks!
Do you have PCL installed? If so what version is installed?
We are using PCL 1.7. Thanks!
Hi Julian,
Did you solve this problem by any chance? I'm having the exactly same issue when I'm importing the cloudprocpy library. Thanks!
@mzwang828 I haven't solved it. Let me know if you do!
@JulianYG Yes, I found a solution. Please check this repo: https://github.com/erictzeng/trajopt You can either use this version or just replace the original cloudproc.cpp and cloudproc.hpp files. I replaced the two files and now it works.
@mzwang828 Thank you so much!
Hi,
When I add the command line option to build cloudprocpy as well, it builds the cloudprocpy, but when I import the library from python, I got following error:
File "", line 1, in
ImportError: /home/cvgl_ros/trajopt/build/lib/cloudprocpy.so: undefined symbol: _ZN9cloudproc12medianFilterIN3pcl8PointXYZEEENS1_10PointCloudIT_E3PtrENS5_8ConstPtrEif
I'm not sure which other lib.so file it is looking for that has wrong version or something. Any one has idea on this? Thanks!