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(); }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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(); }
bool SensorStreamingData::nested_write_TemperatureSensors(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(TemperatureSensors)) return false; return true; }
bool SensorStreamingData::nested_write_OrientationSensors(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(OrientationSensors)) return false; return true; }
bool SensorStreamingData::nested_write_ThreeAxisMagnetometers(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(ThreeAxisMagnetometers)) return false; return true; }
bool jointData::nested_write_pwmDutycycle(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(pwmDutycycle)) return false; return true; }
bool SensorStreamingData::nested_write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(EncoderArrays)) return false; return true; }
bool jointData::nested_write_motorAcceleration(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(motorAcceleration)) return false; return true; }
bool jointData::nested_write_interactionMode(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(interactionMode)) return false; return true; }
bool jointData::nested_write_current(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(current)) return false; return true; }
bool SensorStreamingData::nested_write_SixAxisForceTorqueSensors(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(SixAxisForceTorqueSensors)) return false; return true; }
bool SensorStreamingData::nested_write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(ContactLoadCellArrays)) return false; return true; }
bool jointData::nested_write_motorVelocity(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(motorVelocity)) return false; return true; }
bool SensorStreamingData::nested_write_SkinPatches(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(SkinPatches)) return false; return true; }
bool jointData::nested_write_torque(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(torque)) return false; return true; }
bool wholeBodyDynamicsSettings::nested_write_fixedFrameGravity(yarp::os::idl::WireWriter& writer) { if (!writer.writeNested(fixedFrameGravity)) return false; return true; }
bool jointData::nested_write_jointPosition(const yarp::os::idl::WireWriter& writer) const { if (!writer.writeNested(jointPosition)) return false; return true; }