20 Joint2DofIDs::iterator dofIDMapIter = offsetMap.find(jointName);
21 if (dofIDMapIter != offsetMap.end())
25 DofID2Offset::iterator offsetIter = dofIDMapIter->second.find(dof);
26 if (offsetIter != dofIDMapIter->second.end())
27 moverPtr->
SetOffset(weight * offsetIter->second);
33 ifstream inputFile(fileName.c_str());
37 while (inputFile >> jointName >> dof >> offset)
38 offsetMap[jointName][dof] = offset;
Header file for V-ART class "Dof".
const std::string & GetDescription() const
Returns a copy of the object's description.
Header file for V-ART class "OffsetModifier".
const Dof * GetTarget()
Returns a pointer to the target DOF.
virtual void Modify(NoisyDofMover *moverPtr)
Noisy Controller for DOF movement.
void SetOffset(float newOffset)
Set the offset attribute.
Header file for V-ART class "NoisyDofMover".
DofID GetDofID(const Dof *dofPtr) const
Returns the DofID of some member Dof.
void LoadFromFile(const std::string &fileName)
Joint * GetOwnerJoint() const
Degree Of Freedom - basic component of a Joint.