ROS2
[ROS2] Tutorial Beginner : Client libraries - Using ros2doctor to identify issues
씨주
2024. 11. 8. 16:31
Using ros2doctor to identify issues
Background
ros2 code를 작성했는데 구현되지 않는다면 ros2doctor tool을 이용하여 확인할 수 있다.
ros2doctor는 platform, version, network, environment, running systems, warns(errors, reasons for issues) 등 모든 방면에서 확인 가능하다.
Tasks
ros2doctor를 실행해보면 setup module을 확인 후 warnings, errors를 return 해준다.
필자의 경우 튜토리얼 진행했던 폴더에서 실행했을 때 총 5가지를 체크하고 UserWarning이 출력되었다.
ros2 doctor
UserWarning은 큰 문제가 있는 것은 아니고 ideal하지 않아서 발생한다.
<path>: <line>: UserWarning: <message>
대부분 확인된 사항들은 warning으로 분류되어 feedback의 중요도를 user가 결정하도록 하는데 UserWarning: ERROR는 failed되며 확인하여야 한다.
1/3 checks failed
Failed modules: network
아래와 같이 --report를 추가하면 전체 report를 볼 수 있다.
ros2 doctor --report
NETWORK CONFIGURATION, PLATFORM INFORMATION, RMW MIDDLEWARE, ROS 2 INFORMATION, TOPIC LIST 이렇게 5가지 분류로 나눠서 출력된다.
ROS2_Humble Documentation : https://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries.html