@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 QuaternionStamped)) return false; QuaternionStamped otherMyClass = (QuaternionStamped) other; if (!this.header_.equals(otherMyClass.header_)) return false; if (!this.quaternion_.equals(otherMyClass.quaternion_)) 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 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 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 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; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof FootstepStatusMessage)) return false; FootstepStatusMessage otherMyClass = (FootstepStatusMessage) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.footstep_status_ != otherMyClass.footstep_status_) return false; if(this.footstep_index_ != otherMyClass.footstep_index_) return false; if(this.robot_side_ != otherMyClass.robot_side_) return false; if (!this.desired_foot_position_in_world_.equals(otherMyClass.desired_foot_position_in_world_)) return false; if (!this.desired_foot_orientation_in_world_.equals(otherMyClass.desired_foot_orientation_in_world_)) return false; if (!this.actual_foot_position_in_world_.equals(otherMyClass.actual_foot_position_in_world_)) return false; if (!this.actual_foot_orientation_in_world_.equals(otherMyClass.actual_foot_orientation_in_world_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof FootstepNodeDataMessage)) return false; FootstepNodeDataMessage otherMyClass = (FootstepNodeDataMessage) other; if(this.robot_side_ != otherMyClass.robot_side_) return false; if(this.x_index_ != otherMyClass.x_index_) return false; if(this.y_index_ != otherMyClass.y_index_) return false; if(this.yaw_index_ != otherMyClass.yaw_index_) return false; if (!this.snap_translation_.equals(otherMyClass.snap_translation_)) return false; if (!this.snap_rotation_.equals(otherMyClass.snap_rotation_)) return false; if(this.parent_node_id_ != otherMyClass.parent_node_id_) return false; if(this.bipedal_footstep_planner_node_rejection_reason_ != otherMyClass.bipedal_footstep_planner_node_rejection_reason_) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof FootstepPlanningRequestPacket)) return false; FootstepPlanningRequestPacket otherMyClass = (FootstepPlanningRequestPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.initial_stance_robot_side_ != otherMyClass.initial_stance_robot_side_) return false; if (!this.stance_foot_position_in_world_.equals(otherMyClass.stance_foot_position_in_world_)) return false; if (!this.stance_foot_orientation_in_world_.equals(otherMyClass.stance_foot_orientation_in_world_)) return false; if (!this.goal_position_in_world_.equals(otherMyClass.goal_position_in_world_)) return false; if (!this.goal_orientation_in_world_.equals(otherMyClass.goal_orientation_in_world_)) return false; if(this.requested_footstep_planner_type_ != otherMyClass.requested_footstep_planner_type_) return false; if(this.timeout_ != otherMyClass.timeout_) return false; if(this.horizon_length_ != otherMyClass.horizon_length_) return false; if (!this.planar_regions_list_message_.equals(otherMyClass.planar_regions_list_message_)) return false; if(this.planner_request_id_ != otherMyClass.planner_request_id_) 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 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 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; }
@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; }
public double getOrientationDistance(SpatialData other) { double distance = 0.0; for (int i = 0; i < rigidBodySpatials.size(); i++) { double orientationDistance; if (rigidBodySpatials.get(i).getOrientation().equals(other.getRigidBodySpatials().get(i).getOrientation())) orientationDistance = 0.0; else orientationDistance = rigidBodySpatials.get(i).getOrientationDistance(other.getRigidBodySpatials().get(i)); orientationDistance = AngleTools.trimAngleMinusPiToPi(orientationDistance); orientationDistance = Math.abs(orientationDistance); distance = distance + orientationDistance; } return distance; }
@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 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 VideoPacket)) return false; VideoPacket otherMyClass = (VideoPacket) other; if(this.sequence_id_ != otherMyClass.sequence_id_) return false; if(this.video_source_ != otherMyClass.video_source_) return false; if(this.timestamp_ != otherMyClass.timestamp_) return false; if (!this.data_.equals(otherMyClass.data_)) return false; if (!this.position_.equals(otherMyClass.position_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if (!this.intrinsic_parameters_.equals(otherMyClass.intrinsic_parameters_)) return false; return true; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof InteractiveMarkerControl)) return false; InteractiveMarkerControl otherMyClass = (InteractiveMarkerControl) other; if (!us.ihmc.idl.IDLTools.equals(this.name_, otherMyClass.name_)) return false; if (!this.orientation_.equals(otherMyClass.orientation_)) return false; if(this.orientation_mode_ != otherMyClass.orientation_mode_) return false; if(this.interaction_mode_ != otherMyClass.interaction_mode_) return false; if(this.always_visible_ != otherMyClass.always_visible_) return false; if (!this.markers_.equals(otherMyClass.markers_)) return false; if(this.independent_marker_orientation_ != otherMyClass.independent_marker_orientation_) return false; if (!us.ihmc.idl.IDLTools.equals(this.description_, otherMyClass.description_)) 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; }
@Override public boolean equals(Object other) { if(other == null) return false; if(other == this) return true; if(!(other instanceof WaypointBasedTrajectoryMessage)) return false; WaypointBasedTrajectoryMessage otherMyClass = (WaypointBasedTrajectoryMessage) 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.waypoint_times_.equals(otherMyClass.waypoint_times_)) return false; if (!this.waypoints_.equals(otherMyClass.waypoints_)) return false; if (!this.angular_selection_matrix_.equals(otherMyClass.angular_selection_matrix_)) return false; if (!this.linear_selection_matrix_.equals(otherMyClass.linear_selection_matrix_)) return false; if (!this.control_frame_position_in_end_effector_.equals(otherMyClass.control_frame_position_in_end_effector_)) return false; if (!this.control_frame_orientation_in_end_effector_.equals(otherMyClass.control_frame_orientation_in_end_effector_)) return false; if(this.weight_ != otherMyClass.weight_) return false; return true; }