Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

LGmixin Class Reference

#include <LGmixin.h>

List of all members.


Detailed Description

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

Definition at line 13 of file LGmixin.h.

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 PNG file to the Looking Glass client (not implemented yet).

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


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

Tekkotsu v3.0
Generated Fri May 11 20:08:16 2007 by Doxygen 1.4.7