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

rosmake error: costmap_2d depends on non-existent package pcl

asked 2012-07-06 07:48:08 -0600

yglee gravatar image

Hi all,

As a final installation step for ROS, I ran "rosmake -a" and encountered errors. It seems like it is not able to find the "pcl" package as well as yaml and openCV. I am not sure why these packages are missing and if you can point me to a way to get these packages and link them to ROS, I would appreciate it. I have attached the console output below.

thanks,

Grace

{------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package costmap_2d Failed to invoke /opt/ros/fuerte/bin/rospack deps-manifests costmap_2d [rospack] Error: package/stack costmap_2d depends on non-existent package pcl

CMake Error at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:129 (message):

Failed to invoke rospack to get compile flags for package 'costmap_2d'.
Look above for errors from rospack itself.  Aborting.  Please fix the
broken dependency!

Call Stack (most recent call first): /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:203 (rosbuild_invoke_rospack) CMakeLists.txt:4 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------} [ rosmake ] Output from build of package costmap_2d written to: [ rosmake ] /home/ylee8/.ros/rosmake/rosmake_output-20120706-103941/costmap_2d/build_output.log [rosmake-1] Finished <<< costmap_2d [FAIL] [ 0.17 seconds ]
[ rosmake ] Halting due to failure in package costmap_2d. [ rosmake ] Waiting for other threads to complete.
[rosmake-6] Finished <<< bond [PASS] [ 0.93 seconds ]
[ rosmake ] Output from build of package bullet written to:ec ] [ cv_bridge: 1.1 sec ] [ camera_calibration_parsers: 1.0... [ 6 Active 24/186 Complete ] [ rosmake ] /home/ylee8/.ros/rosmake/rosmake_output-20120706-103941/bullet/build_output.log [rosmake-7] Finished <<< bullet [PASS] [ 1.08 seconds ] -- WARNING: 4 compiler warnings
[rosmake-5] Finished <<< nav_core [PASS] [ 0.49 seconds ]
[rosmake-2] Finished <<< pluginlib [PASS] [ 1.46 seconds ]
[ rosmake ] Last 40 lines_bridge: 1.5 sec ] [ camera_calibration_parsers: 1.4 sec ] [ dynamic_reconfigure: 0.9 sec ] [ 3 Active 27/186 Complete ] {------------------------------------------------------------------------------- /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:147: error: expected ‘,’ or ‘...’ before ‘::’ token /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp: In function ‘cv_bridge::CvImagePtr cv_bridge::toCvCopyImpl(int)’: /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:156: error: ‘src_header’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:159: error: ‘dst_encoding’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:159: error: ‘src_encoding’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:162: error: ‘source’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:162: error: ‘class cv_bridge::CvImage’ has no member named ‘image’ /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:185: error: ‘source’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:185: error: ‘class cv_bridge::CvImage’ has no member named ‘image’ /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:190: error: ‘cv’ is not a class or namespace /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:190: error: ‘source’ was not declared in this scope /home/ylee8/ros/vision_opencv/cv_bridge/src/cv_bridge.cpp:190: error: ‘class cv_bridge::CvImage’ has no member named ‘image’ /home ... (more)

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted
2

answered 2012-07-06 08:35:36 -0600

updated 2012-07-06 09:15:01 -0600

It sounds like you're doing a source based install, correct? If you're using Ubuntu, you'll have a much easier time using the debian-based binaries.

What version of ROS are you using? (electric, or fuerte?). You should install the perception_pcl stack, and vision_opencv, and make sure to do a rosdep install to ensure dependencies, such as yaml get pulled in.


Edit: Below probably the right way to do this: It turns out that there's a variant that includes navigation. I would recommend following the Fedora installation instructions, and in section 1.2.2, install the mobile variant replacing the rosinstall commands shown with the following:

rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=fuerte&variant=mobile&overlay=no"

I believe this will get you everything you need, though I don't have a Red Hat machine to try it out with.

edit flag offensive delete link more
0

answered 2012-07-06 08:38:45 -0600

yglee gravatar image

This is the author:

I am currently using Red Hat. I am using the latest version of ROS (fuerte). So, your suggestion is that I do "rosdep install vision_opencv" and "rosdep install percetion_pcl"?

Thanks

edit flag offensive delete link more

Comments

In the future, you should post this sort of thing as a comment, rather than a new answer. I'm updating my answer with what should be a much easier way to install everything you want.

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2012-07-06 09:07:14 -0600 )edit
0

answered 2014-05-06 16:23:18 -0600

edit flag offensive delete link more
0

answered 2012-07-06 08:15:29 -0600

allenh1 gravatar image

Ok. If your on ubuntu, just run (or look in your package manager in another OS):

sudo apt-get install libopencv-dev yaml-cpp python-yaml libyaml-dev libpcl1-dev

If you wish to build these libraries from source, look here:

PCL, OpenCV, YAML

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-06 07:48:08 -0600

Seen: 3,108 times

Last updated: May 06 '14