public void deserialize(ByteBuffer bb) { stamp = Serialization.readTime(bb); int __joint_names_len = bb.getInt(); joint_names = new java.util.ArrayList<java.lang.String>(__joint_names_len); for (int __i = 0; __i < __joint_names_len; __i++) { joint_names.add(Serialization.readString(bb)); } int __frame_ids_len = bb.getInt(); frame_ids = new java.util.ArrayList<java.lang.String>(__frame_ids_len); for (int __i = 0; __i < __frame_ids_len; __i++) { frame_ids.add(Serialization.readString(bb)); } int __child_frame_ids_len = bb.getInt(); child_frame_ids = new java.util.ArrayList<java.lang.String>(__child_frame_ids_len); for (int __i = 0; __i < __child_frame_ids_len; __i++) { child_frame_ids.add(Serialization.readString(bb)); } int __poses_len = bb.getInt(); poses = new java.util.ArrayList<ros.pkg.geometry_msgs.msg.Pose>(__poses_len); for (int __i = 0; __i < __poses_len; __i++) { ros.pkg.geometry_msgs.msg.Pose __tmp = new ros.pkg.geometry_msgs.msg.Pose(); __tmp.deserialize(bb); poses.add(__tmp); ; } }
public int serializationLength() { int __l = 0; __l += 8; // stamp __l += 4 + name.length(); __l += pose.serializationLength(); return __l; }
public void serialize(ByteBuffer bb, int seq) { Serialization.writeTime(bb, stamp); bb.putInt(joint_names.size()); for (java.lang.String val : joint_names) { Serialization.writeString(bb, val); } bb.putInt(frame_ids.size()); for (java.lang.String val : frame_ids) { Serialization.writeString(bb, val); } bb.putInt(child_frame_ids.size()); for (java.lang.String val : child_frame_ids) { Serialization.writeString(bb, val); } bb.putInt(poses.size()); for (ros.pkg.geometry_msgs.msg.Pose val : poses) { val.serialize(bb, seq); } }
public int serializationLength() { int __l = 0; __l += 8; // stamp __l += 4; for (java.lang.String val : joint_names) { __l += 4 + val.length(); } __l += 4; for (java.lang.String val : frame_ids) { __l += 4 + val.length(); } __l += 4; for (java.lang.String val : child_frame_ids) { __l += 4 + val.length(); } __l += 4; for (ros.pkg.geometry_msgs.msg.Pose val : poses) { __l += val.serializationLength(); } return __l; }
@SuppressWarnings("all") public boolean equals(Object o) { if (!(o instanceof SeenObject)) return false; SeenObject other = (SeenObject) o; return stamp.equals(other.stamp) && name.equals(other.name) && pose.equals(other.pose) && true; }
public void deserialize(ByteBuffer bb) { stamp = Serialization.readTime(bb); name = Serialization.readString(bb); pose.deserialize(bb); }
public void serialize(ByteBuffer bb, int seq) { Serialization.writeTime(bb, stamp); Serialization.writeString(bb, name); pose.serialize(bb, seq); }