本文整理汇总了C++中yarp::os::idl::WireReader::fail方法的典型用法代码示例。如果您正苦于以下问题:C++ WireReader::fail方法的具体用法?C++ WireReader::fail怎么用?C++ WireReader::fail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yarp::os::idl::WireReader
的用法示例。
在下文中一共展示了WireReader::fail方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: read
bool SurfaceMesh::read(yarp::os::idl::WireReader& reader) {
if (!reader.readString(meshName)) {
reader.fail();
return false;
}
{
points.clear();
uint32_t _size6;
yarp::os::idl::WireState _etype9;
reader.readListBegin(_etype9, _size6);
points.resize(_size6);
uint32_t _i10;
for (_i10 = 0; _i10 < _size6; ++_i10)
{
if (!reader.readNested(points[_i10])) {
reader.fail();
return false;
}
}
reader.readListEnd();
}
{
rgbColour.clear();
uint32_t _size11;
yarp::os::idl::WireState _etype14;
reader.readListBegin(_etype14, _size11);
rgbColour.resize(_size11);
uint32_t _i15;
for (_i15 = 0; _i15 < _size11; ++_i15)
{
if (!reader.readNested(rgbColour[_i15])) {
reader.fail();
return false;
}
}
reader.readListEnd();
}
{
polygons.clear();
uint32_t _size16;
yarp::os::idl::WireState _etype19;
reader.readListBegin(_etype19, _size16);
polygons.resize(_size16);
uint32_t _i20;
for (_i20 = 0; _i20 < _size16; ++_i20)
{
if (!reader.readNested(polygons[_i20])) {
reader.fail();
return false;
}
}
reader.readListEnd();
}
return !reader.isError();
}
示例2: read
bool ClassScore::read(yarp::os::idl::WireReader& reader) {
if (!reader.readString(className)) {
reader.fail();
return false;
}
if (!reader.readDouble(score)) {
reader.fail();
return false;
}
return !reader.isError();
}
示例3: nested_read_interactionMode_isValid
bool jointData::nested_read_interactionMode_isValid(yarp::os::idl::WireReader& reader) {
if (!reader.readBool(interactionMode_isValid)) {
reader.fail();
return false;
}
return true;
}
示例4: nested_read_xz
bool HomTransform::nested_read_xz(yarp::os::idl::WireReader& reader) {
if (!reader.readFloat64(xz)) {
reader.fail();
return false;
}
return true;
}
示例5: nested_read_forceTorqueFilterCutoffInHz
bool wholeBodyDynamicsSettings::nested_read_forceTorqueFilterCutoffInHz(yarp::os::idl::WireReader& reader) {
if (!reader.readDouble(forceTorqueFilterCutoffInHz)) {
reader.fail();
return false;
}
return true;
}
示例6: nested_read_fixedFrameGravity
bool wholeBodyDynamicsSettings::nested_read_fixedFrameGravity(yarp::os::idl::WireReader& reader) {
if (!reader.readNested(fixedFrameGravity)) {
reader.fail();
return false;
}
return true;
}
示例7: read_useJointVelocity
bool wholeBodyDynamicsSettings::read_useJointVelocity(yarp::os::idl::WireReader& reader) {
if (!reader.readBool(useJointVelocity)) {
reader.fail();
return false;
}
return true;
}
示例8: nested_read_SixAxisForceTorqueSensors
bool SensorStreamingData::nested_read_SixAxisForceTorqueSensors(yarp::os::idl::WireReader& reader) {
if (!reader.readNested(SixAxisForceTorqueSensors)) {
reader.fail();
return false;
}
return true;
}
示例9: nested_read_y
bool Pixel::nested_read_y(yarp::os::idl::WireReader& reader) {
if (!reader.readI32(y)) {
reader.fail();
return false;
}
return true;
}
示例10: read_x
bool Pixel::read_x(yarp::os::idl::WireReader& reader) {
if (!reader.readI32(x)) {
reader.fail();
return false;
}
return true;
}
示例11: read_motorPosition
bool jointData::read_motorPosition(yarp::os::idl::WireReader& reader) {
if (!reader.read(motorPosition)) {
reader.fail();
return false;
}
return true;
}
示例12: nested_read_jointAcceleration_isValid
bool jointData::nested_read_jointAcceleration_isValid(yarp::os::idl::WireReader& reader) {
if (!reader.readBool(jointAcceleration_isValid)) {
reader.fail();
return false;
}
return true;
}
示例13: read_jointAcceleration
bool jointData::read_jointAcceleration(yarp::os::idl::WireReader& reader) {
if (!reader.read(jointAcceleration)) {
reader.fail();
return false;
}
return true;
}
示例14: read_jointVelocity_isValid
bool jointData::read_jointVelocity_isValid(yarp::os::idl::WireReader& reader) {
if (!reader.readBool(jointVelocity_isValid)) {
reader.fail();
return false;
}
return true;
}
示例15: nested_read_jointVelocity
bool jointData::nested_read_jointVelocity(yarp::os::idl::WireReader& reader) {
if (!reader.readNested(jointVelocity)) {
reader.fail();
return false;
}
return true;
}