Пример #1
0
bool SurfaceMesh::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(meshName)) return false;
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(points.size()))) return false;
    std::vector<PointXYZ> ::iterator _iter21;
    for (_iter21 = points.begin(); _iter21 != points.end(); ++_iter21)
    {
      if (!writer.writeNested((*_iter21))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(rgbColour.size()))) return false;
    std::vector<RGBA> ::iterator _iter22;
    for (_iter22 = rgbColour.begin(); _iter22 != rgbColour.end(); ++_iter22)
    {
      if (!writer.writeNested((*_iter22))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(polygons.size()))) return false;
    std::vector<Polygon> ::iterator _iter23;
    for (_iter23 = polygons.begin(); _iter23 != polygons.end(); ++_iter23)
    {
      if (!writer.writeNested((*_iter23))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return !writer.isError();
}
Пример #2
0
bool jointData::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_jointPosition(writer)) return false;
  if (!write_jointPosition_isValid(writer)) return false;
  if (!write_jointVelocity(writer)) return false;
  if (!write_jointVelocity_isValid(writer)) return false;
  if (!write_jointAcceleration(writer)) return false;
  if (!write_jointAcceleration_isValid(writer)) return false;
  if (!write_motorPosition(writer)) return false;
  if (!write_motorPosition_isValid(writer)) return false;
  if (!write_motorVelocity(writer)) return false;
  if (!write_motorVelocity_isValid(writer)) return false;
  if (!write_motorAcceleration(writer)) return false;
  if (!write_motorAcceleration_isValid(writer)) return false;
  if (!write_torque(writer)) return false;
  if (!write_torque_isValid(writer)) return false;
  if (!write_pwmDutycycle(writer)) return false;
  if (!write_pwmDutycycle_isValid(writer)) return false;
  if (!write_current(writer)) return false;
  if (!write_current_isValid(writer)) return false;
  if (!write_controlMode(writer)) return false;
  if (!write_controlMode_isValid(writer)) return false;
  if (!write_interactionMode(writer)) return false;
  if (!write_interactionMode_isValid(writer)) return false;
  return !writer.isError();
}
Пример #3
0
bool SensorStreamingData::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_ThreeAxisGyroscopes(writer)) return false;
  if (!write_ThreeAxisLinearAccelerometers(writer)) return false;
  if (!write_ThreeAxisMagnetometers(writer)) return false;
  if (!write_OrientationSensors(writer)) return false;
  if (!write_TemperatureSensors(writer)) return false;
  if (!write_SixAxisForceTorqueSensors(writer)) return false;
  if (!write_ContactLoadCellArrays(writer)) return false;
  if (!write_EncoderArrays(writer)) return false;
  if (!write_SkinPatches(writer)) return false;
  return !writer.isError();
}
Пример #4
0
bool wholeBodyDynamicsSettings::write(yarp::os::idl::WireWriter& writer) {
  if (!write_kinematicSource(writer)) return false;
  if (!write_fixedFrameName(writer)) return false;
  if (!write_fixedFrameGravity(writer)) return false;
  if (!write_imuFrameName(writer)) return false;
  if (!write_imuFilterCutoffInHz(writer)) return false;
  if (!write_forceTorqueFilterCutoffInHz(writer)) return false;
  if (!write_jointVelFilterCutoffInHz(writer)) return false;
  if (!write_jointAccFilterCutoffInHz(writer)) return false;
  if (!write_useJointVelocity(writer)) return false;
  if (!write_useJointAcceleration(writer)) return false;
  return !writer.isError();
}
Пример #5
0
bool HomTransform::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_x(writer)) return false;
  if (!write_y(writer)) return false;
  if (!write_z(writer)) return false;
  if (!write_xx(writer)) return false;
  if (!write_xy(writer)) return false;
  if (!write_xz(writer)) return false;
  if (!write_yx(writer)) return false;
  if (!write_yy(writer)) return false;
  if (!write_yz(writer)) return false;
  if (!write_zx(writer)) return false;
  if (!write_zy(writer)) return false;
  if (!write_zz(writer)) return false;
  return !writer.isError();
}
Пример #6
0
bool PointDLists::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(name)) return false;
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(firstList.size()))) return false;
    std::vector<PointD> ::iterator _iter10;
    for (_iter10 = firstList.begin(); _iter10 != firstList.end(); ++_iter10)
    {
      if (!writer.writeNested((*_iter10))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(secondList.size()))) return false;
    std::vector<PointD> ::iterator _iter11;
    for (_iter11 = secondList.begin(); _iter11 != secondList.end(); ++_iter11)
    {
      if (!writer.writeNested((*_iter11))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return !writer.isError();
}
Пример #7
0
bool ContactPoint::write(yarp::os::idl::WireWriter& writer) {
  if (!write_x(writer)) return false;
  if (!write_y(writer)) return false;
  if (!write_z(writer)) return false;
  return !writer.isError();
}
Пример #8
0
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(className)) return false;
  if (!writer.writeDouble(score)) return false;
  return !writer.isError();
}
Пример #9
0
bool Color::write(yarp::os::idl::WireWriter& writer) {
  if (!write_r(writer)) return false;
  if (!write_g(writer)) return false;
  if (!write_b(writer)) return false;
  return !writer.isError();
}
Пример #10
0
bool SensorMeasurements::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_measurements(writer)) return false;
  return !writer.isError();
}
Пример #11
0
bool Pixel::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_x(writer)) return false;
  if (!write_y(writer)) return false;
  return !writer.isError();
}
Пример #12
0
bool PointDLists::write(const yarp::os::idl::WireWriter& writer) const {
  if (!write_name(writer)) return false;
  if (!write_firstList(writer)) return false;
  if (!write_secondList(writer)) return false;
  return !writer.isError();
}