zoukankan      html  css  js  c++  java
  • ROS之服务器与客户端简单程序遇到的错误

    在按ROS入门教程(点击打开链接)行进过程中遇到的错误

    1、exec_depend与run_depend一样

    在按ROS入门教程(点击打开链接)行进过程中到了执行

    rosmsg show beginner_tutorials/Num

    命令时,出现提示

    The manifest (with format version 2) must not contain the following tags: run_depend

    的警告,这个的主要解决方法是使用catkin方式时在package.xml文件中将教程中添加的两行语句

     <build_depend>message_generation</build_depend>
      <run_depend>message_runtime</run_depend>

    要改成

      <build_depend> message_generation </build_depend>

      <exec_depend> message_runtime </exec_depend>

    或者

    <build_export_depend>message_generation</build_export_depend>
    <exec_depend>message_runtime</exec_depend>

    这样就得以解决问题

    2、ROSCORE每次启动必须打开

    [ERROR] [1446531999.044935824]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...

    解决:请检查 roscore 是否正常打开。

            每次进行运行测试时都要首先运行 roscore。

  • 相关阅读:
    【宁夏区域赛】G.Pot!
    【C#】上机实验二
    【C#】上机实验三
    Luogu P1437 敲砖块
    Luogu P1463 反素数
    Luogu P1445 樱花
    GHOJ 926 小X的AK计划
    【题解】Beads
    【题解】Antisymmetry
    【题解】A Horrible Poem
  • 原文地址:https://www.cnblogs.com/flyingjun/p/8830535.html
Copyright © 2011-2022 走看看