Conversation
mjcarroll
left a comment
There was a problem hiding this comment.
Would it be possible to add some tests just to verify the basic behavior of the bw verb?
Probably something along the lines of the info test would be suitable (https://github.com/ros2/ros2cli/blob/master/ros2topic/test/test_info.py)
dirk-thomas
left a comment
There was a problem hiding this comment.
Please take some time to actually write a description for your PR even when it is short. Also mentioning that this patch requires ros2/rclpy#242 would be helpful.
ros2topic/ros2topic/verb/bw.py
Outdated
| def add_arguments(self, parser, cli_name): | ||
| arg = parser.add_argument( | ||
| 'topic', | ||
| help='Topic name to be calcurated the delay') |
There was a problem hiding this comment.
This one is actually in the original import.
'Topic name to monitor for bandwidth utilization'
@mjcarroll I try to add test code but meet a issue that |
|
Hey @yechun1 , sorry for the delay. Can you rebase and --signoff your commits to appease the DCO and I will run a CI round on this? |
This file is originally copied from: https://github.com/ros/ros_comm/blob/6e5016f4b2266d8a60c9a1e163c4928b8fc7115e/tools/rostopic/src/rostopic/__init__.py Signed-off-by: Chris Ye <chris.ye@intel.com>
Signed-off-by: Chris Ye <chris.ye@intel.com>
enable ros2topic bw to display bandwidth used by topic. Signed-off-by: Chris Ye <chris.ye@intel.com>
c94f22e to
1854c78
Compare
|
Hi @mjcarroll , just rebased code and re-submitted. |
|
Thanks for the contribution! |
|
thanks for approval and merge. |
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Port rostopic bw from ROS1 to ROS2, enable the tool to display bandwidth used by topic.
Fixed the issue: #132
This patch requires ros2/rclpy#242