Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 committed Nov 21, 2024
1 parent df2570d commit 2d534c3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
12 changes: 12 additions & 0 deletions common/autoware_debug_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ ros2 run autoware_debug_tools cpu_usage_plotter <bag-path> -n 20
```

![cpu_usage_plot_example](images/cpu_usage_plot_example.png)

## Rosout Log Reconstructor

This script shows the log from the `/rosout` topic on the terminal.

### Usage

```bash
ros2 run autoware_debug_tools rosout_log_reconstructor
```

![rosout_log_example](images/rosout_log_example.png)
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ def on_rosout(self, msg):
print(text)


if __name__ == "__main__":
def main():
rclpy.init()
node = RosoutLogReconstructor()
rclpy.spin(node)


if __name__ == "__main__":
main()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions common/autoware_debug_tools/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"memory_usage_plotter = autoware_debug_tools.system_performance_plotter.memory_usage_plotter:main",
"topic_connection_checker = autoware_debug_tools.topic_connection_checker.topic_connection_checker_node:main",
"topic_localizer = autoware_debug_tools.topic_connection_checker.localize_topic:main",
"rosout_log_reconstructor = autoware_debug_tools.rosout_log_reconstructor:main",
],
},
)

0 comments on commit 2d534c3

Please sign in to comment.