Ask Your Question
0

roboearth, can't do rosmake. Other image recognition options?

asked 2011-10-10 23:18:22 -0600

apalomer gravatar image

updated 2011-10-11 02:44:27 -0600

Hi to everyone!

I follow the steps to install roboearth: http://www.ros.org/wiki/roboearth I'm working with diamondback, not with electric, so I change some things and I install changing the 1rst sentence to: rosinstall ~/ros /opt/ros/diamondback 'http://www.ros.org/wiki/roboearth?action=AttachFile&do=get&target=roboearth.rosinstall' At the end of the installation it says this: Now, type 'source /home/albert/ros/setup.bash' to set up your environment. Add that to the bottom of your ~/.bashrc to set it up every time.

If you are not using bash please see http://www.ros.org/wiki/rosinstall/NonBashShells I do what it's said, actually I added this setup.bash to my .bashrc. The question is: is it possible to have two diferent sources in your basharc? One would be source /home/albert/ros/setup.bashsource /home/albert/ros/setup.bash and the otherone would be source /opt/ros/diamondback/setup.bash.

After that I install the knowrob and ias_common as said in the tutorial but changing electric to diamondback. No problem.

When I try to do the rosmake roboearth it happends an error: [rosbuild] Building package re_ontology Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests re_ontology [rospack] couldn't find dependency [gazebo] of [re_ontology] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

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

I try to install gazebo from http://www.ros.org/wiki/gazebo doing: svn co http://www.ros.org/wiki/gazebo rosmake --rosdep-install

but it happends an other error:

[rosbuild] Building package gazebo Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests gazebo [rospack] couldn't find dependency [gazebo_msgs] of [gazebo] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:5 (rosbuild_init)

After that I think i need gazebo_msgs, I do it from here: http://www.ros.org/wiki/gazebo_msgs and I get this error:

[rosbuild] Building package gazebo Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests gazebo [rospack] couldn't find dependency [common_rosdeps] of [gazebo] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:5 (rosbuild_init)

At this point I've tried to ... (more)

edit retag flag offensive close merge delete

8 Answers

Sort by ยป oldest newest most voted
0

answered 2011-10-13 21:59:17 -0600

apalomer gravatar image

Solved, the main problem was that I was useing diamondback not electric.

edit flag offensive delete link more
1

answered 2011-10-11 21:40:52 -0600

moritz gravatar image

Hi,

common_rosdeps seems to be a new package in Electric. You'll need to use a Diamondback-compatible version of Gazebo, e.g. https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/tags/diamondback/

As mentioned in my previous mail, I'd recommend to use Ubuntu and the binary .deb packages which automatically resolve such dependency problems for common packages.

cheers Moritz

edit flag offensive delete link more
1

answered 2011-10-11 04:10:51 -0600

moritz gravatar image

Hi,

the problems are all related to missing dependencies. Please make sure that all required packages are in your ROS_PACKAGE_PATH in every terminal you are using. You'll have to source the setup.bash in each of them. Try rospack find PACKAGE to check whether the package can be found. If you use Ubuntu, you may want to consider using the debian packages for the standard packages like gazebo since dependencies will then be automatically resolved by the package manager.

If you try to source multiple files, the variable definitions from the last setup.bash will be used. Normally, you only need this in case you have different ROS environments, e.g. parallel installations for diamondback and electric. In that case, you can define a bash alias to load the respective file manually.

best, Moritz

edit flag offensive delete link more
0

answered 2011-10-11 00:19:07 -0600

apalomer gravatar image

After tring some more things I realised that I hadent sourced the new setup.bash. I did and now I get this error:

[ rosmake ] Last 40 linesmp_ehow: 37.7 sec ] [ re_vision: 36.2 sec ] [ 2 Active 43/84 Complete ]

{------------------------------------------------------------------------------- mkdir -p etc/wordnet mv wordnet/*.rdf etc/wordnet/ tar xzf comp_ehow_libs.tar.gz lib/ mv englishPCFG.ser.gz etc/englishPCFG.ser.gz rm wordnet.tar.gz rm comp_ehow_libs.tar.gz touch checkedout touch installed mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done [rosbuild] Building package comp_ehow Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests comp_ehow [rospack] couldn't find dependency [rosjava] of [comp_ehow] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:5 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------}

edit flag offensive delete link more
0

answered 2011-10-11 01:25:20 -0600

apalomer gravatar image

I kept trying and after some installations I got the common_rosdeps error againg, now I solved it running hg clone https://kforge.ros.org/common/rosdepcore . After that I rosmake --rosdep-install again in the folder of roboearth but recive the same message:

[rosmake-1] Starting >>> gazebo [ make ]
[ rosmake ] All 22 linespencyc: 34.9 sec ] [ gazebo: 0.3 sec ] [ 2 Active 57/90 Complete ] {------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package gazebo Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests gazebo [rospack] couldn't find dependency [common_rosdeps] of [gazebo] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:5 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------}

What do I need to do? Thanks.

edit flag offensive delete link more
0

answered 2011-10-11 22:50:17 -0600

apalomer gravatar image

Thanks Moritz!

I downloaded and installed the gazebo you told me and now I have another problem, this time with pcl_visualitzation. When it comes to make this part it apears this error:

[rosmake-0] Starting >>> pcl_visualization [ make ]
[ rosmake ] All 20 linespache_xmlrpc: 3.8 sec ] [ pcl_visualization: 1.3 sec ] [ 2 Active 83/97 Complete ] {------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package pcl_visualization [rosbuild] Including /opt/ros/diamondback/stacks/client_rosjava_jni/rosjava_jni/cmake/rosjava.cmake -- Java version 1.6.0.22 configured successfully! [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake [rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake CMake Error at /usr/share/cmake-2.8/Modules/FindVTK.cmake:135 (MESSAGE): VTK not found. Set the VTK_DIR cmake cache entry to the directory containing VTKConfig.cmake. This is either the root of the build tree, or PREFIX/lib/vtk for an installation. For VTK 4.0, this is the location of UseVTK.cmake. This is either the root of the build tree or PREFIX/include/vtk for an installation. Call Stack (most recent call first): CMakeLists.txt:15 (find_package)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------}

I can't not find/understand what's wrong. It says something about VTK not found, but I don't know what's that or where to find and install that.

Tanks!

edit flag offensive delete link more

Comments

I had this problem on a Fedora system with the VTK dependencies all nicely installed. Just set the VTK_DIR variable appropriately in your terminal, so: "export VTK_DIR=/usr/lib64/vtk-5.6" (depending on your version) && rosmake pcl_ros
Steven Bellens gravatar imageSteven Bellens ( 2012-01-04 20:26:22 -0600 )edit
0

answered 2011-10-13 01:38:04 -0600

moritz gravatar image

Hi,

you'll need to install the system dependencies, as the error messages tell you. Have a look at rosdep to install system dependencies. If that does not work on your distribution, you'll have to find these packages yourself for your distribution.

And yet again: If you are not that familiar with using ROS and installing system dependencies, I would strongly recommend to start with an Ubuntu system. Which distribution are you using?

Moritz

edit flag offensive delete link more
0

answered 2011-10-11 21:13:41 -0600

apalomer gravatar image

Hi,

I've checked and all the folders containing ros packages are in the ros package path (I have one folder like ~/ros and this is in the ROS_PACKAGE_PATH and inside this folder are the packages). But the rosmake keeps telling me the same error:

[rosmake-1] Starting >>> gazebo [ make ]
[ rosmake ] All 22 linespache_commons_util: 1.6 sec ] [ gazebo: 0.3 sec ] [ 2 Active 55/90 Complete ] {------------------------------------------------------------------------------- mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=rospack find rosbuild/rostoolchain.cmake .. [rosbuild] Building package gazebo Failed to invoke /opt/ros/diamondback/ros/bin/rospack deps-manifests gazebo [rospack] couldn't find dependency [common_rosdeps] of [gazebo] [rospack] missing dependency

CMake Error at /opt/ros/diamondback/ros/core/rosbuild/public.cmake:113 (message):

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

Call Stack (most recent call first): /opt/ros/diamondback/ros/core/rosbuild/public.cmake:183 (rosbuild_invoke_rospack) CMakeLists.txt:5 (rosbuild_init)

-- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------}

Which I understand means that when tries to make the gazebo it doesn't finds the common_rosdep, does it?

So, what I need is how to install properly gazebo or where to find common_rosdeps to keep on with the rosmake.

Thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-10-10 23:18:22 -0600

Seen: 1,594 times

Last updated: Oct 13 '11