Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jsk_fetch_startup] Publish diagnostics for important topics and nodes #1481

Merged
merged 7 commits into from
Aug 12, 2022

Conversation

708yamaguchi
Copy link
Member

This is refined version of #1460
Copied from knorth55#222
This depends on jsk-ros-pkg/jsk_common#1727

I want fetch to indicate that topic has not come or node does not exist.
For example, I want to check existence of /audio or /insta360, whose publisher does not publish /diagnostics.

What I did in this PR is as follows:

  • Change diagnostics aggregator prefix according to node name change.
  • Add node to publish /diagnostics

@k-okada
Copy link
Member

k-okada commented May 24, 2022

wait for upstream release ??

@708yamaguchi
Copy link
Member Author

Sorry, I force-pushed commits because knorth55#222 is force-pushed.

@708yamaguchi
Copy link
Member Author

@k-okada

wait for upstream release ??

We do not need to wait for upstream release.

In fetch PC, we use knorth55/jsk_common's fetch15 branch.

- git:
local-name: jsk-ros-pkg/jsk_common
uri: https://github.com/knorth55/jsk_common.git
version: fetch15

In this branch, sanity_diagnostics.py is already merged.
knorth55/jsk_common#4

@708yamaguchi
Copy link
Member Author

Cherry-pick knorth55#240 to publish diagnostics for more topics.

Copy link
Member

@k-okada k-okada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please resolve confllicts and pass CI

@708yamaguchi
Copy link
Member Author

708yamaguchi commented Aug 9, 2022

I force-pushed commits and resolved coflicts.

However, the kinetic test fails.
https://github.com/jsk-ros-pkg/jsk_robot/runs/7748594263?check_suite_focus=true

This is because jsk_tools/sanity_diagnotics.py (new in jsk_tools 2.2.12) is not installed in kinetic.

2022-08-09T14:59:52.6084488Z Setting up ros-kinetic-jsk-tools (2.2.11-1xenial-20210503-140551-0800) ...
2022-08-09T15:11:11.6772391Z FAILURE:
2022-08-09T15:11:11.6772530Z 
2022-08-09T15:11:11.6772650Z                                                                                 
2022-08-09T15:11:11.6773098Z [/github/home/ros/ws_jsk_robot/src/jsk_robot/jsk_fetch_robot/jsk_fetch_startup/launch/fetch_gazebo_bringup.launch]:
2022-08-09T15:11:11.6773383Z 
2022-08-09T15:11:11.6773516Z                                                                                 
2022-08-09T15:11:11.6773869Z 	cannot find node [sanity_diagnostics.py] in package [jsk_tools]
2022-08-09T15:11:11.8218475Z -- run_tests.py: verify result "/github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup/roslaunch-check_launch_rviz.launch.xml"
2022-08-09T15:11:11.8218832Z 
2022-08-09T15:11:11.8218838Z 
2022-08-09T15:11:11.8219007Z                                                                                 
2022-08-09T15:11:11.8219431Z Built target _run_tests_jsk_fetch_startup_roslaunch-check_launch_rviz.launch
2022-08-09T15:11:11.8219642Z 
2022-08-09T15:11:11.8219648Z 
2022-08-09T15:11:11.8219766Z                                                                                 
2022-08-09T15:11:11.8220433Z Scanning dependencies of target _run_tests_jsk_fetch_startup_roslaunch-check_launch_fetch_gazebo_bringup.launch
2022-08-09T15:11:11.8220681Z 
2022-08-09T15:11:11.8220686Z 
2022-08-09T15:11:11.8220803Z                                                                                 
2022-08-09T15:11:11.8221113Z -- run_tests.py: execute commands
2022-08-09T15:11:11.8221263Z 
2022-08-09T15:11:11.8221394Z                                                                                 
2022-08-09T15:11:11.8221880Z   /usr/bin/cmake -E make_directory /github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup
2022-08-09T15:11:11.8222115Z 
2022-08-09T15:11:11.8222230Z                                                                                 
2022-08-09T15:11:11.8223210Z   /github/home/ros/ws_jsk_robot/src/jsk_robot/jsk_fetch_robot/jsk_fetch_startup/scripts/roslaunch-check -o '/github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup/roslaunch-check_launch_fetch_gazebo_bringup.launch.xml' '/github/home/ros/ws_jsk_robot/src/jsk_robot/jsk_fetch_robot/jsk_fetch_startup/launch/fetch_gazebo_bringup.launch' 
2022-08-09T15:11:11.8223740Z 
2022-08-09T15:11:11.8223745Z 
2022-08-09T15:11:11.8223863Z                                                                                 
2022-08-09T15:11:11.8224229Z checking /github/home/ros/ws_jsk_robot/src/jsk_robot/jsk_fetch_robot/jsk_fetch_startup/launch/fetch_gazebo_bringup.launch
2022-08-09T15:11:11.8224733Z 
2022-08-09T15:11:11.8224737Z 
2022-08-09T15:11:11.8224852Z                                                                                 
2022-08-09T15:11:11.8225178Z Missing package dependencies: fetch_gazebo/package.xml: robot_state_publisher, topic_tools
2022-08-09T15:11:11.8225409Z 
2022-08-09T15:11:11.8225523Z                                                                                 
2022-08-09T15:11:11.8225854Z Missing package dependencies: jsk_maps/package.xml: tf, map_server, roseus, topic_tools
2022-08-09T15:11:11.8226079Z 
2022-08-09T15:11:11.8226295Z                                                                                 
2022-08-09T15:11:11.8226720Z Missing package dependencies: jsk_fetch_startup/package.xml: jsk_network_tools, sound_play, jsk_fetch_diagnosis, fetch_gazebo, tf, jsk_tools, nodelet, gazebo_ros
2022-08-09T15:11:11.8227019Z 
2022-08-09T15:11:11.8227024Z 
2022-08-09T15:11:11.8227142Z                                                                                 
2022-08-09T15:11:11.8227498Z Missing package dependencies: jsk_robot_startup/package.xml: topic_tools, roseus, rosapi, rostwitter
2022-08-09T15:11:11.8227734Z 
2022-08-09T15:11:11.8227739Z 
2022-08-09T15:11:11.8227854Z                                                                                 
2022-08-09T15:11:11.8228439Z ...writing test results to /github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup/roslaunch-check_launch_fetch_gazebo_bringup.launch.xml
2022-08-09T15:11:11.8228739Z 
2022-08-09T15:11:11.8228743Z 
2022-08-09T15:11:11.8228860Z                                                                                 
2022-08-09T15:11:11.8229437Z wrote test file to [/github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup/roslaunch-check_launch_fetch_gazebo_bringup.launch.xml]
2022-08-09T15:11:11.8229735Z 
2022-08-09T15:11:11.8229740Z 
2022-08-09T15:11:11.8229857Z                                                                                 
2022-08-09T15:11:11.8230438Z -- run_tests.py: verify result "/github/home/ros/ws_jsk_robot/build/jsk_fetch_startup/test_results/jsk_fetch_startup/roslaunch-check_launch_fetch_gazebo_bringup.launch.xml"

@708yamaguchi
Copy link
Member Author

All tests have passed by adding jsk_common 2.2.12 to .travis.rosinstall.kinetic

@k-okada
Copy link
Member

k-okada commented Aug 10, 2022

please add following code to jsk_fetch_startup/package.xml

  <run_depend version_gte="2.2.12">jsk_tools</run_depend>
  <run_depend>jsk_network_tools</run_depend>
  <run_depend>sound_play</run_depend>
  <run_depend>jsk_fetch_diagnosis</run_depend>
  <run_depend>tf</run_depend>
  <run_depend>nodelet</run_depend>

the list of packages is taken from https://github.com/jsk-ros-pkg/jsk_robot/runs/7748594263?check_suite_focus=true and inteintinally removed gazebo packages, because it is not necessary for real application.

2022-08-09T15:11:11.8226720Z Missing package dependencies: jsk_fetch_startup/package.xml: jsk_network_tools, sound_play, jsk_fetch_diagnosis, fetch_gazebo, tf, jsk_tools, nodelet, gazebo_ros

@708yamaguchi
Copy link
Member Author

please add following code to jsk_fetch_startup/package.xml

Thank you very much for your advice.
I updated. ea5bb8d (#1481)

@k-okada k-okada merged commit 1f44c97 into jsk-ros-pkg:master Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants