【问题标题】:Why do I have debug problem with the ROS launch file problem为什么我有 ROS 启动文件问题的调试问题
【发布时间】:2018-10-21 12:03:14
【问题描述】:

我正在尝试做一个简单的例子来学习 Gazebo 模拟。 但是,当我启动启动文件时,我遇到了我作为照片附加的问题。 此外,我添加了用作启动文件和世界文件的代码。

 <!-- empty_world.launch file -->
    <?xml version="1.0" encoding="utf-8"?> 
    <launch>
         <!-- overwrite these args -->
         <arg name="debug" default="false"/>
         <arg name="gui" default="false"/>
         <arg name="pause" default="true"/>
         <arg name="world" default="$(find my_simulations)/worlds/empty_world.world"/>
         <!--include gazeboo_ros launcher-->
        <include file="$(find gazebo_ros)/launch/empty_world.launch">
             <args name="world_name" value="$(arg_world)"/>
             <arg name="debug" value="$(arg_debug)"/>
             <arg name="gui" value="$(arg_gui)"/>
             <arg name="paused" value="$(arg_pause)"/>
             <arg name="use_sim_time" value="true"/>
        </include>
</launch>


   <!-- empty_world.world file -->
       <?xml version="1.0" ?>
    <sdf version="1.5">
      <world name="default">
        <!-- A global light source -->
        <include>
          <uri>model://sun</uri>
        </include>
        <!-- A ground plane -->
        <include>
          <uri>model://ground_plane</uri>
        </include>
      </world>
    </sdf>

【问题讨论】:

  • 这与robotframework无关,这是一个用python编写的验收测试框架。
  • 删除arg 运算符和参数名称之间的所有下划线。例如$(arg_world) 应更正为$(arg world)
  • 感谢您的回答,午餐时没有问题,但 gazbo 没有打开。仍然(waitForService:服务 [/gazebo/set_physics_properties] 尚未公布,等待...)@Fruchtzwerg
  • @hikmat.sheqully:请不要发布错误消息的屏幕截图,而是将错误复制并粘贴为纯文本。这使我们更容易阅读问题,从而更有可能有人会回答。

标签: simulation ros robot mobile-robots


【解决方案1】:

$(arg_world)$(arg_debug)$(arg_pause)$(arg_gui) 输入错误。删除_就可以了

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-21
    相关资源
    最近更新 更多