示例#1
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
bool wholeBodyDynamicsSettings::write(yarp::os::idl::WireWriter& writer) {
  if (!write_kinematicSource(writer)) return false;
  if (!write_fixedFrameName(writer)) return false;
  if (!write_fixedFrameGravity(writer)) return false;
  if (!write_imuFrameName(writer)) return false;
  if (!write_imuFilterCutoffInHz(writer)) return false;
  if (!write_forceTorqueFilterCutoffInHz(writer)) return false;
  if (!write_jointVelFilterCutoffInHz(writer)) return false;
  if (!write_jointAccFilterCutoffInHz(writer)) return false;
  if (!write_useJointVelocity(writer)) return false;
  if (!write_useJointAcceleration(writer)) return false;
  return !writer.isError();
}
示例#12
0
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();
}
示例#13
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();
}
示例#14
0
bool HomTransform::write_yy(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeFloat64(yy)) return false;
  return true;
}
示例#15
0
bool HomTransform::nested_write_zz(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeFloat64(zz)) return false;
  return true;
}
示例#16
0
bool wholeBodyDynamicsSettings::nested_write_useJointAcceleration(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeBool(useJointAcceleration)) return false;
  return true;
}
示例#17
0
bool SensorStreamingData::nested_write_ContactLoadCellArrays(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeNested(ContactLoadCellArrays)) return false;
  return true;
}
示例#18
0
bool wholeBodyDynamicsSettings::nested_write_jointAccFilterCutoffInHz(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeDouble(jointAccFilterCutoffInHz)) return false;
  return true;
}
示例#19
0
bool wholeBodyDynamicsSettings::nested_write_useJointVelocity(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeBool(useJointVelocity)) return false;
  return true;
}
示例#20
0
bool wholeBodyDynamicsSettings::nested_write_imuFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(imuFrameName)) return false;
  return true;
}
示例#21
0
bool wholeBodyDynamicsSettings::write_forceTorqueFilterCutoffInHz(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeDouble(forceTorqueFilterCutoffInHz)) return false;
  return true;
}
示例#22
0
bool wholeBodyDynamicsSettings::nested_write_fixedFrameGravity(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeNested(fixedFrameGravity)) return false;
  return true;
}
示例#23
0
bool SensorStreamingData::nested_write_EncoderArrays(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeNested(EncoderArrays)) return false;
  return true;
}
示例#24
0
bool ContactPoint::nested_write_z(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeDouble(z)) return false;
  return true;
}
示例#25
0
bool ClassScore::write(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(className)) return false;
  if (!writer.writeDouble(score)) return false;
  return !writer.isError();
}
示例#26
0
bool SensorStreamingData::nested_write_SkinPatches(const yarp::os::idl::WireWriter& writer) const {
  if (!writer.writeNested(SkinPatches)) return false;
  return true;
}
示例#27
0
bool ContactPoint::write_y(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeDouble(y)) return false;
  return true;
}
示例#28
0
bool wholeBodyDynamicsSettings::nested_write_kinematicSource(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeI32((int32_t)kinematicSource)) return false;
  return true;
}
示例#29
0
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();
}
示例#30
0
bool wholeBodyDynamicsSettings::write_fixedFrameName(yarp::os::idl::WireWriter& writer) {
  if (!writer.writeString(fixedFrameName)) return false;
  return true;
}