@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof ComVelocityPacket)) return false; ComVelocityPacket otherMyClass = (ComVelocityPacket) other; if (!this.velocity_.equals(otherMyClass.velocity_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof Twist)) return false; Twist otherMyClass = (Twist) other; if (!this.linear_.equals(otherMyClass.linear_)) return false; if (!this.angular_.equals(otherMyClass.angular_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof PlanOffsetStatus)) return false; PlanOffsetStatus otherMyClass = (PlanOffsetStatus) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.offset_vector_.equals(otherMyClass.offset_vector_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof WalkingControllerFailureStatusMessage)) return false; WalkingControllerFailureStatusMessage otherMyClass = (WalkingControllerFailureStatusMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.falling_direction_.equals(otherMyClass.falling_direction_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof PlanarVelocityPacket)) return false; PlanarVelocityPacket otherMyClass = (PlanarVelocityPacket) other; if (!this.velocity_.equals(otherMyClass.velocity_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof Accel)) return false; Accel otherMyClass = (Accel) other; if (!this.linear_.equals(otherMyClass.linear_)) return false; if (!this.angular_.equals(otherMyClass.angular_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof SpatialVectorMessage)) return false; SpatialVectorMessage otherMyClass = (SpatialVectorMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.angular_part_.equals(otherMyClass.angular_part_)) return false; if (!this.linear_part_.equals(otherMyClass.linear_part_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof Wrench)) return false; Wrench otherMyClass = (Wrench) other; if (!this.force_.equals(otherMyClass.force_)) return false; if (!this.torque_.equals(otherMyClass.torque_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof IMUPacket)) return false; IMUPacket otherMyClass = (IMUPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if (!this.angular_velocity_.equals(otherMyClass.angular_velocity_)) return false; if (!this.linear_acceleration_.equals(otherMyClass.linear_acceleration_)) return false; if(this.time_ != otherMyClass.time_) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof QuadrupedGroundPlaneMessage)) return false; QuadrupedGroundPlaneMessage otherMyClass = (QuadrupedGroundPlaneMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.region_origin_.equals(otherMyClass.region_origin_)) return false; if (!this.region_normal_.equals(otherMyClass.region_normal_)) return false; return true; }
/** * Tests on a per component basis, if this plane 3D is exactly equal to {@code other}. * * @param other the other plane 3D to compare against this. Not modified. * @return {@code true} if the two planes are exactly equal component-wise, {@code false} otherwise. */ public boolean equals(Plane3D other) { if (other == null) return false; else return point.equals(other.point) && normal.equals(other.normal); }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof MagneticField)) return false; MagneticField otherMyClass = (MagneticField) other; if (!this.header_.equals(otherMyClass.header_)) return false; if (!this.magnetic_field_.equals(otherMyClass.magnetic_field_)) return false; for(int i5 = 0; i5 < magnetic_field_covariance_.length; ++i5) { if(this.magnetic_field_covariance_[i5] != otherMyClass.magnetic_field_covariance_[i5]) return false; } return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof Vector3Stamped)) return false; Vector3Stamped otherMyClass = (Vector3Stamped) other; if (!this.header_.equals(otherMyClass.header_)) return false; if (!this.vector_.equals(otherMyClass.vector_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof SO3TrajectoryPointMessage)) return false; SO3TrajectoryPointMessage otherMyClass = (SO3TrajectoryPointMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.time_ != otherMyClass.time_) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if (!this.angular_velocity_.equals(otherMyClass.angular_velocity_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof EuclideanTrajectoryPointMessage)) return false; EuclideanTrajectoryPointMessage otherMyClass = (EuclideanTrajectoryPointMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.time_ != otherMyClass.time_) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.linear_velocity_.equals(otherMyClass.linear_velocity_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof LoadBearingMessage)) return false; LoadBearingMessage otherMyClass = (LoadBearingMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.load_ != otherMyClass.load_) return false; if(this.coefficient_of_friction_ != otherMyClass.coefficient_of_friction_) return false; if (!this.body_frame_to_contact_frame_.equals(otherMyClass.body_frame_to_contact_frame_)) return false; if (!this.contact_normal_in_world_frame_.equals(otherMyClass.contact_normal_in_world_frame_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof SE3TrajectoryPointMessage)) return false; SE3TrajectoryPointMessage otherMyClass = (SE3TrajectoryPointMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.time_ != otherMyClass.time_) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if (!this.linear_velocity_.equals(otherMyClass.linear_velocity_)) return false; if (!this.angular_velocity_.equals(otherMyClass.angular_velocity_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof KinematicsToolboxOutputStatus)) return false; KinematicsToolboxOutputStatus otherMyClass = (KinematicsToolboxOutputStatus) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.joint_name_hash_ != otherMyClass.joint_name_hash_) return false; if (!this.desired_joint_angles_.equals(otherMyClass.desired_joint_angles_)) return false; if (!this.desired_root_translation_.equals(otherMyClass.desired_root_translation_)) return false; if (!this.desired_root_orientation_.equals(otherMyClass.desired_root_orientation_)) return false; if(this.solution_quality_ != otherMyClass.solution_quality_) return false; return true; }
@ContinuousIntegrationTest(estimatedDuration = 0.0) @Test(timeout = 30000) public void testAddRevoluteJoint_String_RigidBody_Transform3D_Vector3d() { String jointName = "joint"; RigidBodyBasics parentBody = new RigidBody("body", ReferenceFrame.getWorldFrame()); RigidBodyTransform transformToParent = EuclidCoreRandomTools.nextRigidBodyTransform(random); Vector3D jointAxis = RandomGeometry.nextVector3D(random, 5.0); RevoluteJoint joint = new RevoluteJoint(jointName, parentBody, transformToParent, jointAxis); assertEquals("Should be equal", jointName, joint.getName()); assertTrue(parentBody.equals(joint.getPredecessor())); assertTrue(jointAxis.equals(joint.getJointAxis())); }
@Test public void test() { Point3D point = new Point3D(); Vector3D normal = new Vector3D(1.0, 2.0, 3.0); Plane3D plane = new Plane3D(point, normal); assertTrue(point.equals(plane.getPointCopy())); assertFalse(point == plane.getPointCopy()); normal.normalize(); assertTrue(normal.equals(plane.getNormalCopy())); Plane3D plane2 = new Plane3D(point, normal); assertTrue(plane2.epsilonEquals(plane, 1e-17)); }