Yarpview output mouse press

From Wiki for iCub and Friends
Revision as of 18:47, 20 July 2006 by (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.