demos icon indicating copy to clipboard operation
demos copied to clipboard

Quality of service demos in python

Open dhood opened this issue 8 years ago • 4 comments

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

dhood avatar Nov 01 '16 17:11 dhood

Was this closed by: https://github.com/ros2/examples/pull/132 ?

kgreenek avatar Nov 23 '16 22:11 kgreenek

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.

dhood avatar Nov 28 '16 19:11 dhood

I'm going to take a crack at doing this to get my feet wet.

clalancette avatar Jan 06 '17 17:01 clalancette

As this is low priority and blocked by the availability of OpenCV3 python3 bindings (ubuntu bionic), assigning it to the untargeted milestone

mikaelarguedas avatar Feb 22 '18 19:02 mikaelarguedas