ROS package not found after catkin_make

只愿长相守 提交于 2019-12-05 19:20:16

问题


I created a ROS workspace following the Wiki page from ROS. I also created a package using catkin_create_pkg under the workspace I just created.

Then, following the steps in ROS Wiki to build the package using catkin_make, after the package is built, I insert the command rospack find packagename, and my package is not found anymore.

Can anyone help me on this?


回答1:


Have you followed this basic tutorial? You have to create the package in your workspace and have set properly your Bash file (in your home directory).

To permanently set your system, add these lines

# ROS settings
source <your_workspace_path>/catkin/devel/setup.bash

at the end of your ~/.bashrc. Then, restart the terminal, and retry. Please, be sure to modify these lines with your actual information, where I've put <your_workspace_path> (depends on where you have installed ROS and its workspace on your PC).

If this does not solve the problem, try rospack profile before rospack find <your_package_name>.



来源:https://stackoverflow.com/questions/27053334/ros-package-not-found-after-catkin-make

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!