Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Add short sleep to discover info/pub topics
Browse files Browse the repository at this point in the history
It's a work arround to work with autoware.
We did not need this sleep when we worked with rosbag.
  • Loading branch information
y-okumura-isp committed Jan 13, 2022
1 parent 9277da6 commit ca27e15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pathnode_vis/pathnode_vis/latency_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,12 @@ def get_pub_info_topics(self, excludes=[]):
map
a list of pubinfo topics
"""
# short sleep between node creation and get_topic_names_and_types
# https://github.com/ros2/ros2/issues/1057
# We need this sleep with autoware,
# but don't need in dev environment(i.e. rosbagged PubInfo)
time.sleep(0.5)

msg_type = "path_info_msg/msg/PubInfo"
topic_and_types = self.get_topic_names_and_types()
filtered_topic_and_types = \
Expand Down

0 comments on commit ca27e15

Please sign in to comment.