ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Error in building rosberrypi_cam node in RPi with ROS Indigo

asked 2017-10-06 05:22:28 -0600

user_123 gravatar image

updated 2017-10-09 05:10:56 -0600

I am following this link for installing ROS driver for raspberrypi camera module. But after executing the command sudo ./src/catkin/bin/catkin_make_isolated --install --pkg rosberrypi_cam -DCMAKE_BUILD_TYPE=Release -Draspicam_DIR:PATH=/home/pi/ros_catkin_ws/external_src/raspicam/build/ --install-space /opt/ros/indigo -j2 I am getting this error...

make[2]: *** No rule to make target '/usr/local/lib/libraspicam.so', needed by '/home/pi/ros_catkin_ws/devel_isolated/rosberrypi_cam/lib/rosberrypi_cam/rosberrypi_cam_node'.  Stop.
CMakeFiles/Makefile2:707: recipe for target 'CMakeFiles/rosberrypi_cam_node.dir/all' failed
make[1]: *** [CMakeFiles/rosberrypi_cam_node.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'rosberrypi_cam': 
  Command '['/opt/ros/indigo/env.sh', 'make', '-j4', '-l4']' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/rosberrypi_cam && /opt/ros/indigo/env.sh make -j4 -l4

Command failed, exiting.

If anyone has faced the same issue in raspbian Jessie, please help. Thank you.

Do I need to install openCV2 for this ROS package, as the main.cpp files includes certain header files from opncv2, does that indicate that it require openCV in raspbian??????

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-06 09:16:25 -0600

Nico__ gravatar image

You need to install the package camera_info_manager in your workspace.

You can do it by following the directions at the end of the ROSberry tutorial http://wiki.ros.org/ROSberryPi/Instal... with rosinstall.

edit flag offensive delete link more

Comments

I tried to install the package camera_info_manager in the ros_catkin_ws using sudo apt-get install ros-indigo-camera-info-manager, but got an error Unable to locate package... Please help regarding installation of camera_info_manager. I have followed the same page of instructions as suggested by you

user_123 gravatar image user_123  ( 2017-10-09 01:30:16 -0600 )edit

I could successfully install camera_info_manager and camera_callibration_parsers,after installing them I am getting this error. make[2]: * No rule to make target '/usr/local/lib/libraspicam.so', needed by '/home/pi/ros_catkin_ws/devel_isolated/rosberrypi_cam/lib/rosberrypi_cam/rosberrypi_cam_node'

user_123 gravatar image user_123  ( 2017-10-09 04:46:52 -0600 )edit

Please help with the above problem @Nico__

user_123 gravatar image user_123  ( 2017-10-09 04:47:41 -0600 )edit

Did you follow every steps of https://github.com/japonophile/rosber... that you mention on your original post?

Nico__ gravatar image Nico__  ( 2017-10-12 06:41:17 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-10-06 05:22:28 -0600

Seen: 258 times

Last updated: Oct 09 '17