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

Problem installing raspicam_node

asked 2019-09-01 08:35:13 -0600

FabioZ96 gravatar image

Hi, I need to capture video from Pi Camera on Raspberry 3B+ and show it on my Remote PC using ROS.

I tried to install raspicam_node following this tutorial: https://venelinpetkov.com/2017/11/19/...

When i run this command: `

./src/catkin/bin/catkin_make_isolated -j2 --install --install-space /opt/ros/kinetic -DCMAKE_BUILD_TYPE=Release --pkg raspicam_node

it terminates with this error:

    CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
  Could not find a package configuration file provided by
  "compressed_image_transport" with any of the following names:

    compressed_image_transportConfig.cmake
    compressed_image_transport-config.cmake

  Add the installation prefix of "compressed_image_transport" to
  CMAKE_PREFIX_PATH or set "compressed_image_transport_DIR" to a directory
  containing one of the above files.  If "compressed_image_transport"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  raspicam_node/CMakeLists.txt:10 (find_package)


-- Could not find the required component 'compressed_image_transport'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "compressed_image_transport" with any of the following names:

    compressed_image_transportConfig.cmake
    compressed_image_transport-config.cmake

  Add the installation prefix of "compressed_image_transport" to
  CMAKE_PREFIX_PATH or set "compressed_image_transport_DIR" to a directory
  containing one of the above files.  If "compressed_image_transport"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  raspicam_node/CMakeLists.txt:10 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/pi/Desktop/ProgettoLab/prog/cam_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/Desktop/ProgettoLab/prog/cam_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed

I also tried this tutorial: https://github.com/UbiquityRobotics/r...

and when i run

roslaunch raspicam_node camerav2_1280x960.launch

I get this error

Traceback (most recent call last):
  File "/home/pi/ros_catkin_ws/devel/bin/roslaunch", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/home/pi/ros_catkin_ws/src/ros_comm/roslaunch/scripts/roslaunch", line 34, in <module>
    import roslaunch
  File "/home/pi/ros_catkin_ws/devel/lib/python2.7/dist-packages/roslaunch/__init__.py", line 35, in <module>
    exec(__fh.read())
  File "<string>", line 61, in <module>
  File "/home/pi/ros_catkin_ws/src/ros_comm/roslaunch/src/roslaunch/scriptapi.py", line 42, in <module>
    import roslaunch.parent
  File "/home/pi/ros_catkin_ws/src/ros_comm/roslaunch/src/roslaunch/parent.py", line 54, in <module>
    import roslaunch.server
  File "/home/pi/ros_catkin_ws/src/ros_comm/roslaunch/src/roslaunch/server.py", line 78, in <module>
    from rosgraph_msgs.msg import Log
ImportError: No module named msg

How can I solve the problems? I don't need necessarily to use raspicam_node but I need to streaming video, as real time as possible using ROS. Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-10 21:04:31 -0600

antonella gravatar image

For the first part of the question, you are missing the compressed-image-transport package. Since I'm assuming you are running Raspbian and thus building ROS from source, you will need to follow these instructions for adding released packages and building the compressed-image-transport from source (as well as for all other ROS package dependencies for raspicam_node).

For the second error, it is likely the same issue, that you don't have the rosgraph_msgs package installed. The instructions on the linked page should help with that as well.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2019-09-01 08:35:13 -0600

Seen: 1,244 times

Last updated: Feb 10 '20