Ros动态配置文件

时间:2013-05-26 12:44:13

标签: c++ config point-cloud-library point-clouds ros

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

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

但是当我运行启动文件时,我收到以下错误:

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

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:1)

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

它说

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

因此找不到程序 file_publisher

请检查:

  1. file_selection
  2. 该包中存在可执行文件 file_publisher
  3. 检查第一项:

    如果输入:

    roscd file_selection
    

    ...当前工作目录是否切换到 file_selection 包? 如果这不起作用,找出原因。如果是,请尝试下一步:

    检查第二项:

    roscd file_selection
    find . -executable
    

    ...并检查输出是否包含 file_publisher

    从那里开始。

    修改:另请注意,对于与ROS相关的问题,有answers.ros.org