Ros动态配置文件 [英] Ros Dynamic Config file

查看:576
本文介绍了Ros动态配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用PCL / ROS执行分割任务。我使用ROS中的动态配置选项,因为我的分割任务的输入数量很大,并且想要研究每个 param 的影响。我的C ++源代码没有问题,但是当我尝试运行启动文件我的文件发布者无法找到PCD文件。

 < launch> 

<! - 开始分段分析 - >
< node pkg =segmentation_analysisname =region_growingtype =region_growingoutput =screen>
< remap from =selected_fileto =/ selected_file/>
< / node>

< node pkg =file_selectionname =file_publishertype =file_publisherargs =/ home / anirudh / getbot / ros / 3d_scene_analysis / segmentation_analysis>
< param name =extensionvalue =pcd/>
< remap from =〜fileto =/ selected_file/>
< / node>


< node pkg =rqt_reconfigurename =rqt_reconfiguretype =rqt_reconfigure>
< / node>



文件,我得到以下错误:

 错误:无法启动类型的节点[file_selection / file_publisher]:无法找到节点[file_publisher]在包[file_selection] 

任何帮助将不胜感激。

解决方案

据我所知,您的错误与找不到PCD文件无关。



它表示

 无法找到节点[file_publisher] package [file_selection] 

因此找不到程序 file_publisher



请检查:


  1. file_selection



要检查第一个项目:



如果您输入:

  roscd file_selection 

...当前工作目录切换到 file_selection <强>包?
如果这不起作用,找出为什么。如果是,请尝试下一步:



要检查第二个项目:

  roscd file_selection 
find。 - 可执行

...并检查输出是否包含 file_publisher 。 / p>

从这里开始。



编辑:另外请注意,是 answers.ros.org


I am trying to perform a segmentation task with PCL/ROS. I am using the dynamic configuration option in ROS as the number of inputs to my segmentation task is large and would like to study the influence of each param. There is no problem with my C++ source code, however when I try to run the launch file my file publisher is not able to find the PCD files.

<launch>

<!-- Start segmentation analysis -->
<node pkg="segmentation_analysis" name="region_growing" type="region_growing" output="screen">
    <remap from="selected_file" to="/selected_file" />
</node>

    <node pkg="file_selection" name="file_publisher" type="file_publisher" args="/home/anirudh/getbot/ros/3d_scene_analysis/segmentation_analysis">
            <param name="extension" value="pcd"/>
            <remap from="~file" to="/selected_file"/>
    </node>


    <node pkg="rqt_reconfigure" name="rqt_reconfigure" type="rqt_reconfigure" >
    </node>

But when I run the launch file, I am getting the following error:

ERROR: cannot launch node of type [file_selection/file_publisher]: can't locate node [file_publisher] in package [file_selection]

Any help will be appreciated.

解决方案

As far as I can tell, your error is not related to not finding PCD files.

It says

can't locate node [file_publisher] in package [file_selection]

So it cannot find the program file_publisher.

So check that:

  1. The package file_selection exists.
  2. The executable file file_publisher exists inside that package.

To check the first item:

If you type:

roscd file_selection

...does the current working directory switch to the file_selection package? If that doesn't work, figure out why. If it does, try the next step:

To check the second item:

roscd file_selection
find . -executable

...and check if the output contains file_publisher.

Go from there.

Edit: Also note that for ROS related questions there is answers.ros.org

这篇关于Ros动态配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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