Example #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();
}
Example #2
0
bool SensorRPCData::nested_write_SkinPatches(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(SkinPatches.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter119;
    for (_iter119 = SkinPatches.begin(); _iter119 != SkinPatches.end(); ++_iter119)
    {
      if (!writer.writeNested((*_iter119))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #3
0
bool SensorRPCData::nested_write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(EncoderArrays.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter117;
    for (_iter117 = EncoderArrays.begin(); _iter117 != EncoderArrays.end(); ++_iter117)
    {
      if (!writer.writeNested((*_iter117))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #4
0
bool SensorRPCData::write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(ContactLoadCellArrays.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter114;
    for (_iter114 = ContactLoadCellArrays.begin(); _iter114 != ContactLoadCellArrays.end(); ++_iter114)
    {
      if (!writer.writeNested((*_iter114))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #5
0
bool SensorRPCData::nested_write_SixAxisForceTorqueSensors(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(SixAxisForceTorqueSensors.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter113;
    for (_iter113 = SixAxisForceTorqueSensors.begin(); _iter113 != SixAxisForceTorqueSensors.end(); ++_iter113)
    {
      if (!writer.writeNested((*_iter113))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #6
0
bool SensorRPCData::write_TemperatureSensors(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(TemperatureSensors.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter110;
    for (_iter110 = TemperatureSensors.begin(); _iter110 != TemperatureSensors.end(); ++_iter110)
    {
      if (!writer.writeNested((*_iter110))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #7
0
bool SensorRPCData::nested_write_ThreeAxisMagnetometers(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(ThreeAxisMagnetometers.size()))) return false;
    std::vector<SensorMetadata> ::const_iterator _iter107;
    for (_iter107 = ThreeAxisMagnetometers.begin(); _iter107 != ThreeAxisMagnetometers.end(); ++_iter107)
    {
      if (!writer.writeNested((*_iter107))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #8
0
bool SensorMeasurements::nested_write_measurements(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(measurements.size()))) return false;
    std::vector<SensorMeasurement> ::const_iterator _iter11;
    for (_iter11 = measurements.begin(); _iter11 != measurements.end(); ++_iter11)
    {
      if (!writer.writeNested((*_iter11))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #9
0
bool PointDLists::nested_write_secondList(const yarp::os::idl::WireWriter& writer) const {
  {
    if (!writer.writeListBegin(BOTTLE_TAG_LIST, static_cast<uint32_t>(secondList.size()))) return false;
    std::vector<PointD> ::const_iterator _iter23;
    for (_iter23 = secondList.begin(); _iter23 != secondList.end(); ++_iter23)
    {
      if (!writer.writeNested((*_iter23))) return false;
    }
    if (!writer.writeListEnd()) return false;
  }
  return true;
}
Example #10
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();
}