[ROS] Solution to fix "Unable to handle 'index' format version '2', please update rosdistro" problem

ROS Problem: stack/package not found

Author posted @ 2013年11月06日 10:43 in ROS , 4174 阅读

I am using ROS Hydro in Ubuntu 13.10. After creating package using command:

~/catkin_ws/src$ catkin_create_pkg pkg_name

I can successfully compile the programe using:

~/catkin_ws/$ catkin_make

The executable files are generated and saved in the folder  ~/catkin_ws/devel/lib/. However, if I use "rosrun pkg_name execute_name" to, it says "stack/package not found".

Also if using command 

~/catkin_ws/$ rospack find pkg_name

it returns nothing.

The solution of this problem can be solved by using command [1]

~/catkin_ws/$ rosws set pkg_name

Also, do not forget to run the command in current terminal:

~/catkin_ws/$ source devel/setup.sh

otherwise, still  have Error saying stack/package not found 

Reference:

1. http://answers.ros.org/question/76114/error-stackpackage-not-found/


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter