Robotics StackExchange | Archived questions

Can pcl_conversions run in kinetic?

I'm installing teb-local-planner. I have Ubuntu MATE 16.04 running on Raspberry Pi 3 with the kinetic variant. teb-local-planner has nav_core as one of its dependencies. navcore has `costmap2das one of its dependencies and costmap_2d haspclconversions` as one of its dependencies. However there is no kinetic-devel branch for pclconversions at https://github.com/ros-perception/pcl_conversions.git. Is it recommended that I clone the indigo-devel branch instead? Any other suggestions? Thanks. Here is some of the error text though I can't get it to render correctly in the preview. I have more in a text file that I tried to attach but I don't have enough points yet:

[ 17%] Building CXX object perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/feature.cpp.o
<command-line>:0:15: warning: missing whitespace after the macro name
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/build.make:62: recipe for target 'perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/feature.cpp.o' failed
make[2]: *** [perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/src/pcl_ros/features/feature.cpp.o] Error 4
CMakeFiles/Makefile2:5434: recipe for target 'perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/all' failed
make[1]: *** [perception_pcl/pcl_ros/CMakeFiles/pcl_ros_features.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 18%] Linking CXX executable /home/mike/tug_ws/devel/lib/fake_localization/fake_localization
[ 18%] Built target fake_localization
[ 18%] Linking CXX executable /home/mike/tug_ws/devel/lib/pcl_ros/pcd_to_pointcloud
[ 18%] Built target pcd_to_pointcloud
[ 18%] Building CXX object perception_pcl/pcl_ros/CMakeFiles/pcl_ros_surface.dir/src/pcl_ros/surface/moving_least_squares.cpp.o
<command-line>:0:15: warning: missing whitespace after the macro name
[ 20%] Linking CXX shared library /home/mike/tug_ws/devel/lib/libpcl_ros_surface.so
[ 20%] Built target pcl_ros_surface
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Asked by rospiguy on 2016-09-28 12:38:54 UTC

Comments

I tried installing the indigo-devel branch and all system dependencies needed for nav_core were satisfied. However the catkin_make build failed.

Asked by rospiguy on 2016-09-28 18:41:44 UTC

If you edit your question with the errors from the failing build, we may be able to help guide you in the right direction.

Asked by ahendrix on 2016-09-28 21:36:55 UTC

@ahendrix: I edited my question with some of the error text. Thanks.

Asked by rospiguy on 2016-09-28 23:06:35 UTC

hi @rospiguy! im trying to get ROS Kinetic into RPi3 and i get the "missing whitespace" warning as well, so my install fails at the pcl_ros package. Is "installing the indigo-devel branch of the package" really the only way forward? And if so, how does one go about customizing that install?

Asked by JCbullsallday on 2016-12-12 02:59:14 UTC

Answers

"Internal compiler error" usually means that the compiler ran out of memory.

Each instance of the compiler that is building very template-heavy code like PCL can use 1G or more of RAM, which is quite a stress on the Pi3.

It looks like you're building with 4 processes in parallel (-j4), which is probably the default if your CPU has 4 cores. Try running catkin_make with -j1 instead, and if you still encounter issues try setting up a 1-2G swap file.

Asked by ahendrix on 2016-09-29 12:01:32 UTC

Comments

It was indeed a problem with exhausted memory, even with a 2G swap. Running catkin_make with -j1 finally worked. Regarding my initial question, it seems at this point that installing the indigo-devel branch of the pcl_conversions git works for kinetic. Thanks for the help.

Asked by rospiguy on 2016-09-30 09:09:46 UTC

hi @rospiguy! im trying to get ROS Kinetic into RPi3 and i get the "missing whitespace" warning as well, so my install fails at the pcl_ros package. Is "installing the indigo-devel branch of the package" really the only way forward? And if so, how does one go about customizing that install?

Asked by JCbullsallday on 2016-12-11 23:57:09 UTC

Kinetic runs fine on the RPi3 once you get it loaded. Many of the packages that are only Indigo-devel level appear to run fine in Kinetic. Getting Kinetic loaded was no problem once I ran catkin_make with the -j1 argument.

Asked by rospiguy on 2016-12-16 22:32:10 UTC