Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

ArServerSimpleComGyro Class Reference

This just calls ArAnalogGyro::activate and ArAnalogGyro::deactivate. More...

#include <ArServerSimpleCommands.h>

List of all members.

Public Member Functions

 ArServerSimpleComGyro (ArServerHandlerCommands *handlerCommands, ArRobot *robot, ArAnalogGyro *gyro)
 Constructor.
void gyroDisable (void)
 Disables the gyro.
void gyroEnable (void)
 Enables the gyro.
virtual ~ArServerSimpleComGyro ()
 Destructor.

Protected Attributes

ArAnalogGyromyGyro
ArFunctorC< ArServerSimpleComGyromyGyroDisableCB
ArFunctorC< ArServerSimpleComGyromyGyroEnableCB
ArServerHandlerCommandsmyHandlerCommands
ArRobotmyRobot


Detailed Description

This just calls ArAnalogGyro::activate and ArAnalogGyro::deactivate.

If you want to see the gyro data if you use the robot's movement received (either ArRobot::setLogMovementReceived or use ArServerSimpleComMovementLogging)

Examples:

serverDemo.cpp.

Definition at line 131 of file ArServerSimpleCommands.h.


Constructor & Destructor Documentation

ArServerSimpleComGyro::ArServerSimpleComGyro ArServerHandlerCommands handlerCommands,
ArRobot robot,
ArAnalogGyro gyro
 

Constructor.

Definition at line 350 of file ArServerSimpleCommands.cpp.

References ArServerHandlerCommands::addCommand(), myGyro, myGyroDisableCB, myGyroEnableCB, myHandlerCommands, and myRobot.

ArServerSimpleComGyro::~ArServerSimpleComGyro  )  [virtual]
 

Destructor.

Definition at line 374 of file ArServerSimpleCommands.cpp.


Member Function Documentation

void ArServerSimpleComGyro::gyroDisable void   ) 
 

Disables the gyro.

Definition at line 386 of file ArServerSimpleCommands.cpp.

References ArAnalogGyro::deactivate(), ArRobot::lock(), myGyro, myRobot, and ArRobot::unlock().

void ArServerSimpleComGyro::gyroEnable void   ) 
 

Enables the gyro.

Definition at line 378 of file ArServerSimpleCommands.cpp.

References ArAnalogGyro::activate(), ArRobot::lock(), myGyro, myRobot, and ArRobot::unlock().


Member Data Documentation

ArAnalogGyro* ArServerSimpleComGyro::myGyro [protected]
 

Definition at line 146 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComGyro(), gyroDisable(), and gyroEnable().

ArFunctorC<ArServerSimpleComGyro> ArServerSimpleComGyro::myGyroDisableCB [protected]
 

Definition at line 149 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComGyro().

ArFunctorC<ArServerSimpleComGyro> ArServerSimpleComGyro::myGyroEnableCB [protected]
 

Definition at line 148 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComGyro().

ArServerHandlerCommands* ArServerSimpleComGyro::myHandlerCommands [protected]
 

Definition at line 147 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComGyro().

ArRobot* ArServerSimpleComGyro::myRobot [protected]
 

Definition at line 145 of file ArServerSimpleCommands.h.

Referenced by ArServerSimpleComGyro(), gyroDisable(), and gyroEnable().


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 10:51:52 2007 for ArNetworking by  doxygen 1.4.0