Repository navigation
Add support for topic QOS for ros2topic bw, delay and hz - #935
Conversation
7f6a506 to
392e320
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
test with QoS arguments would be ideal for hz, bw, deleyand echo. (this also can be a follow-up PR, i think)
|
I'm planning on adding tests once I have time and figure out how to run the tests without getting 13 failures after over 7 min of runtime |
|
I’ve explored adding tests for the QoS parameters but couldn’t find a clear starting point. Since the other verbs, Additionally, I made a small change to the existing tests to address an instability in |
3b31907 to
399ef65
Compare
ros2cli/ros2topic/test/test_echo_pub.py Lines 308 to 312 in 01578e7 this checks if the QoS is compatible or not with the QoS arguments for |
Signed-off-by: Anthony Welte <[email protected]>
Signed-off-by: Anthony Welte <[email protected]>
Signed-off-by: Anthony Welte <[email protected]>
Signed-off-by: Anthony Welte <[email protected]>
950b0bc to
d0c0ab9
Compare
|
@fujitatomoya could you take another look when you get a chance? 🧇 |
2fdc309 to
de2d651
Compare
- Remove extract_qos_arguments since it's doing nothing useful. The QoS arguments are passed to choose_qos with other argument unfiltered - Move choose_qos outside of the _rostopic_verb method for bw and delay. The _rostopic_verb method takes a QoSProfile instead of the cli arguments Signed-off-by: Anthony Welte <[email protected]>
de2d651 to
609ff7f
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
lgtm with green CI, thanks 👍
| f'{default_profile.liveliness_lease_duration})')) | ||
|
|
||
|
|
||
| def choose_qos(node, topic_name: str, qos_args): |
There was a problem hiding this comment.
Note
Although it is okay to move this from echo.py, downstream packages are affected. since this change is only for rolling that is also fine too.
|
Pulls: #935 |
|
@TonyWelte thanks for the contribution 👍 CI is green, i will go ahead to merge this. |
This PR adds support for QoS configuration for the verbs: bw, delay and hz.
It moves the logic to decide on the QoS from
echointoros2topic.apito keep the same logic for the 4 verbs.I'm not really satisfied with my
extract_qos_argumentsfunction. It's a bit useless, it might be cleaner to just pass the full args to each_rostopic_verbfunctionResolves: #719