catkin_make之后找不到ROS包 [英] ROS package not found after catkin_make

查看:1140
本文介绍了catkin_make之后找不到ROS包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ROS的Wiki页面之后创建了一个ROS工作区.我还使用了刚创建的工作区下的catkin_create_pkg创建了一个程序包.

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.

然后,按照ROS Wiki中使用catkin_make生成软件包的步骤,在生成软件包之后,我插入命令rospack find packagename,并且不再找到我的软件包.

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.

有人可以帮我吗?

推荐答案

您是否已遵循此基本教程?您必须在工作区中创建程序包,并正确设置Bash文件(在主目录中).

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

,位于~/.bashrc的末尾.然后,重新启动终端,然后重试.请确保使用您放置在上的实际信息(取决于您在PC上安装ROS的位置及其工作空间)来修改这些行.

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).

如果这不能解决问题,请在rospack find <your_package_name>之前尝试rospack profile.

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

这篇关于catkin_make之后找不到ROS包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆