Robotics StackExchange | Archived questions

rplidar_ros on raspberry pi

Hi all, I am trying to build rplidarros package on raspberry pi running raspbian OS using catkinmakeisolated with indigo distro and even though catkinmakeisolated seems to work without failures, it does not build the executables. Or maybe it builds it somewhere else where ROS cannot find them. Here the output of catkinmake_isolated:

==> Processing catkin package: 'rplidar_ros'
==> Building with env: '/opt/ros/indigo/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/rplidar_ros'
==> make -j4 -l4 in '/home/pi/ros_catkin_ws/build_isolated/rplidar_ros'
[ 16%] Built target rplidarNodeClient
[100%] Built target rplidarNode
==> make install in '/home/pi/ros_catkin_ws/build_isolated/rplidar_ros'
[ 83%] Built target rplidarNode
[100%] Built target rplidarNodeClient
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /opt/ros/indigo/_setup_util.py
-- Up-to-date: /opt/ros/indigo/env.sh
-- Up-to-date: /opt/ros/indigo/setup.bash
-- Up-to-date: /opt/ros/indigo/setup.sh
-- Up-to-date: /opt/ros/indigo/setup.zsh
-- Up-to-date: /opt/ros/indigo/.rosinstall
-- Up-to-date: /opt/ros/indigo/etc/catkin/profile.d/05.catkin_make.bash
-- Up-to-date: /opt/ros/indigo/etc/catkin/profile.d/05.catkin_make_isolated.bash
-- Up-to-date: /opt/ros/indigo/lib/pkgconfig/rplidar_ros.pc
-- Up-to-date: /opt/ros/indigo/share/rplidar_ros/cmake/rplidar_rosConfig.cmake
-- Up-to-date: /opt/ros/indigo/share/rplidar_ros/cmake/rplidar_rosConfig-version.cmake
-- Up-to-date: /opt/ros/indigo/share/rplidar_ros/package.xml
<== Finished processing package [68 of 81]: 'rplidar_ros'

Can anybody help with this issue?

Thank you in advance, Marcello

Asked by scar on 2015-04-09 18:46:44 UTC

Comments

Just a stupid question: did you execute setup.bash after build?

Asked by afranceson on 2015-04-16 06:34:00 UTC

The question is not stupid at all! I might have forgotten to do so last night. But this is not the first time I install ROS on RPi and having a hard time and I usually source /opt/ros/indigo/setup.bash as well as source /../ros_catkin_ws/devel_isolated/setup.bash

Asked by scar on 2015-04-16 12:34:35 UTC

anyway I solved the problem by copying the executables from /../ros_catkin_ws/devel_isolated/rplidar_ros/lib/rplidar_ros where they where originally created, to /opt/ros/indigo/share/rplidar_ros no wonder why catkin could not find them.

Asked by scar on 2015-04-16 12:41:59 UTC

If you fix the problem copying the executables manually maybe this (still unmarked) pull request in RPLidar git repo can solve your problem.

Asked by afranceson on 2015-04-16 12:54:09 UTC

Thank you afranceson. It's going to be very helpfull for next implementations. I guess I am too busy chasing deadlines for this project that I skipped important details. Thanks again for point me in the write direction.

Asked by scar on 2015-04-16 13:46:20 UTC

Answers