Using cameras and blobfinders

From The Player Project

(Difference between revisions)
Jump to: navigation, search
(copy the "tutorial" from the manual pages)
Line 1: Line 1:
 +
nodronacela

Revision as of 03:47, 15 October 2007

nodronacela


Some explanation must go here.

#include <libplayerc++/playerc++.h>
#include "args.h"
#include <iostream>

int main(int argc, char** argv)
{
  parse_args(argc, argv);

  try
  {
    PlayerCc::PlayerClient client(gHostname, gPort);
    PlayerCc::CameraProxy cp(&client, gIndex);

    for (uint i=0; i<10; ++i)
    {
      client.Read();
      cp.SaveFrame("camera");
      std::cout << cp << std::endl;
    }

  }
  catch (PlayerCc::PlayerError e)
  {
    std::cerr << e << std::endl;
    return -1;
  }
  return 1;
}
Personal tools