WorldPlugin/WorldServer.cc
// WorldServer::InterpretSpecialString
/*! TODO: This is at a very low API level of SGST
          need to implement all the features in the future
*/
:InterpretSpecialString
TODO: This is at a very low API level of SGST
need to implement all the features in the future
: InterpretSpecialString TODO : This is at a very low API level of SGST need to implement all the features in the future
void WorldServer::FigureInterpret(const vector<string> *joints_spec, 
    int *type_flags,  double *joint_values)
{
  for (unsigned int i = 0; i < 4; ++i)
  {
    string mini_unit =  joints_spec->at(i);
    if (mini_unit.at(0) == 'p')
      type_flags[i] = 0;
    if (mini_unit.at(0) == 's')
      type_flags[i] = 1;
    if (mini_unit.at(0) == 't')
      type_flags[i] = 2;
    if (mini_unit.at(0) == 'i')
      type_flags[i] = 3;
    if (mini_unit.at(0) == 'c')
      type_flags[i] = 4;
    if (mini_unit.at(0) == 'd')
      type_flags[i] = 5;
    if (mini_unit.substr(1).size()>0)
      joint_values[i] = atof(mini_unit.substr(1).c_str());
  }
}
void WorldServer :: FigureInterpret ( const vector < string > * joints_spec , int * type_flags , double * joint_values ) { for ( unsigned int i = 0 ; i < 4 ; ++ i ) { string mini_unit = joints_spec -> at ( i ) ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 0 ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 1 ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 2 ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 3 ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 4 ; if ( mini_unit . at ( 0 ) == ' ' ) type_flags [ i ] = 5 ; if ( mini_unit . substr ( 1 ) . size ( ) > 0 ) joint_values [ i ] = atof ( mini_unit . substr ( 1 ) . c_str ( ) ) ; } }
WorldServer::InterpretSpecialString
TODO: This is at a very low API level of SGST
need to implement all the features in the future
WorldServer :: InterpretSpecialString TODO : This is at a very low API level of SGST need to implement all the features in the future