@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof ComPositionPacket)) return false; ComPositionPacket otherMyClass = (ComPositionPacket) other; if (!this.position_.equals(otherMyClass.position_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof BoundingBox3DMessage)) return false; BoundingBox3DMessage otherMyClass = (BoundingBox3DMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.min_point_.equals(otherMyClass.min_point_)) return false; if (!this.max_point_.equals(otherMyClass.max_point_)) return false; return true; }
/** * Tests on a per component basis, if this bounding box 3D is exactly equal to {@code other}. * * @param other the other bounding box 3D to compare against this. Not modified. * @return {@code true} if the two bounding boxes are exactly equal component-wise, {@code false} * otherwise. */ public boolean equals(BoundingBox3D other) { if (other == null) return false; else return minPoint.equals(other.minPoint) && maxPoint.equals(other.maxPoint); }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof QuadrupedStepMessage)) return false; QuadrupedStepMessage otherMyClass = (QuadrupedStepMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.robot_quadrant_ != otherMyClass.robot_quadrant_) return false; if (!this.goal_position_.equals(otherMyClass.goal_position_)) return false; if(this.ground_clearance_ != otherMyClass.ground_clearance_) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof CapturabilityBasedStatus)) return false; CapturabilityBasedStatus otherMyClass = (CapturabilityBasedStatus) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.capture_point_2d_.equals(otherMyClass.capture_point_2d_)) return false; if (!this.desired_capture_point_2d_.equals(otherMyClass.desired_capture_point_2d_)) return false; if (!this.center_of_mass_3d_.equals(otherMyClass.center_of_mass_3d_)) return false; if (!this.left_foot_support_polygon_2d_.equals(otherMyClass.left_foot_support_polygon_2d_)) return false; if (!this.right_foot_support_polygon_2d_.equals(otherMyClass.right_foot_support_polygon_2d_)) 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; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof WalkOverTerrainGoalPacket)) return false; WalkOverTerrainGoalPacket otherMyClass = (WalkOverTerrainGoalPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof PointStamped)) return false; PointStamped otherMyClass = (PointStamped) other; if (!this.header_.equals(otherMyClass.header_)) return false; if (!this.point_.equals(otherMyClass.point_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof UIPositionCheckerPacket)) return false; UIPositionCheckerPacket otherMyClass = (UIPositionCheckerPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof VehiclePosePacket)) return false; VehiclePosePacket otherMyClass = (VehiclePosePacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if(this.index_ != otherMyClass.index_) 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 WallPosePacket)) return false; WallPosePacket otherMyClass = (WallPosePacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.cutting_radius_ != otherMyClass.cutting_radius_) return false; if (!this.center_position_.equals(otherMyClass.center_position_)) return false; if (!this.center_orientation_.equals(otherMyClass.center_orientation_)) 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 KinematicsToolboxCenterOfMassMessage)) return false; KinematicsToolboxCenterOfMassMessage otherMyClass = (KinematicsToolboxCenterOfMassMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.desired_position_in_world_.equals(otherMyClass.desired_position_in_world_)) return false; if (!this.selection_matrix_.equals(otherMyClass.selection_matrix_)) return false; if (!this.weights_.equals(otherMyClass.weights_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof LidarScanMessage)) return false; LidarScanMessage otherMyClass = (LidarScanMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.robot_timestamp_ != otherMyClass.robot_timestamp_) return false; if (!this.lidar_position_.equals(otherMyClass.lidar_position_)) return false; if (!this.lidar_orientation_.equals(otherMyClass.lidar_orientation_)) return false; if (!this.scan_.equals(otherMyClass.scan_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof AdjustFootstepMessage)) return false; AdjustFootstepMessage otherMyClass = (AdjustFootstepMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.robot_side_ != otherMyClass.robot_side_) return false; if (!this.location_.equals(otherMyClass.location_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if (!this.predicted_contact_points_2d_.equals(otherMyClass.predicted_contact_points_2d_)) return false; if(this.execution_delay_time_ != otherMyClass.execution_delay_time_) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof KinematicsToolboxConfigurationMessage)) return false; KinematicsToolboxConfigurationMessage otherMyClass = (KinematicsToolboxConfigurationMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if (!this.privileged_root_joint_position_.equals(otherMyClass.privileged_root_joint_position_)) return false; if (!this.privileged_root_joint_orientation_.equals(otherMyClass.privileged_root_joint_orientation_)) return false; if (!this.privileged_joint_hash_codes_.equals(otherMyClass.privileged_joint_hash_codes_)) return false; if (!this.privileged_joint_angles_.equals(otherMyClass.privileged_joint_angles_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof ReachingManifoldMessage)) return false; ReachingManifoldMessage otherMyClass = (ReachingManifoldMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.end_effector_hash_code_ != otherMyClass.end_effector_hash_code_) return false; if (!this.manifold_origin_position_.equals(otherMyClass.manifold_origin_position_)) return false; if (!this.manifold_origin_orientation_.equals(otherMyClass.manifold_origin_orientation_)) return false; if (!this.manifold_configuration_space_names_.equals(otherMyClass.manifold_configuration_space_names_)) return false; if (!this.manifold_lower_limits_.equals(otherMyClass.manifold_lower_limits_)) return false; if (!this.manifold_upper_limits_.equals(otherMyClass.manifold_upper_limits_)) return false; return true; }
@Test public void testOrthogonalProjection() { Point3D q = new Point3D(1.0, 2.0, -3.0); Point3D v = new Point3D(1.0, 2.0, 0.0); Plane3D plane = new Plane3D(0.0, 0.0, 0.0, 0.0, 0.0, 1.0); assertTrue(v.equals(plane.orthogonalProjectionCopy(q))); q.set(3.0, 3.0, -4.0); plane.setPoint(1.0, 1.0, 1.0); plane.setNormal(2.0, 0.0, 0.0); v.set(1.0, 3.0, -4.0); assertTrue(v.equals(plane.orthogonalProjectionCopy(q))); }
@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)); }