Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LGmixin Class Reference

Mix-in for the BehaviorBase or StateNode class to give access to Looking Glass variables. More...

#include <LGmixin.h>

Inheritance diagram for LGmixin:

Detailed Description

Mix-in for the BehaviorBase or StateNode class to give access to Looking Glass variables.

Definition at line 9 of file LGmixin.h.

List of all members.

Public Member Functions

 LGmixin ()
 Constructor.
virtual ~LGmixin ()
 Destructor.

Static Public Member Functions

static void uploadFile (const std::string &filename, bool display=false, bool isImage=false)
 Upload a file from the AIBO to the Looking Glass client.
static void displayHtmlFile (const std::string &remoteFilename)
 Display an HTML file on the Looking Glass.
static void displayImageFile (const std::string &remoteFilename)
 Display a single image file on the Looking Glass (creates a dummy HTML file).
static void displayHtmlText (const std::string &text)
 Display HTML string on the Looking Glass (creates a dummy HTML file).
static void uploadCameraImage (const std::string &remoteFileName)
 Upload current camera image to the Looking Glass client as a JPEG file.
static void sendCommand (const std::string &command)
 For debugging: send an arbitrary command string to the Looking Glass client.
static void uploadSketch (const DualCoding::Sketch< DualCoding::uchar > &sketch, const std::string &remoteFilename)
 Upload a sketch as a JPEG file to the Looking Glass client.

Static Protected Attributes

static unsigned int instanceCount = 0
 count of LGmixin instances -- when this hits zero, close the socket
static SocketLGsock = NULL
 socket to talk to Looking Glass server

Private Member Functions

 LGmixin (const LGmixin &)
 never call this
LGmixinoperator= (const LGmixin &)
 never call this

Static Private Attributes

static LGmixintheOne = NULL
 used so static member functions can access non-static members
static const unsigned int LGbufferSize = 80000
 maximum send buffer size
static const unsigned int LGport = 10100
 port number to listen on

Constructor & Destructor Documentation

LGmixin::LGmixin (  ) 

Constructor.

Definition at line 21 of file LGmixin.cc.

LGmixin::~LGmixin (  )  [virtual]

Destructor.

Definition at line 35 of file LGmixin.cc.

LGmixin::LGmixin ( const LGmixin  )  [private]

never call this


Member Function Documentation

void LGmixin::displayHtmlFile ( const std::string &  remoteFilename  )  [static]

Display an HTML file on the Looking Glass.

Definition at line 88 of file LGmixin.cc.

Referenced by displayHtmlText(), displayImageFile(), and uploadFile().

void LGmixin::displayHtmlText ( const std::string &  text  )  [static]

Display HTML string on the Looking Glass (creates a dummy HTML file).

Definition at line 101 of file LGmixin.cc.

void LGmixin::displayImageFile ( const std::string &  remoteFilename  )  [static]

Display a single image file on the Looking Glass (creates a dummy HTML file).

Definition at line 93 of file LGmixin.cc.

Referenced by uploadFile().

LGmixin& LGmixin::operator= ( const LGmixin  )  [private]

never call this

void LGmixin::sendCommand ( const std::string &  command  )  [static]

For debugging: send an arbitrary command string to the Looking Glass client.

Definition at line 115 of file LGmixin.cc.

void LGmixin::uploadCameraImage ( const std::string &  remoteFileName  )  [static]

Upload current camera image to the Looking Glass client as a JPEG file.

Definition at line 119 of file LGmixin.cc.

void LGmixin::uploadFile ( const std::string &  filename,
bool  display = false,
bool  isImage = false 
) [static]

Upload a file from the AIBO to the Looking Glass client.

Definition at line 46 of file LGmixin.cc.

void LGmixin::uploadSketch ( const DualCoding::Sketch< DualCoding::uchar > &  sketch,
const std::string &  remoteFilename 
) [static]

Upload a sketch as a JPEG file to the Looking Glass client.

Definition at line 134 of file LGmixin.cc.


Member Data Documentation

unsigned int LGmixin::instanceCount = 0 [static, protected]

count of LGmixin instances -- when this hits zero, close the socket

Definition at line 11 of file LGmixin.h.

Referenced by LGmixin(), and ~LGmixin().

const unsigned int LGmixin::LGbufferSize = 80000 [static, private]

maximum send buffer size

Definition at line 49 of file LGmixin.h.

Referenced by LGmixin().

const unsigned int LGmixin::LGport = 10100 [static, private]

port number to listen on

Definition at line 50 of file LGmixin.h.

Referenced by LGmixin().

Socket * LGmixin::LGsock = NULL [static, protected]

socket to talk to Looking Glass server

Definition at line 12 of file LGmixin.h.

Referenced by displayHtmlFile(), displayHtmlText(), displayImageFile(), LGmixin(), sendCommand(), uploadCameraImage(), uploadFile(), uploadSketch(), and ~LGmixin().

LGmixin * LGmixin::theOne = NULL [static, private]

used so static member functions can access non-static members

Definition at line 44 of file LGmixin.h.

Referenced by LGmixin(), and ~LGmixin().


The documentation for this class was generated from the following files:

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:12 2016 by Doxygen 1.6.3