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

rospack coudn't find package

asked 2012-04-18 10:46:26 -0600

SHPOWER gravatar image

Hi,

I am new in ros and ubuntu. After I made full installation I tried a "rospack find roscpp" command and the answer was "couldn't find the package". what's the problem?

thanks

edit retag flag offensive close merge delete

Comments

1

How does your setup.sh look like, or how did you modify ~/.bashrc ? This could help identify the problem.

How did you install ROS, did you build it from source ?

Hansg91 gravatar image Hansg91  ( 2012-04-18 10:55:19 -0600 )edit

@SHPOWER I agree with @Hansg91 , it seems to be a path issue.

Arkapravo gravatar image Arkapravo  ( 2012-04-18 11:34:11 -0600 )edit

Please update your question to include your $ROS_PACKAGE_PATH environment variable.

joq gravatar image joq  ( 2012-04-19 10:02:43 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-21 23:09:45 -0600

Marc Heimann gravatar image

updated 2012-04-22 05:39:12 -0600

Hi,

I have the same problem. I don't know how to use the commenting tool, so this is not an answer. I installed ros on debian. That is what I get when typing "export | grep ros":


declare -x PATH="/home/user/ros/ros/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"

declare -x PYTHONPATH="/home/user/ros/ros/core/roslib/src:"

declare -x ROS_PACKAGE_PATH="/home/user/ros_workspace:/home/user/ros/robot_model_tutorials:/home/user/ros/visualization_tutorials:/home/user/ros/geometry_tutorials:/home/user/ros/common_tutorials:/home/user/ros/ros_tutorials:/home/user/ros/geometry_experimental:/home/user/ros/robot_model_visualization:/home/user/ros/geometry_visualization:/home/user/ros/diagnostics_monitors:/home/user/ros/executive_smach_visualization:/home/user/ros/visualization:/home/user/ros/slam_gmapping:/home/user/ros/navigation:/home/user/ros/vision_opencv:/home/user/ros/laser_pipeline:/home/user/ros/image_pipeline:/home/user/ros/image_transport_plugins:/home/user/ros/perception_pcl:/home/user/ros/image_common:/home/user/ros/visualization_common:/home/user/ros/physics_ode:/home/user/ros/stage:/home/user/ros/simulator_gazebo:/home/user/ros/simulator_stage:/home/user/ros/xacro:/home/user/ros/executive_smach:/home/user/ros/robot_model:/home/user/ros/assimp:/home/user/ros/pluginlib:/home/user/ros/orocos_kinematics_dynamics:/home/user/ros/nodelet_core:/home/user/ros/geometry:/home/user/ros/bullet:/home/user/ros/filters:/home/user/ros/eigen:/home/user/ros/driver_common:/home/user/ros/diagnostics:/home/user/ros/common:/home/user/ros/common_msgs:/home/user/ros/bond_core:/home/user/ros/documentation:/home/user/ros/rx:/home/user/ros/common_rosdeps:/home/user/ros/ros_comm:/home/user/ros/ros"

declare -x ROS_ROOT="/home/user/ros/ros"

declare -x ROS_WORKSPACE="/home/user/ros"


I went through the tutorial, but at "Creating a ROS package by hand" I can't find the foobar package with "rospack find foobar". I have created /home/user/ros_workspace/foobar/manifest.xml and /home/user/ros_workspace is listed in ROS_PACKAGE_PATH. I can find turtlesim with "rospack find turtlesim". At /home/user/ros/ros/tools/rospack/rospack.cpp I found the method "Package *ROSPack::get_pkg(string pkgname)" which seems responsible, but I'm not willing to go any further.

EDIT: Ok, I went through the code especially the crawl_for_packages() method. I actually had a manifest.xml in /home/user/ros_workspace for custom made packages. So ros_workspace actually got recognized as a package. I suspect that "continue" in line 1816 of rospack.cpp will then prevent decending into subdirectories. So it's all my fault :(

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-18 10:46:26 -0600

Seen: 2,446 times

Last updated: Apr 22 '12