ROS学习手记12 -- ROS问题检测工具roswtf
来源:互联网 发布:互联网公平台用java 编辑:程序博客网 时间:2024/06/12 18:37
roswtf - ros, what the fuck? 其实很好记~~
Getting started with roswtf
Description: Basic introduction to theroswtf tool.Keywords: roswtf
Tutorial Level: BEGINNER
Next Tutorial:Navigating the wiki
目录
- Checking your installation
- Trying it online
- Errors
Before you start this tutorial, please make sure your roscore is NOT running.
Checking your installation
roswtf examines your system to try and find problems. Let's try it out:
$ roscd$ roswtf
You should see (detail of the output varies):
Stack: ros================================================================================Static checks summary:No errors or warnings================================================================================Cannot communicate with master, ignoring graph checks
If your installation ran correctly you should output similar to the above. The output is telling you:
"Stack: ros": roswtf uses whatever your current directory is to determine what checks it does. This is telling us that you startedroswtf in the ros stack.
- "Static checks summary": this is a report on any filesystem issues. It's telling us that there were no errors.
"Cannot communicate with master, ignoring graph checks": the roscore isn't running, so roswtf didn't do any online checks.
Trying it online
For this next step, we want a Master to be up, so go ahead and start a roscore.
Now, try running the same sequence again:
$ roscd$ roswtf
You should see:
Stack: ros================================================================================Static checks summary:No errors or warnings================================================================================Beginning tests of your ROS graph. These may take awhile...analyzing graph...... done analyzing graphrunning graph rules...... done running graph rulesOnline checks summary:Found 1 warning(s).Warnings are things that may be just fine, but are sometimes at faultWARNING The following node subscriptions are unconnected: * /rosout: * /rosout
roswtf did some online examination of your graph now that yourroscore is running. Depending on how many ROS nodes you have running, this can take a long time to complete. As you can see, this time it produced a warning:
WARNING The following node subscriptions are unconnected: * /rosout: * /rosout
roswtf is warning you that the rosout node is subscribed to a topic that no one is publishing to. In this case, this is expected because nothing else is running, so we can ignore it.
Errors
roswtf will warn you about things that look suspicious but may be normal in your system. It can also report errors for problems that it knows are wrong.
For this part, we are going to set your ROS_PACKAGE_PATH to abad value. We're also going to stop our roscore to simplify the output that you see.
$ roscd$ ROS_PACKAGE_PATH=bad:$ROS_PACKAGE_PATH roswtf
This time we see:
Stack: ros================================================================================Static checks summary:Found 1 error(s).ERROR Not all paths in ROS_PACKAGE_PATH [bad] point to an existing directory: * bad================================================================================Cannot communicate with master, ignoring graph checks
As you can see, roswtf now gives us an error about theROS_PACKAGE_PATH setting.
There are many other types of problems that roswtf can find. If you find yourself stumped by a build or communication issue, try running it and seeing if it can point you in the right direction.
Now that you know how to use roswtf, take sometime to learn more about how ros.org is structured andnavigating the wiki.- ROS学习手记12 -- ROS问题检测工具roswtf
- ROS学习--(十六)roswtf
- ROS学习笔记十二:使用roswtf
- ROS工具roswtf
- ROS学习(基于Ubuntu 15.04 和ROS Jade)第三章 ROS核心教程 之 16 roswtf入门
- ROS入门_1.17 roswtf入门
- ROS教程(十六):roswtf入门
- ROS学习手记 - 1了解并安装ROS+创建ROS_Package
- ROS学习手记 - 3 理解ROS中的基本概念_ROS_Nodes
- ROS学习手记 - 4 理解ROS中的基本概念_ROS_Topics
- ROS学习手记 - 7 创建ROS msg & srv
- ROS学习手记 - 8 编写ROS的Publisher and Subscriber
- ROS进阶学习手记 4 -- 使用Eclipse开发ROS
- ROS学习手记 9 -- 阶段性复习
- ROS进阶学习手记 8 -- 认识tf
- ROS进阶学习手记6.1 -- Launch File
- 机器人操作系统ROS Indigo 入门学习(17)——roswtf入门指南
- 机器人操作系统ROS Indigo 入门学习(17)——roswtf入门指南
- Unity3D 游戏引擎之控制模型移动旋转与碰撞
- hdu 1016 Prime Ring Problem
- 一、通过发送系统广播让android关机、重启
- CoreAnimation编程指南(六)动画
- C#笔记 垃圾回收garbage collection
- ROS学习手记12 -- ROS问题检测工具roswtf
- Activity Intent Flags及Task相关属性
- 我的书单和简单书评(持续更新)
- properties操作。
- Unity3D研究之与根据动态的两个轨迹点绘制面详解
- 当大数据遇见应用性能管理(概念篇①)
- CoreAnimation编程指南(七)图层Action
- Spring-Controller单元测试
- 通过js、jquery、ajax将php的输出传给html元素