Difference between revisions of "Image sink example"

From Wiki for iCub and Friends
Jump to: navigation, search
 
Line 1: Line 1:
 
image_sink is an example program that shows how to receive an image from the robot, modify it and send it to another port (so that it can be displayed with yarpview).
 
image_sink is an example program that shows how to receive an image from the robot, modify it and send it to another port (so that it can be displayed with yarpview).
  
You can find image_sink the icub repository, under vvv/nat/image_sink. Run it for example:
+
You can find image_sink the icub repository, under vvv/nat/image_sink.  
 +
 
 +
CMake it, compile and run it. For example:
 
   image_sink --name /mysink
 
   image_sink --name /mysink
  
Line 7: Line 9:
  
 
   yarp connect /james/cam/left /mysink/in mcast
 
   yarp connect /james/cam/left /mysink/in mcast
 
 
   yarp connect /mysink/out /your-yarpview/in
 
   yarp connect /mysink/out /your-yarpview/in

Revision as of 18:54, 19 July 2006

image_sink is an example program that shows how to receive an image from the robot, modify it and send it to another port (so that it can be displayed with yarpview).

You can find image_sink the icub repository, under vvv/nat/image_sink.

CMake it, compile and run it. For example:

  image_sink --name /mysink

The program creates two ports /mysink/in and /mysink/out. Connect /james/cam/left to /mysink/in and /mysink/out to a yarpview input port, like this:

  yarp connect /james/cam/left /mysink/in mcast
  yarp connect /mysink/out /your-yarpview/in