When something weird happens

ROS has several tools to detect potential problems in all the elements of a given package. Just move with roscd to the package you want to analyze. Then, run roswtf. For chapter3_tutorials, we have the following output. Note that if you have something running, the ROS graph would be analyzed too. We run the roslaunch chapter3_tutorials example6.launch command that yields the an output similar to the following screenshot:

When something weird happens

In general, we should expect no error or warning, but even some of them are innocuous. In the preceding screenshot, we see that roswtf does not detect any error; it only issues a warning about pip, which sometimes might generate problems with the Python code installed in the system. Note that the purpose of roswtf is to signal potential problems, and then we are responsible to check whether they are real or meaningless ones, as in the previous case.

Another useful tool is catkin_lint, which helps to diagnose errors with catkin, usually in the CMakeLists.txt and package.xml files. For chapter3_tutorials, we have the following output:

$ catkin_lint –W2 --pkg chapter3_tutorials

With -W2, we see warnings that can be usually ignored, as the ones shown in the following screenshot:

When something weird happens
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset