Yarpview output mouse press

From Wiki for iCub and Friends
Jump to: navigation, search

To get yarpview to output the position of a mouse click:

start yarpview with an output port

yarpview --name "/user/viewer" --out "/user/viewer/out"

then if you start and connect a reader to the output port, you will see the position in pixels of mouse clicks.

Note that this requires an image to be displayed in the viewer.