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

Building a project depending on ros.org platform

asked 2011-11-24 20:53:07 -0500

Belal gravatar image

updated 2014-01-28 17:10:52 -0500

ngrennan gravatar image

I'm new to ros and trying to do:

 cmake CMakeLists.txt

this file includes some ros libraries but I have an error:

[rosbuild] Building package mypackage
CMake Error at /opt/ros/cturtle/ros/core/rosbuild/private.cmake:119 (message):
  [rosbuild] rospack found package "mypackage" at "", but the current
  directory is "/home/mypackage/code".  You should
  double-check your ROS_PACKAGE_PATH to ensure that packages are found in the
  correct precedence order.
Call Stack (most recent call first):
  /opt/ros/cturtle/ros/core/rosbuild/public.cmake:157 (_rosbuild_check_package_location)
  CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred!

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted
0

answered 2011-11-24 22:17:04 -0500

dornhege gravatar image

Did you go through the beginner tutorials? That should tell you how to properly make a ROS package.

From your error messages:

  1. Don't call cmake directly. Use make or rosmake.

  2. Are you using cturtle? I think you system setup might be inconsistent.

edit flag offensive delete link more
0

answered 2011-11-24 21:57:55 -0500

Belal gravatar image

updated 2011-11-24 21:58:19 -0500

I have solved previous problem using rosmake, but now I have these errors..

[rosstack] opendir error [No such file or directory] while crawling /opt/ros/stacks

Failed to find stack for package [sensor_msgs]
Failed to load rosdep.yaml for package [sensor_msgs]:Cannot locate installation of package sensor_msgs: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [sensor_msgs]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]

Failed to find stack for package [image_transport]
Failed to load rosdep.yaml for package [image_transport]:Cannot locate installation of package image_transport: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [image_transport]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]

Failed to find stack for package [geometry_msgs]
Failed to load rosdep.yaml for package [geometry_msgs]:Cannot locate installation of package geometry_msgs: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [geometry_msgs]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]

Failed to find stack for package [cv_bridge]
Failed to load rosdep.yaml for package [cv_bridge]:Cannot locate installation of package cv_bridge: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [cv_bridge]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]
edit flag offensive delete link more

Comments

@Belal This is a question ans answer forum. Please don't use it like a threaded forum with follow up questions in the answer section. If you have a new question please post it as a new question. If it's related you can link to your past questions, but try to keep each question self contained.
tfoote gravatar image tfoote  ( 2011-11-25 07:19:29 -0500 )edit
0

answered 2011-11-25 01:31:12 -0500

Belal gravatar image

Thanks for your reply, Actually I have read the tutorial about making ROS package at : http://www.ros.org/wiki/ROS/Tutorials/BuildingPackages

when I have put something like:

$ roscd mypackage
$ cat manifest.xml

Then it's ok, and it gives me list of dependent packages,

<package>
  <description brief="mypackage">

     mypackage

  </description>
    ...
      <depend package="roscpp"/>
      <depend package="sensor_msgs"/>
      <depend package="cv_bridge"/>
      <depend package="image_transport"/>
      <depend package="std_msgs"/>
      <depend package="mypackage2"/>

    </package>

but when I put

rosdep install mypackage

it gives me an error:

[rosstack] opendir error [No such file or directory] while crawling /opt/ros/stacks
Failed to find stack for package [sensor_msgs]
Failed to load rosdep.yaml for package [sensor_msgs]:Cannot locate installation of package sensor_msgs: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [sensor_msgs]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]
Failed to find stack for package [image_transport]
Failed to load rosdep.yaml for package [image_transport]:Cannot locate installation of package image_transport: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [image_transport]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]
Failed to find stack for package [geometry_msgs]
Failed to load rosdep.yaml for package [geometry_msgs]:Cannot locate installation of package geometry_msgs: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [geometry_msgs]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]
Failed to find stack for package [cv_bridge]
Failed to load rosdep.yaml for package [cv_bridge]:Cannot locate installation of package cv_bridge: [rospack] opendir error [No such file or directory] while crawling /opt/ros/stacks
[rospack] couldn't find package [cv_bridge]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]]
executing this script:
 set -o errexit
#No Packages to install
sanfbox@sandbox:~/mypackagefolder/mypackage$ rosdep install[rospack] couldn't find package [image_transport]. ROS_ROOT[/opt/ros/cturtle/ros] ROS_PACKAGE_PATH[/opt/ros/stacks:/home/sandbox/mypackagefolder:/home/sandbox/mypackagefolder/mypackage]]
edit flag offensive delete link more

Comments

Some of those packages are just not installed. Once you install those the messages should be OK. You can lookup in the wiki what stack a package is in. The ubuntu package should be named ros-DISTRO-STACK.
dornhege gravatar image dornhege  ( 2011-11-25 03:28:24 -0500 )edit
0

answered 2011-11-25 04:35:25 -0500

Belal gravatar image

updated 2011-11-25 04:36:49 -0500

Note: I have already installed all the requested packages by (an example):

sudo apt-get install ros-cturtle-image-common

the same error is shown when I trying to install dependencies by

rosdep install mypackage

I think these installed packages must add to ROS_PACKAGE_PATH but I don't know their paths!

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-11-24 20:53:07 -0500

Seen: 2,679 times

Last updated: Nov 25 '11