User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
AccParsC::checkline(istream &,StringC &)
AccParsC::getUnit(const StringC &,const StringC &)
AccParsC::getRootInfo(ifstream &,StringC &,Vector3dC &,Vector3dC &,HtmOperT,JointT &)
AccParsC::getBoneData(ifstream &,StringC &,int &,StringC &,Vector3dC &,RealT &,Vector3dC &,HtmOperT,JointT &)
AccParsC::getOrient(const StringC &,int,HtmOperT)
AccParsC::getDof(const StringC &,const StringC &)
AccParsC::StrToJT(const StringC &)
AccParsC::ndofs(const JointT &)
AccParsC::getVector(const StringC &,const StringC &)
AccParsC::getString(const StringC &,const StringC &)
AccParsC::getReal(const StringC &,const StringC &)
AccParsC::getInt(const StringC &,const StringC &)
AccParsC::getLimits(const StringC &,int,MatrixC &)
AccParsC::getMotion(const StringC &,StringC &,int &,Vector3dC &,RealT)
AccParsC::displayVector(int,const Vector3dC &)
AccParsC::display7Values(int,const Vector3dC &,const Vector3dC &,RealT)
AccParsC::displayHomtm(const HomtmC &)
AccParsC
 
include "amma/AMParse.hh"
User Level:Default
Library:AMWorld
Example: amtool.cc
Section:Applications.Articulated models
In Scope:std

Comments:
----------------------------------------------------------------------------- *********************************** Acclaim ******************************* ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- ----------------------------------------------------------------------------- reading information from an acclaim file:

Methods:
int checkline(istream & s,StringC & line)
reads a line into the string and removes LF CR

RealT getUnit(const StringC & line,const StringC & token)
reads from 'line' and returns unit definition for lengths, masses or angles

void getRootInfo(ifstream & is,StringC & l,Vector3dC & axisdef,Vector3dC & rc,HtmOperT axseq[],JointT & dof)

void getBoneData(ifstream & is,StringC & l,int & _id,StringC & name,Vector3dC & dirVec,RealT & ltemp,Vector3dC & axisdef,HtmOperT axseq[],JointT & dof)

Vector3dC getOrient(const StringC & line,int nWords,HtmOperT seq[])
reads from 'line' and returns a vector (zero length in case nWords=2) and the last word of the line reading from ASF-file: the three elements of the vector define the initial orientation of the local axis-system with respect to the inertia axis-system. The last word in the line specifies the order of rotations. line - in - a string of characters (one line in a opened file) nWords - in - the number of characterstrings in 'line', which are separated by spaces v - out - three coordinates, if they are present in 'line' seq[3] - out - sequence of axisrotations (RotX, RotY & RotZ in arbit. seq.)

JointT getDof(const StringC & line,const StringC & token)
reads from 'line' and returns the dofs --> which dofs, order of dofs in AMC-file, order in which rotations are applied to segment

JointT StrToJT(const StringC & token)
converts a string into a JointT-type

int ndofs(const JointT & jnt)
gives the number of dofs defined by jnt

Vector3dC getVector(const StringC & line,const StringC & token)
reads from 'line', deletes 'token' from line and returns a vector

StringC getString(const StringC & line,const StringC & token)
reads from 'line', deletes 'token' from line and returns the rest of the line

RealT getReal(const StringC & line,const StringC & token)
reads from 'line', deletes 'token' from line and returns a double

int getInt(const StringC & line,const StringC & token)
reads from 'line', deletes 'token' from line and returns an unsigned integer

void getLimits(const StringC & line,int i,MatrixC & limits)


Vector3dC getMotion(const StringC & line,StringC & segname,int & nconv,Vector3dC & v_pos,RealT a_unit)
reads from 'line' returns; - the first word in 'line' ('segname', = segment name) - the number of real values in 'line' ('nconv', = number of dofs for current segment) - a position vector ('v_pos'; for the root only) - the vector with 1, 2 or 3 euler angles

void displayVector(int nr,const Vector3dC & vec)

void display7Values(int nr,const Vector3dC & vec1,const Vector3dC & vec2,RealT val)
displays two vectors and a double

void displayHomtm(const HomtmC & mat)


Programmer:Andrew Stoddart, Documentation by CxxDoc: Tue Mar 20 10:48:08 2001