Exemple #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();
}
Exemple #2
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();
}
Exemple #3
0
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(className)) return false;
  if (!writer.writeDouble(score)) return false;
  return !writer.isError();
}
Exemple #4
0
bool wholeBodyDynamicsSettings::nested_write_imuFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(imuFrameName)) return false;
  return true;
}
Exemple #5
0
bool wholeBodyDynamicsSettings::write_fixedFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(fixedFrameName)) return false;
  return true;
}
Exemple #6
0
bool PointDLists::nested_write_name(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeString(name)) return false;
  return true;
}