Example #1
0
bool JointPositionSensor::SetSetting(const string& name,const string& str)
{
  SET_SENSOR_SETTING(qvariance);
  SET_SENSOR_SETTING(qresolution);
  if(name == "indices") {
    stringstream ss(str);
    indices.resize(0);
    while(ss) {
      int index;
      ss>>index;
      if(ss) indices.push_back(index);
    }
    return true;
  }
Example #2
0
bool SensorBase::SetSetting(const string& name,const string& str)
{
  SET_SENSOR_SETTING(rate);
  return false;
}