本文整理汇总了C++中yarp::os::idl::WireWriter::isError方法的典型用法代码示例。如果您正苦于以下问题:C++ WireWriter::isError方法的具体用法?C++ WireWriter::isError怎么用?C++ WireWriter::isError使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yarp::os::idl::WireWriter
的用法示例。
在下文中一共展示了WireWriter::isError方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: write
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: write
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: write
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: write
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();
}
示例5: write
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();
}
示例6: write
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();
}
示例7: write
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
if (!writer.writeString(className)) return false;
if (!writer.writeDouble(score)) return false;
return !writer.isError();
}
示例8: write
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();
}
示例9: write
bool SensorMeasurements::write(const yarp::os::idl::WireWriter& writer) const {
if (!write_measurements(writer)) return false;
return !writer.isError();
}
示例10: write
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();
}
示例11: write
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();
}