【问题标题】:Ros Dynamic Config fileRos 动态配置文件
【发布时间】:2013-05-21 11:52:03
【问题描述】:

我正在尝试使用 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]

任何帮助将不胜感激。

【问题讨论】:

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


【解决方案1】:

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

上面写着

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

所以它找不到程序 file_publisher

所以检查一下:

  1. file_selection存在。
  2. 可执行文件 file_publisher 存在于该包中。

检查第一项:

如果你输入:

roscd file_selection

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

检查第二项:

roscd file_selection
find . -executable

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

从那里去。

编辑:另请注意,对于 ROS 相关问题,answers.ros.org

【讨论】:

    猜你喜欢
    • 2016-12-04
    • 1970-01-01
    • 2015-05-26
    • 1970-01-01
    • 1970-01-01
    • 2011-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多