예제 #1
0
bool jointData::read(yarp::os::idl::WireReader& reader) {
  if (!read_jointPosition(reader)) return false;
  if (!read_jointPosition_isValid(reader)) return false;
  if (!read_jointVelocity(reader)) return false;
  if (!read_jointVelocity_isValid(reader)) return false;
  if (!read_jointAcceleration(reader)) return false;
  if (!read_jointAcceleration_isValid(reader)) return false;
  if (!read_motorPosition(reader)) return false;
  if (!read_motorPosition_isValid(reader)) return false;
  if (!read_motorVelocity(reader)) return false;
  if (!read_motorVelocity_isValid(reader)) return false;
  if (!read_motorAcceleration(reader)) return false;
  if (!read_motorAcceleration_isValid(reader)) return false;
  if (!read_torque(reader)) return false;
  if (!read_torque_isValid(reader)) return false;
  if (!read_pwmDutycycle(reader)) return false;
  if (!read_pwmDutycycle_isValid(reader)) return false;
  if (!read_current(reader)) return false;
  if (!read_current_isValid(reader)) return false;
  if (!read_controlMode(reader)) return false;
  if (!read_controlMode_isValid(reader)) return false;
  if (!read_interactionMode(reader)) return false;
  if (!read_interactionMode_isValid(reader)) return false;
  return !reader.isError();
}
예제 #2
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();
}
예제 #3
0
bool ClassScore::read(yarp::os::idl::WireReader& reader) {
  if (!reader.readString(className)) {
    reader.fail();
    return false;
  }
  if (!reader.readDouble(score)) {
    reader.fail();
    return false;
  }
  return !reader.isError();
}
예제 #4
0
bool SensorStreamingData::read(yarp::os::idl::WireReader& reader) {
  if (!read_ThreeAxisGyroscopes(reader)) return false;
  if (!read_ThreeAxisLinearAccelerometers(reader)) return false;
  if (!read_ThreeAxisMagnetometers(reader)) return false;
  if (!read_OrientationSensors(reader)) return false;
  if (!read_TemperatureSensors(reader)) return false;
  if (!read_SixAxisForceTorqueSensors(reader)) return false;
  if (!read_ContactLoadCellArrays(reader)) return false;
  if (!read_EncoderArrays(reader)) return false;
  if (!read_SkinPatches(reader)) return false;
  return !reader.isError();
}
예제 #5
0
bool wholeBodyDynamicsSettings::read(yarp::os::idl::WireReader& reader) {
  if (!read_kinematicSource(reader)) return false;
  if (!read_fixedFrameName(reader)) return false;
  if (!read_fixedFrameGravity(reader)) return false;
  if (!read_imuFrameName(reader)) return false;
  if (!read_imuFilterCutoffInHz(reader)) return false;
  if (!read_forceTorqueFilterCutoffInHz(reader)) return false;
  if (!read_jointVelFilterCutoffInHz(reader)) return false;
  if (!read_jointAccFilterCutoffInHz(reader)) return false;
  if (!read_useJointVelocity(reader)) return false;
  if (!read_useJointAcceleration(reader)) return false;
  return !reader.isError();
}
예제 #6
0
bool HomTransform::read(yarp::os::idl::WireReader& reader) {
  if (!read_x(reader)) return false;
  if (!read_y(reader)) return false;
  if (!read_z(reader)) return false;
  if (!read_xx(reader)) return false;
  if (!read_xy(reader)) return false;
  if (!read_xz(reader)) return false;
  if (!read_yx(reader)) return false;
  if (!read_yy(reader)) return false;
  if (!read_yz(reader)) return false;
  if (!read_zx(reader)) return false;
  if (!read_zy(reader)) return false;
  if (!read_zz(reader)) return false;
  return !reader.isError();
}
예제 #7
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();
}
예제 #8
0
bool ContactPoint::read(yarp::os::idl::WireReader& reader) {
  if (!read_x(reader)) return false;
  if (!read_y(reader)) return false;
  if (!read_z(reader)) return false;
  return !reader.isError();
}
예제 #9
0
bool Color::read(yarp::os::idl::WireReader& reader) {
  if (!read_r(reader)) return false;
  if (!read_g(reader)) return false;
  if (!read_b(reader)) return false;
  return !reader.isError();
}
예제 #10
0
bool SensorMeasurements::read(yarp::os::idl::WireReader& reader) {
  if (!read_measurements(reader)) return false;
  return !reader.isError();
}
예제 #11
0
bool Pixel::read(yarp::os::idl::WireReader& reader) {
  if (!read_x(reader)) return false;
  if (!read_y(reader)) return false;
  return !reader.isError();
}
예제 #12
0
bool PointDLists::read(yarp::os::idl::WireReader& reader) {
  if (!read_name(reader)) return false;
  if (!read_firstList(reader)) return false;
  if (!read_secondList(reader)) return false;
  return !reader.isError();
}