MTNAgent7 Class Reference

#include <MTNAgent7.h>

Inheritance diagram for MTNAgent7:

MoNetAgent MTNWALKAgent7 List of all members.

Public Member Functions

 MTNAgent7 ()
virtual ~MTNAgent7 ()
virtual bool AreYou (MoNetAgentID agent)
virtual void Init (ODA *oda)
virtual void NotifyCommand (const MoNetAgentCommand &command, MoNetAgentResult *result)
virtual void ReadyEffector (const MoNetAgentCommand &command, MoNetAgentResult *result)
virtual void SetJointGain ()

Private Member Functions

MoNetStatus SetPrimitiveID (OCommandVectorData *cmdVec, char *robotDesign)
MoNetStatus Move (OVRSyncKey syncKey)

Private Attributes

ODAmotionODA
MTN mtn

Static Private Attributes

const word TILT1_PGAIN = 0x000a
const word TILT1_IGAIN = 0x0004
const word TILT1_DGAIN = 0x0002
const word PAN_PGAIN = 0x0008
const word PAN_IGAIN = 0x0002
const word PAN_DGAIN = 0x0004
const word TILT2_PGAIN = 0x0008
const word TILT2_IGAIN = 0x0004
const word TILT2_DGAIN = 0x0002
const word J1_PGAIN = 0x0010
const word J1_IGAIN = 0x0004
const word J1_DGAIN = 0x0001
const word J2_PGAIN = 0x000a
const word J2_IGAIN = 0x0004
const word J2_DGAIN = 0x0001
const word J3_PGAIN = 0x0010
const word J3_IGAIN = 0x0004
const word J3_DGAIN = 0x0001
const word TAIL_PGAIN = 0x000a
const word TAIL_IGAIN = 0x0004
const word TAIL_DGAIN = 0x0004
const word PSHIFT = 0x000e
const word ISHIFT = 0x0002
const word DSHIFT = 0x000f

Constructor & Destructor Documentation

MTNAgent7::MTNAgent7  ) 
 

Definition at line 38 of file MTNAgent7.cc.

virtual MTNAgent7::~MTNAgent7  )  [inline, virtual]
 

Definition at line 23 of file MTNAgent7.h.


Member Function Documentation

bool MTNAgent7::AreYou MoNetAgentID  agent  )  [virtual]
 

Reimplemented from MoNetAgent.

Reimplemented in MTNWALKAgent7.

Definition at line 49 of file MTNAgent7.cc.

void MTNAgent7::Init ODA oda  )  [virtual]
 

Reimplemented from MoNetAgent.

Definition at line 43 of file MTNAgent7.cc.

References motionODA.

MoNetStatus MTNAgent7::Move OVRSyncKey  syncKey  )  [private]
 

Definition at line 109 of file MTNAgent7.cc.

References MoNetAgentManager::Effector(), MoNetAgentManager::FindFreeCommandRegion(), MTN::GetName(), MTN::GetRobotDesign(), MTN::InterpolateCommandVectorData(), MoNetStatus, monetSUCCESS, MTN::More(), mtn, MTN::Next(), NUM_FRAMES, and SetPrimitiveID().

Referenced by NotifyCommand(), and ReadyEffector().

void MTNAgent7::NotifyCommand const MoNetAgentCommand command,
MoNetAgentResult result
[virtual]
 

Reimplemented from MoNetAgent.

Definition at line 56 of file MTNAgent7.cc.

References MoNetAgentResult::agent, MoNetAgentCommand::agent, MoNetAgentResult::endPosture, MoNetAgentCommand::endPosture, ODA::GetData(), MoNetAgentResult::index, MoNetAgentCommand::index, MoNetStatus, motionODA, Move(), mtn, MTN::Set(), MoNetAgentCommand::startPosture, MoNetAgentResult::status, and MoNetAgentCommand::syncKey.

void MTNAgent7::ReadyEffector const MoNetAgentCommand command,
MoNetAgentResult result
[virtual]
 

Reimplemented from MoNetAgent.

Definition at line 93 of file MTNAgent7.cc.

References MoNetAgentCommand::agent, MoNetAgentResult::agent, MoNetAgentCommand::endPosture, MoNetAgentResult::endPosture, MoNetAgentCommand::index, MoNetAgentResult::index, MoNetStatus, Move(), and MoNetAgentResult::status.

void MTNAgent7::SetJointGain  )  [virtual]
 

Reimplemented from MoNetAgent.

Reimplemented in MTNWALKAgent7.

Definition at line 166 of file MTNAgent7.cc.

References DSHIFT, HEAD_PAN, HEAD_TILT1, HEAD_TILT2, ISHIFT, J1_DGAIN, J1_IGAIN, J1_PGAIN, J2_DGAIN, J2_IGAIN, J2_PGAIN, J3_DGAIN, J3_IGAIN, J3_PGAIN, PAN_DGAIN, PAN_IGAIN, PAN_PGAIN, MoNetAgentManager::PrimitiveID(), PSHIFT, TAIL_DGAIN, TAIL_IGAIN, TAIL_PAN, TAIL_PGAIN, TAIL_TILT, TILT1_DGAIN, TILT1_IGAIN, TILT1_PGAIN, TILT2_DGAIN, TILT2_IGAIN, and TILT2_PGAIN.

MoNetStatus MTNAgent7::SetPrimitiveID OCommandVectorData *  cmdVec,
char *  robotDesign
[private]
 

Definition at line 140 of file MTNAgent7.cc.

References DRX1000_INDEX, DRX1000_NUM_JOINTS, and MoNetAgentManager::PrimitiveID().

Referenced by Move().


Member Data Documentation

const word MTNAgent7::DSHIFT = 0x000f [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 64 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::ISHIFT = 0x0002 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 63 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J1_DGAIN = 0x0001 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 48 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J1_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 47 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J1_PGAIN = 0x0010 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 46 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J2_DGAIN = 0x0001 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 52 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J2_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 51 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J2_PGAIN = 0x000a [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 50 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J3_DGAIN = 0x0001 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 56 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J3_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 55 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::J3_PGAIN = 0x0010 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 54 of file MTNAgent7.h.

Referenced by SetJointGain().

ODA* MTNAgent7::motionODA [private]
 

Definition at line 69 of file MTNAgent7.h.

Referenced by Init(), and NotifyCommand().

MTN MTNAgent7::mtn [private]
 

Definition at line 70 of file MTNAgent7.h.

Referenced by Move(), and NotifyCommand().

const word MTNAgent7::PAN_DGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 40 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::PAN_IGAIN = 0x0002 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 39 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::PAN_PGAIN = 0x0008 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 38 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::PSHIFT = 0x000e [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 62 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TAIL_DGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 60 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TAIL_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 59 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TAIL_PGAIN = 0x000a [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 58 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT1_DGAIN = 0x0002 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 36 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT1_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 35 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT1_PGAIN = 0x000a [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 34 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT2_DGAIN = 0x0002 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 44 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT2_IGAIN = 0x0004 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 43 of file MTNAgent7.h.

Referenced by SetJointGain().

const word MTNAgent7::TILT2_PGAIN = 0x0008 [static, private]
 

Reimplemented in MTNWALKAgent7.

Definition at line 42 of file MTNAgent7.h.

Referenced by SetJointGain().


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 23:04:34 2007 for openSDK by  doxygen 1.3.9.1