NeutralAgent7 Class Reference

#include <NeutralAgent7.h>

Inheritance diagram for NeutralAgent7:

MoNetAgent List of all members.

Public Member Functions

 NeutralAgent7 ()
virtual ~NeutralAgent7 ()
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 AdjustDiffJointValue (OVRSyncKey syncKey)
MoNetStatus MoveToBroadBase ()
MoNetStatus MoveToSleeping ()
void SetJointValue (RCRegion *rgn, int idx, double start, double end)

Private Attributes

NeutralAgent7State neutralAgentState

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
const int BROADBASE_MAX_COUNTER = 96
const int SLEEPING_MAX_COUNTER = 96

Constructor & Destructor Documentation

NeutralAgent7::NeutralAgent7  ) 
 

Definition at line 67 of file NeutralAgent7.cc.

References NAS7_IDLE.

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

Definition at line 28 of file NeutralAgent7.h.


Member Function Documentation

MoNetStatus NeutralAgent7::AdjustDiffJointValue OVRSyncKey  syncKey  )  [private]
 

Definition at line 156 of file NeutralAgent7.cc.

References DRX1000_NUM_JOINT2, MoNetAgentManager::Effector(), MoNetAgentManager::FindFreeCommandRegion(), GetJointValue(), MoNetAgentManager::PrimitiveID(), and SetJointValue().

Referenced by NotifyCommand().

bool NeutralAgent7::AreYou MoNetAgentID  agent  )  [virtual]
 

Reimplemented from MoNetAgent.

Definition at line 77 of file NeutralAgent7.cc.

void NeutralAgent7::Init ODA oda  )  [virtual]
 

Reimplemented from MoNetAgent.

Definition at line 72 of file NeutralAgent7.cc.

MoNetStatus NeutralAgent7::MoveToBroadBase  )  [private]
 

Definition at line 180 of file NeutralAgent7.cc.

References BROADBASE_ANGLE, DRX1000_NUM_JOINT2, MoNetAgentManager::Effector(), MoNetAgentManager::FindFreeCommandRegion(), GetJointValue(), monetCOMPLETION, MoNetAgentManager::PrimitiveID(), and SetJointValue().

Referenced by ReadyEffector().

MoNetStatus NeutralAgent7::MoveToSleeping  )  [private]
 

Definition at line 229 of file NeutralAgent7.cc.

References BROADBASE_ANGLE, DRX1000_NUM_JOINT2, MoNetAgentManager::Effector(), MoNetAgentManager::FindFreeCommandRegion(), monetCOMPLETION, SetJointValue(), and SLEEPING_ANGLE.

Referenced by ReadyEffector().

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

Reimplemented from MoNetAgent.

Definition at line 84 of file NeutralAgent7.cc.

References AdjustDiffJointValue(), MoNetAgentResult::agent, MoNetAgentCommand::agent, MoNetAgentResult::endPosture, MoNetAgentCommand::endPosture, MoNetAgentResult::index, MoNetAgentCommand::index, monetagentNEUTRAL, neutralAgentState, MoNetAgentCommand::startPosture, MoNetAgentResult::status, and MoNetAgentCommand::syncKey.

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

Reimplemented from MoNetAgent.

Definition at line 114 of file NeutralAgent7.cc.

References MoNetAgentResult::agent, MoNetAgentResult::endPosture, MoNetAgentResult::index, MoNetStatus, MoveToBroadBase(), MoveToSleeping(), neutralAgentState, SetJointGain(), and MoNetAgentResult::status.

void NeutralAgent7::SetJointGain  )  [virtual]
 

Reimplemented from MoNetAgent.

Definition at line 263 of file NeutralAgent7.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.

Referenced by ReadyEffector().

void NeutralAgent7::SetJointValue RCRegion *  rgn,
int  idx,
double  start,
double  end
[private]
 

Definition at line 324 of file NeutralAgent7.cc.

References NUM_FRAMES, and MoNetAgentManager::PrimitiveID().

Referenced by AdjustDiffJointValue(), MoveToBroadBase(), and MoveToSleeping().


Member Data Documentation

const int NeutralAgent7::BROADBASE_MAX_COUNTER = 96 [static, private]
 

Definition at line 71 of file NeutralAgent7.h.

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

Definition at line 69 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 68 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 53 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 52 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 51 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 57 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 56 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 55 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 61 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 60 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 59 of file NeutralAgent7.h.

Referenced by SetJointGain().

NeutralAgent7State NeutralAgent7::neutralAgentState [private]
 

Definition at line 80 of file NeutralAgent7.h.

Referenced by NotifyCommand(), and ReadyEffector().

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

Definition at line 45 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 44 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 43 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 67 of file NeutralAgent7.h.

Referenced by SetJointGain().

const int NeutralAgent7::SLEEPING_MAX_COUNTER = 96 [static, private]
 

Definition at line 72 of file NeutralAgent7.h.

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

Definition at line 65 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 64 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 63 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 41 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 40 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 39 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 49 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 48 of file NeutralAgent7.h.

Referenced by SetJointGain().

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

Definition at line 47 of file NeutralAgent7.h.

Referenced by SetJointGain().


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