MoNetAgentManager Class Reference

#include <MoNetAgentManager.h>

List of all members.

Public Member Functions

 MoNetAgentManager ()
 ~MoNetAgentManager ()
void InitDRX900 ()
void InitDRX1000 ()
void Start (OSubject *effector)
void RegisterMoNetAgent (MoNetAgent *m)
void NotifyCommand (const ONotifyEvent &event, MoNetAgentResult *result)
void ReadyEffector (const OReadyEvent &event, MoNetAgentResult *result)
OPrimitiveID PrimitiveID (int idx)
OSubject * Effector ()
RCRegion * FindFreeCommandRegion ()

Private Member Functions

void OpenPrimitivesDRX900 ()
void NewCommandVectorDataDRX900 ()
void OpenPrimitivesDRX1000 ()
void NewCommandVectorDataDRX1000 ()
void LoadMotionODA ()

Private Attributes

MoNetAgentprevMoNetAgent
MoNetAgentactiveMoNetAgent
MoNetAgentCommand activeAgentCommand
list< MoNetAgent * > moNetAgentList
OSubject * effectorSubject
OPrimitiveID primitiveID [MAX_NUM_JOINTS]
RCRegion * commandRegions [NUM_COMMAND_VECTOR]
ODesignDataID motionDataID
ODA motionODA

Static Private Attributes

const size_t NUM_COMMAND_VECTOR = 4


Constructor & Destructor Documentation

MoNetAgentManager::MoNetAgentManager  ) 
 

Definition at line 17 of file MoNetAgentManager.cc.

References commandRegions, and primitiveID.

MoNetAgentManager::~MoNetAgentManager  )  [inline]
 

Definition at line 99 of file MoNetAgentManager.h.


Member Function Documentation

OSubject* MoNetAgentManager::Effector  )  [inline]
 

Definition at line 111 of file MoNetAgentManager.h.

Referenced by NeutralAgent7::AdjustDiffJointValue(), NeutralAgent::AdjustDiffJointValue(), MTNAgent7::Move(), MTNAgent::Move(), NeutralAgent7::MoveToBroadBase(), NeutralAgent::MoveToBroadBase(), NeutralAgent7::MoveToSleeping(), and NeutralAgent::MoveToSleeping().

RCRegion * MoNetAgentManager::FindFreeCommandRegion  ) 
 

Definition at line 257 of file MoNetAgentManager.cc.

References commandRegions.

Referenced by NeutralAgent7::AdjustDiffJointValue(), NeutralAgent::AdjustDiffJointValue(), MTNAgent7::Move(), MTNAgent::Move(), NeutralAgent7::MoveToBroadBase(), NeutralAgent::MoveToBroadBase(), NeutralAgent7::MoveToSleeping(), and NeutralAgent::MoveToSleeping().

void MoNetAgentManager::InitDRX1000  ) 
 

Definition at line 51 of file MoNetAgentManager.cc.

References LoadMotionODA(), moNetAgentList, motionODA, NewCommandVectorDataDRX1000(), and OpenPrimitivesDRX1000().

Referenced by MotionAgents::DoInit().

void MoNetAgentManager::InitDRX900  ) 
 

Definition at line 34 of file MoNetAgentManager.cc.

References LoadMotionODA(), moNetAgentList, motionODA, NewCommandVectorDataDRX900(), and OpenPrimitivesDRX900().

Referenced by MotionAgents::DoInit().

void MoNetAgentManager::LoadMotionODA  )  [private]
 

Definition at line 269 of file MoNetAgentManager.cc.

References byte, motionDataID, motionODA, and ODA::Set().

Referenced by InitDRX1000(), and InitDRX900().

void MoNetAgentManager::NewCommandVectorDataDRX1000  )  [private]
 

Definition at line 215 of file MoNetAgentManager.cc.

References commandRegions, DRX1000_NUM_JOINTS, NUM_FRAMES, and primitiveID.

Referenced by InitDRX1000().

void MoNetAgentManager::NewCommandVectorDataDRX900  )  [private]
 

Definition at line 181 of file MoNetAgentManager.cc.

References commandRegions, DRX900_NUM_JOINTS, NUM_FRAMES, and primitiveID.

Referenced by InitDRX900().

void MoNetAgentManager::NotifyCommand const ONotifyEvent &  event,
MoNetAgentResult result
 

Definition at line 83 of file MoNetAgentManager.cc.

References activeAgentCommand, activeMoNetAgent, MoNetAgentCommand::agent, MoNetAgentResult::agent, MoNetAgentResult::endPosture, MoNetAgentCommand::index, MoNetAgentResult::index, moNetAgentList, prevMoNetAgent, and MoNetAgentResult::status.

Referenced by MotionAgents::NotifyCommand().

void MoNetAgentManager::OpenPrimitivesDRX1000  )  [private]
 

Definition at line 161 of file MoNetAgentManager.cc.

References primitiveID.

Referenced by InitDRX1000().

void MoNetAgentManager::OpenPrimitivesDRX900  )  [private]
 

Definition at line 143 of file MoNetAgentManager.cc.

References primitiveID.

Referenced by InitDRX900().

OPrimitiveID MoNetAgentManager::PrimitiveID int  idx  )  [inline]
 

Definition at line 110 of file MoNetAgentManager.h.

Referenced by NeutralAgent7::AdjustDiffJointValue(), NeutralAgent::AdjustDiffJointValue(), NeutralAgent7::MoveToBroadBase(), NeutralAgent::MoveToBroadBase(), NeutralAgent7::SetJointGain(), NeutralAgent::SetJointGain(), MTNWALKAgent7::SetJointGain(), MTNAgent7::SetJointGain(), MTNAgent::SetJointGain(), NeutralAgent7::SetJointValue(), NeutralAgent::SetJointValue(), MTNAgent7::SetPrimitiveID(), and MTNAgent::SetPrimitiveID().

void MoNetAgentManager::ReadyEffector const OReadyEvent &  event,
MoNetAgentResult result
 

Definition at line 122 of file MoNetAgentManager.cc.

References activeAgentCommand, activeMoNetAgent, MoNetAgentResult::agent, MoNetAgentCommand::Clear(), MoNetAgentResult::endPosture, MoNetAgentResult::index, prevMoNetAgent, MoNetAgent::ReadyEffector(), and MoNetAgentResult::status.

Referenced by MotionAgents::ReadyEffector().

void MoNetAgentManager::RegisterMoNetAgent MoNetAgent m  ) 
 

Definition at line 75 of file MoNetAgentManager.cc.

References moNetAgentList, and MoNetAgent::SetMoNetAgentManager().

Referenced by MotionAgents::DoInit().

void MoNetAgentManager::Start OSubject *  effector  ) 
 

Definition at line 68 of file MoNetAgentManager.cc.

References effectorSubject.

Referenced by MotionAgents::DoStart().


Member Data Documentation

MoNetAgentCommand MoNetAgentManager::activeAgentCommand [private]
 

Definition at line 127 of file MoNetAgentManager.h.

Referenced by NotifyCommand(), and ReadyEffector().

MoNetAgent* MoNetAgentManager::activeMoNetAgent [private]
 

Definition at line 126 of file MoNetAgentManager.h.

Referenced by NotifyCommand(), and ReadyEffector().

RCRegion* MoNetAgentManager::commandRegions[NUM_COMMAND_VECTOR] [private]
 

Definition at line 133 of file MoNetAgentManager.h.

Referenced by FindFreeCommandRegion(), MoNetAgentManager(), NewCommandVectorDataDRX1000(), and NewCommandVectorDataDRX900().

OSubject* MoNetAgentManager::effectorSubject [private]
 

Definition at line 130 of file MoNetAgentManager.h.

Referenced by Start().

list<MoNetAgent*> MoNetAgentManager::moNetAgentList [private]
 

Definition at line 128 of file MoNetAgentManager.h.

Referenced by InitDRX1000(), InitDRX900(), NotifyCommand(), and RegisterMoNetAgent().

ODesignDataID MoNetAgentManager::motionDataID [private]
 

Definition at line 135 of file MoNetAgentManager.h.

Referenced by LoadMotionODA().

ODA MoNetAgentManager::motionODA [private]
 

Definition at line 136 of file MoNetAgentManager.h.

Referenced by InitDRX1000(), InitDRX900(), and LoadMotionODA().

const size_t MoNetAgentManager::NUM_COMMAND_VECTOR = 4 [static, private]
 

Definition at line 123 of file MoNetAgentManager.h.

MoNetAgent* MoNetAgentManager::prevMoNetAgent [private]
 

Definition at line 125 of file MoNetAgentManager.h.

Referenced by NotifyCommand(), and ReadyEffector().

OPrimitiveID MoNetAgentManager::primitiveID[MAX_NUM_JOINTS] [private]
 

Definition at line 131 of file MoNetAgentManager.h.

Referenced by MoNetAgentManager(), NewCommandVectorDataDRX1000(), NewCommandVectorDataDRX900(), OpenPrimitivesDRX1000(), and OpenPrimitivesDRX900().


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