demos
demos copied to clipboard
Quality of service demos in python
Context: The image_tools demo is used in the “Use quality-of-service settings to handle lossy networks” tutorial. This demo currently only exists for C++. We have since added a python client library for ROS 2.
To do:
-
[ ] Replicate the image_tools demo using the python client library.
- [ ] using a webcam
- [ ] using synthetic images (useful for running automated tests without having a camera present)
-
[ ] Incorporate it into the quality of service tutorial.
Pointers:
- This PR has examples of using different QoS profiles in python nodes: https://github.com/ros2/examples/pull/132/files
- This OpenCV tutorial shows how to show images in python: http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_image_display/py_image_display.html
- This C++ image_tools demo shows how to list a dependency on OpenCV: https://github.com/ros2/demos/blob/16c3bc5d41462bbace90bff66d45ad1f3e42f91a/image_tools/package.xml#L11
Was this closed by: https://github.com/ros2/examples/pull/132 ?
Not quite, but they are indeed related. The examples in ros2/examples#132 (e.g. qos_listener_py.py
) are quite simple - they just send/receive strings. The demo being referred to here is with images, because it's easier to "feel" the latency in the quality of service demo with a lagging webcam stream than it is to with strings.
I'm going to take a crack at doing this to get my feet wet.
As this is low priority and blocked by the availability of OpenCV3 python3 bindings (ubuntu bionic), assigning it to the untargeted milestone