本文整理汇总了C++中yarp::os::idl::WireWriter类的典型用法代码示例。如果您正苦于以下问题:C++ WireWriter类的具体用法?C++ WireWriter怎么用?C++ WireWriter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WireWriter类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: nested_write_EncoderArrays
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;
}
示例2: nested_write_secondList
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;
}
示例3: nested_write_SkinPatches
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;
}
示例4: nested_write_SixAxisForceTorqueSensors
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;
}
示例5: write_ContactLoadCellArrays
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;
}
示例6: write_TemperatureSensors
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;
}
示例7: nested_write_ThreeAxisMagnetometers
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;
}
示例8: nested_write_measurements
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;
}
示例9: 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();
}
示例10: 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();
}
示例11: 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();
}
示例12: 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();
}
示例13: write_yy
bool HomTransform::write_yy(const yarp::os::idl::WireWriter& writer) const {
if (!writer.writeFloat64(yy)) return false;
return true;
}
示例14: nested_write_zz
bool HomTransform::nested_write_zz(const yarp::os::idl::WireWriter& writer) const {
if (!writer.writeFloat64(zz)) return false;
return true;
}
示例15: nested_write_ContactLoadCellArrays
bool SensorStreamingData::nested_write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const {
if (!writer.writeNested(ContactLoadCellArrays)) return false;
return true;
}