Пример #1
0
bool SurfaceMesh::read(yarp::os::idl::WireReader& reader) {
  if (!reader.readString(meshName)) {
    reader.fail();
    return false;
  }
  {
    points.clear();
    uint32_t _size6;
    yarp::os::idl::WireState _etype9;
    reader.readListBegin(_etype9, _size6);
    points.resize(_size6);
    uint32_t _i10;
    for (_i10 = 0; _i10 < _size6; ++_i10)
    {
      if (!reader.readNested(points[_i10])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  {
    rgbColour.clear();
    uint32_t _size11;
    yarp::os::idl::WireState _etype14;
    reader.readListBegin(_etype14, _size11);
    rgbColour.resize(_size11);
    uint32_t _i15;
    for (_i15 = 0; _i15 < _size11; ++_i15)
    {
      if (!reader.readNested(rgbColour[_i15])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  {
    polygons.clear();
    uint32_t _size16;
    yarp::os::idl::WireState _etype19;
    reader.readListBegin(_etype19, _size16);
    polygons.resize(_size16);
    uint32_t _i20;
    for (_i20 = 0; _i20 < _size16; ++_i20)
    {
      if (!reader.readNested(polygons[_i20])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return !reader.isError();
}
Пример #2
0
bool PointDLists::read(yarp::os::idl::WireReader& reader) {
  if (!reader.readString(name)) {
    name = "pointLists";
  }
  {
    firstList.clear();
    uint32_t _size0;
    yarp::os::idl::WireState _etype3;
    reader.readListBegin(_etype3, _size0);
    firstList.resize(_size0);
    uint32_t _i4;
    for (_i4 = 0; _i4 < _size0; ++_i4)
    {
      if (!reader.readNested(firstList[_i4])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  {
    secondList.clear();
    uint32_t _size5;
    yarp::os::idl::WireState _etype8;
    reader.readListBegin(_etype8, _size5);
    secondList.resize(_size5);
    uint32_t _i9;
    for (_i9 = 0; _i9 < _size5; ++_i9)
    {
      if (!reader.readNested(secondList[_i9])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return !reader.isError();
}
Пример #3
0
bool SensorRPCData::read_ContactLoadCellArrays(yarp::os::idl::WireReader& reader) {
  {
    ContactLoadCellArrays.clear();
    uint32_t _size72;
    yarp::os::idl::WireState _etype75;
    reader.readListBegin(_etype75, _size72);
    ContactLoadCellArrays.resize(_size72);
    uint32_t _i76;
    for (_i76 = 0; _i76 < _size72; ++_i76)
    {
      if (!reader.readNested(ContactLoadCellArrays[_i76])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #4
0
bool SensorRPCData::nested_read_SixAxisForceTorqueSensors(yarp::os::idl::WireReader& reader) {
  {
    SixAxisForceTorqueSensors.clear();
    uint32_t _size67;
    yarp::os::idl::WireState _etype70;
    reader.readListBegin(_etype70, _size67);
    SixAxisForceTorqueSensors.resize(_size67);
    uint32_t _i71;
    for (_i71 = 0; _i71 < _size67; ++_i71)
    {
      if (!reader.readNested(SixAxisForceTorqueSensors[_i71])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #5
0
bool PointDLists::nested_read_firstList(yarp::os::idl::WireReader& reader) {
  {
    firstList.clear();
    uint32_t _size5;
    yarp::os::idl::WireState _etype8;
    reader.readListBegin(_etype8, _size5);
    firstList.resize(_size5);
    uint32_t _i9;
    for (_i9 = 0; _i9 < _size5; ++_i9)
    {
      if (!reader.readNested(firstList[_i9])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #6
0
bool SensorRPCData::read_ThreeAxisMagnetometers(yarp::os::idl::WireReader& reader) {
  {
    ThreeAxisMagnetometers.clear();
    uint32_t _size32;
    yarp::os::idl::WireState _etype35;
    reader.readListBegin(_etype35, _size32);
    ThreeAxisMagnetometers.resize(_size32);
    uint32_t _i36;
    for (_i36 = 0; _i36 < _size32; ++_i36)
    {
      if (!reader.readNested(ThreeAxisMagnetometers[_i36])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #7
0
bool SensorRPCData::read_ThreeAxisLinearAccelerometers(yarp::os::idl::WireReader& reader) {
  {
    ThreeAxisLinearAccelerometers.clear();
    uint32_t _size22;
    yarp::os::idl::WireState _etype25;
    reader.readListBegin(_etype25, _size22);
    ThreeAxisLinearAccelerometers.resize(_size22);
    uint32_t _i26;
    for (_i26 = 0; _i26 < _size22; ++_i26)
    {
      if (!reader.readNested(ThreeAxisLinearAccelerometers[_i26])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #8
0
bool SensorRPCData::nested_read_ThreeAxisGyroscopes(yarp::os::idl::WireReader& reader) {
  {
    ThreeAxisGyroscopes.clear();
    uint32_t _size17;
    yarp::os::idl::WireState _etype20;
    reader.readListBegin(_etype20, _size17);
    ThreeAxisGyroscopes.resize(_size17);
    uint32_t _i21;
    for (_i21 = 0; _i21 < _size17; ++_i21)
    {
      if (!reader.readNested(ThreeAxisGyroscopes[_i21])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #9
0
bool SensorRPCData::nested_read_EncoderArrays(yarp::os::idl::WireReader& reader) {
  {
    EncoderArrays.clear();
    uint32_t _size87;
    yarp::os::idl::WireState _etype90;
    reader.readListBegin(_etype90, _size87);
    EncoderArrays.resize(_size87);
    uint32_t _i91;
    for (_i91 = 0; _i91 < _size87; ++_i91)
    {
      if (!reader.readNested(EncoderArrays[_i91])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #10
0
bool SensorRPCData::read_OrientationSensors(yarp::os::idl::WireReader& reader) {
  {
    OrientationSensors.clear();
    uint32_t _size42;
    yarp::os::idl::WireState _etype45;
    reader.readListBegin(_etype45, _size42);
    OrientationSensors.resize(_size42);
    uint32_t _i46;
    for (_i46 = 0; _i46 < _size42; ++_i46)
    {
      if (!reader.readNested(OrientationSensors[_i46])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #11
0
bool SensorMeasurements::nested_read_measurements(yarp::os::idl::WireReader& reader) {
  {
    measurements.clear();
    uint32_t _size5;
    yarp::os::idl::WireState _etype8;
    reader.readListBegin(_etype8, _size5);
    measurements.resize(_size5);
    uint32_t _i9;
    for (_i9 = 0; _i9 < _size5; ++_i9)
    {
      if (!reader.readNested(measurements[_i9])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #12
0
bool SensorMeasurements::read_measurements(yarp::os::idl::WireReader& reader) {
  {
    measurements.clear();
    uint32_t _size0;
    yarp::os::idl::WireState _etype3;
    reader.readListBegin(_etype3, _size0);
    measurements.resize(_size0);
    uint32_t _i4;
    for (_i4 = 0; _i4 < _size0; ++_i4)
    {
      if (!reader.readNested(measurements[_i4])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #13
0
bool PointDLists::nested_read_secondList(yarp::os::idl::WireReader& reader) {
  {
    secondList.clear();
    uint32_t _size15;
    yarp::os::idl::WireState _etype18;
    reader.readListBegin(_etype18, _size15);
    secondList.resize(_size15);
    uint32_t _i19;
    for (_i19 = 0; _i19 < _size15; ++_i19)
    {
      if (!reader.readNested(secondList[_i19])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #14
0
bool PointDLists::read_secondList(yarp::os::idl::WireReader& reader) {
  {
    secondList.clear();
    uint32_t _size10;
    yarp::os::idl::WireState _etype13;
    reader.readListBegin(_etype13, _size10);
    secondList.resize(_size10);
    uint32_t _i14;
    for (_i14 = 0; _i14 < _size10; ++_i14)
    {
      if (!reader.readNested(secondList[_i14])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #15
0
bool SensorRPCData::nested_read_ContactLoadCellArrays(yarp::os::idl::WireReader& reader) {
  {
    ContactLoadCellArrays.clear();
    uint32_t _size77;
    yarp::os::idl::WireState _etype80;
    reader.readListBegin(_etype80, _size77);
    ContactLoadCellArrays.resize(_size77);
    uint32_t _i81;
    for (_i81 = 0; _i81 < _size77; ++_i81)
    {
      if (!reader.readNested(ContactLoadCellArrays[_i81])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #16
0
bool SensorRPCData::read_EncoderArrays(yarp::os::idl::WireReader& reader) {
  {
    EncoderArrays.clear();
    uint32_t _size82;
    yarp::os::idl::WireState _etype85;
    reader.readListBegin(_etype85, _size82);
    EncoderArrays.resize(_size82);
    uint32_t _i86;
    for (_i86 = 0; _i86 < _size82; ++_i86)
    {
      if (!reader.readNested(EncoderArrays[_i86])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #17
0
bool SensorRPCData::read_ThreeAxisGyroscopes(yarp::os::idl::WireReader& reader) {
  {
    ThreeAxisGyroscopes.clear();
    uint32_t _size12;
    yarp::os::idl::WireState _etype15;
    reader.readListBegin(_etype15, _size12);
    ThreeAxisGyroscopes.resize(_size12);
    uint32_t _i16;
    for (_i16 = 0; _i16 < _size12; ++_i16)
    {
      if (!reader.readNested(ThreeAxisGyroscopes[_i16])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #18
0
bool SensorRPCData::read_SkinPatches(yarp::os::idl::WireReader& reader) {
  {
    SkinPatches.clear();
    uint32_t _size92;
    yarp::os::idl::WireState _etype95;
    reader.readListBegin(_etype95, _size92);
    SkinPatches.resize(_size92);
    uint32_t _i96;
    for (_i96 = 0; _i96 < _size92; ++_i96)
    {
      if (!reader.readNested(SkinPatches[_i96])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #19
0
bool SensorRPCData::nested_read_OrientationSensors(yarp::os::idl::WireReader& reader) {
  {
    OrientationSensors.clear();
    uint32_t _size47;
    yarp::os::idl::WireState _etype50;
    reader.readListBegin(_etype50, _size47);
    OrientationSensors.resize(_size47);
    uint32_t _i51;
    for (_i51 = 0; _i51 < _size47; ++_i51)
    {
      if (!reader.readNested(OrientationSensors[_i51])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #20
0
bool SensorRPCData::nested_read_SkinPatches(yarp::os::idl::WireReader& reader) {
  {
    SkinPatches.clear();
    uint32_t _size97;
    yarp::os::idl::WireState _etype100;
    reader.readListBegin(_etype100, _size97);
    SkinPatches.resize(_size97);
    uint32_t _i101;
    for (_i101 = 0; _i101 < _size97; ++_i101)
    {
      if (!reader.readNested(SkinPatches[_i101])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #21
0
bool SensorRPCData::read_TemperatureSensors(yarp::os::idl::WireReader& reader) {
  {
    TemperatureSensors.clear();
    uint32_t _size52;
    yarp::os::idl::WireState _etype55;
    reader.readListBegin(_etype55, _size52);
    TemperatureSensors.resize(_size52);
    uint32_t _i56;
    for (_i56 = 0; _i56 < _size52; ++_i56)
    {
      if (!reader.readNested(TemperatureSensors[_i56])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #22
0
bool SensorRPCData::nested_read_ThreeAxisLinearAccelerometers(yarp::os::idl::WireReader& reader) {
  {
    ThreeAxisLinearAccelerometers.clear();
    uint32_t _size27;
    yarp::os::idl::WireState _etype30;
    reader.readListBegin(_etype30, _size27);
    ThreeAxisLinearAccelerometers.resize(_size27);
    uint32_t _i31;
    for (_i31 = 0; _i31 < _size27; ++_i31)
    {
      if (!reader.readNested(ThreeAxisLinearAccelerometers[_i31])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #23
0
bool SensorRPCData::nested_read_TemperatureSensors(yarp::os::idl::WireReader& reader) {
  {
    TemperatureSensors.clear();
    uint32_t _size57;
    yarp::os::idl::WireState _etype60;
    reader.readListBegin(_etype60, _size57);
    TemperatureSensors.resize(_size57);
    uint32_t _i61;
    for (_i61 = 0; _i61 < _size57; ++_i61)
    {
      if (!reader.readNested(TemperatureSensors[_i61])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #24
0
bool SensorRPCData::read_SixAxisForceTorqueSensors(yarp::os::idl::WireReader& reader) {
  {
    SixAxisForceTorqueSensors.clear();
    uint32_t _size62;
    yarp::os::idl::WireState _etype65;
    reader.readListBegin(_etype65, _size62);
    SixAxisForceTorqueSensors.resize(_size62);
    uint32_t _i66;
    for (_i66 = 0; _i66 < _size62; ++_i66)
    {
      if (!reader.readNested(SixAxisForceTorqueSensors[_i66])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}
Пример #25
0
bool PointDLists::read_firstList(yarp::os::idl::WireReader& reader) {
  {
    firstList.clear();
    uint32_t _size0;
    yarp::os::idl::WireState _etype3;
    reader.readListBegin(_etype3, _size0);
    firstList.resize(_size0);
    uint32_t _i4;
    for (_i4 = 0; _i4 < _size0; ++_i4)
    {
      if (!reader.readNested(firstList[_i4])) {
        reader.fail();
        return false;
      }
    }
    reader.readListEnd();
  }
  return true;
}