((IDLSequence.Boolean) seq).add(val.asBoolean());
child.add(((IDLSequence.Boolean) seq).getBoolean(i));
public static void write(test_msgs.msg.dds.DynamicArrayPrimitives data, us.ihmc.idl.CDR cdr) if(data.getBoolValues().size() <= 100) cdr.write_type_e(data.getBoolValues());else throw new RuntimeException("bool_values field exceeds the maximum length");
((IDLSequence.Boolean) seq).add(val.asBoolean());
child.add(((IDLSequence.Boolean) seq).getBoolean(i));
throw new RuntimeException("electric_joint_currents field exceeds the maximum length"); if(data.getElectricJointEnabledArray().size() <= 6) cdr.write_type_e(data.getElectricJointEnabledArray());else throw new RuntimeException("electric_joint_enabled_array field exceeds the maximum length");
public static void write(test_msgs.msg.dds.BoundedArrayPrimitives data, us.ihmc.idl.CDR cdr) if(data.getBoolValues().size() <= 3) cdr.write_type_e(data.getBoolValues());else throw new RuntimeException("bool_values field exceeds the maximum length");
current_alignment += (data.getBoolValues().size() * 1) + us.ihmc.idl.CDR.alignment(current_alignment, 1);
if (!this.electric_joint_enabled_array_.equals(otherMyClass.electric_joint_enabled_array_)) return false; for(int i21 = 0; i21 < raw_imu_timestamps_.length; ++i21)
current_alignment += (data.getBoolValues().size() * 1) + us.ihmc.idl.CDR.alignment(current_alignment, 1);
current_alignment += (data.getElectricJointEnabledArray().size() * 1) + us.ihmc.idl.CDR.alignment(current_alignment, 1);
electric_joint_enabled_array_.set(other.electric_joint_enabled_array_); for(int i5 = 0; i5 < raw_imu_timestamps_.length; ++i5)
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof BoundedArrayPrimitives)) return false; BoundedArrayPrimitives otherMyClass = (BoundedArrayPrimitives) other; if (!this.bool_values_.equals(otherMyClass.bool_values_)) return false; if (!this.byte_values_.equals(otherMyClass.byte_values_)) return false; if (!this.char_values_.equals(otherMyClass.char_values_)) return false; if (!this.float32_values_.equals(otherMyClass.float32_values_)) return false; if (!this.float64_values_.equals(otherMyClass.float64_values_)) return false; if (!this.int8_values_.equals(otherMyClass.int8_values_)) return false; if (!this.uint8_values_.equals(otherMyClass.uint8_values_)) return false; if (!this.int16_values_.equals(otherMyClass.int16_values_)) return false; if (!this.uint16_values_.equals(otherMyClass.uint16_values_)) return false; if (!this.int32_values_.equals(otherMyClass.int32_values_)) return false; if (!this.uint32_values_.equals(otherMyClass.uint32_values_)) return false; if (!this.int64_values_.equals(otherMyClass.int64_values_)) return false; if (!this.uint64_values_.equals(otherMyClass.uint64_values_)) return false; if (!this.string_values_.equals(otherMyClass.string_values_)) return false; if(this.check_ != otherMyClass.check_) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof DynamicArrayPrimitives)) return false; DynamicArrayPrimitives otherMyClass = (DynamicArrayPrimitives) other; if (!this.bool_values_.equals(otherMyClass.bool_values_)) return false; if (!this.byte_values_.equals(otherMyClass.byte_values_)) return false; if (!this.char_values_.equals(otherMyClass.char_values_)) return false; if (!this.float32_values_.equals(otherMyClass.float32_values_)) return false; if (!this.float64_values_.equals(otherMyClass.float64_values_)) return false; if (!this.int8_values_.equals(otherMyClass.int8_values_)) return false; if (!this.uint8_values_.equals(otherMyClass.uint8_values_)) return false; if (!this.int16_values_.equals(otherMyClass.int16_values_)) return false; if (!this.uint16_values_.equals(otherMyClass.uint16_values_)) return false; if (!this.int32_values_.equals(otherMyClass.int32_values_)) return false; if (!this.uint32_values_.equals(otherMyClass.uint32_values_)) return false; if (!this.int64_values_.equals(otherMyClass.int64_values_)) return false; if (!this.uint64_values_.equals(otherMyClass.uint64_values_)) return false; if (!this.string_values_.equals(otherMyClass.string_values_)) return false; if(this.check_ != otherMyClass.check_) return false; return true; }
public AtlasAuxiliaryRobotData() { electric_joint_temperatures_ = new us.ihmc.idl.IDLSequence.Float (6, "type_5"); electric_joint_currents_ = new us.ihmc.idl.IDLSequence.Float (6, "type_5"); electric_joint_enabled_array_ = new us.ihmc.idl.IDLSequence.Boolean (6, "type_7"); raw_imu_timestamps_ = new float[15]; raw_imu_packet_counts_ = new float[15]; raw_imu_rates_ = new us.ihmc.euclid.tuple3D.Vector3D[15]; for(int i1 = 0; i1 < raw_imu_rates_.length; ++i1) { raw_imu_rates_[i1] = new us.ihmc.euclid.tuple3D.Vector3D(); } raw_imu_deltas_ = new us.ihmc.euclid.tuple3D.Vector3D[15]; for(int i3 = 0; i3 < raw_imu_deltas_.length; ++i3) { raw_imu_deltas_[i3] = new us.ihmc.euclid.tuple3D.Vector3D(); } }
public void set(BoundedArrayPrimitives other) { bool_values_.set(other.bool_values_); byte_values_.set(other.byte_values_); char_values_.set(other.char_values_); float32_values_.set(other.float32_values_); float64_values_.set(other.float64_values_); int8_values_.set(other.int8_values_); uint8_values_.set(other.uint8_values_); int16_values_.set(other.int16_values_); uint16_values_.set(other.uint16_values_); int32_values_.set(other.int32_values_); uint32_values_.set(other.uint32_values_); int64_values_.set(other.int64_values_); uint64_values_.set(other.uint64_values_); string_values_.set(other.string_values_); check_ = other.check_; }
public DynamicArrayPrimitives() { bool_values_ = new us.ihmc.idl.IDLSequence.Boolean (100, "type_7"); byte_values_ = new us.ihmc.idl.IDLSequence.Byte (100, "type_9"); char_values_ = new us.ihmc.idl.IDLSequence.Char (100, "type_8"); float32_values_ = new us.ihmc.idl.IDLSequence.Float (100, "type_5"); float64_values_ = new us.ihmc.idl.IDLSequence.Double (100, "type_6"); int8_values_ = new us.ihmc.idl.IDLSequence.Byte (100, "type_9"); uint8_values_ = new us.ihmc.idl.IDLSequence.Byte (100, "type_9"); int16_values_ = new us.ihmc.idl.IDLSequence.Short (100, "type_1"); uint16_values_ = new us.ihmc.idl.IDLSequence.Integer (100, "type_3"); int32_values_ = new us.ihmc.idl.IDLSequence.Integer (100, "type_2"); uint32_values_ = new us.ihmc.idl.IDLSequence.Long (100, "type_4"); int64_values_ = new us.ihmc.idl.IDLSequence.Long (100, "type_11"); uint64_values_ = new us.ihmc.idl.IDLSequence.Long (100, "type_12"); string_values_ = new us.ihmc.idl.IDLSequence.StringBuilderHolder (100, "type_d"); }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof FootstepPathPlanPacket)) return false; FootstepPathPlanPacket otherMyClass = (FootstepPathPlanPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.goals_valid_ != otherMyClass.goals_valid_) return false; if (!this.start_.equals(otherMyClass.start_)) return false; if (!this.original_goals_.equals(otherMyClass.original_goals_)) return false; if (!this.path_plan_.equals(otherMyClass.path_plan_)) return false; if (!this.footstep_unknown_.equals(otherMyClass.footstep_unknown_)) return false; if(this.sub_optimality_ != otherMyClass.sub_optimality_) return false; if(this.path_cost_ != otherMyClass.path_cost_) return false; return true; }
public final static int getCdrSerializedSize(controller_msgs.msg.dds.FootstepPathPlanPacket data, int current_alignment) { int initial_alignment = current_alignment; current_alignment += 4 + us.ihmc.idl.CDR.alignment(current_alignment, 4); current_alignment += 1 + us.ihmc.idl.CDR.alignment(current_alignment, 1); current_alignment += controller_msgs.msg.dds.FootstepDataMessagePubSubType.getCdrSerializedSize(data.getStart(), current_alignment); current_alignment += 4 + us.ihmc.idl.CDR.alignment(current_alignment, 4); for(int i0 = 0; i0 < data.getOriginalGoals().size(); ++i0) { current_alignment += controller_msgs.msg.dds.FootstepDataMessagePubSubType.getCdrSerializedSize(data.getOriginalGoals().get(i0), current_alignment);} current_alignment += 4 + us.ihmc.idl.CDR.alignment(current_alignment, 4); for(int i0 = 0; i0 < data.getPathPlan().size(); ++i0) { current_alignment += controller_msgs.msg.dds.FootstepDataMessagePubSubType.getCdrSerializedSize(data.getPathPlan().get(i0), current_alignment);} current_alignment += 4 + us.ihmc.idl.CDR.alignment(current_alignment, 4); current_alignment += (data.getFootstepUnknown().size() * 1) + us.ihmc.idl.CDR.alignment(current_alignment, 1); current_alignment += 8 + us.ihmc.idl.CDR.alignment(current_alignment, 8); current_alignment += 8 + us.ihmc.idl.CDR.alignment(current_alignment, 8); return current_alignment - initial_alignment; }
public static FootstepPathPlanPacket nextFootstepPathPlanPacket(Random random) { FootstepPathPlanPacket next = new FootstepPathPlanPacket(); next.setGoalsValid(random.nextBoolean()); next.getStart().set(nextFootstepDataMessage(random)); MessageTools.copyData(nextFootstepDataMessages(random), next.getOriginalGoals()); MessageTools.copyData(nextFootstepDataMessages(random), next.getPathPlan()); int size = Math.abs(random.nextInt(1000)); for (int i = 0; i < size; i++) { next.getFootstepUnknown().add((byte) random.nextInt(2)); } next.setSubOptimality(random.nextDouble()); next.setPathCost(random.nextDouble()); return next; }