#29 Extending yarp::sig::Image::setExternal python binding

closed
None
5
2010-11-22
2010-11-22
Anonymous
No

In the morse project (http://morse.openrobots.org), we use YARP as a middleware backend for our simulator. In particular, we expose camera through a yarp::sig::Image. In blender 2.54 (which use python 3.1), blender exposes a better interface to export image, using a PyBuffer (http://docs.python.org/py3k/c-api/buffer.html). It would be nice to use it to generate yarp::sig::image as it avoids several copies between C world and python. The attached patch extends the setInternal interface do deal with such PyBuffer. I hope it will get some place in the next release

Arnaud Degroote, for the Morse team ( morse-dev at laas dot fr )

Discussion

  •  
    Attachments
  • Thanks Arnaud! This has been committed, in modified form (conditionals to avoid breaking non-python wrappers, and python 2.x wrappers).

     
    • assigned_to: nobody --> eshuy
    • status: open --> closed