public override bool Equals(IRosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret = true;

            gazebo_msgs.ContactState other = (Messages.gazebo_msgs.ContactState)____other;

            ret &= info == other.info;
            ret &= collision1_name == other.collision1_name;
            ret &= collision2_name == other.collision2_name;
            if (wrenches.Length != other.wrenches.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < wrenches.Length; __i__++)
            {
                ret &= wrenches[__i__].Equals(other.wrenches[__i__]);
            }
            ret &= total_wrench.Equals(other.total_wrench);
            if (contact_positions.Length != other.contact_positions.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < contact_positions.Length; __i__++)
            {
                ret &= contact_positions[__i__].Equals(other.contact_positions[__i__]);
            }
            if (contact_normals.Length != other.contact_normals.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < contact_normals.Length; __i__++)
            {
                ret &= contact_normals[__i__].Equals(other.contact_normals[__i__]);
            }
            if (depths.Length != other.depths.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < depths.Length; __i__++)
            {
                ret &= depths[__i__] == other.depths[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
Exemplo n.º 2
0
        public override bool Equals(IRosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret = true;

            baxter_core_msgs.EndpointState other = (Messages.baxter_core_msgs.EndpointState)____other;

            ret &= header.Equals(other.header);
            ret &= pose.Equals(other.pose);
            ret &= twist.Equals(other.twist);
            ret &= wrench.Equals(other.wrench);
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
Exemplo n.º 3
0
            public override bool Equals(IRosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }
                bool ret = true;

                gazebo_msgs.ApplyBodyWrench.Request other = (Messages.gazebo_msgs.ApplyBodyWrench.Request)____other;

                ret &= body_name == other.body_name;
                ret &= reference_frame == other.reference_frame;
                ret &= reference_point.Equals(other.reference_point);
                ret &= wrench.Equals(other.wrench);
                ret &= start_time.data.Equals(other.start_time.data);
                ret &= duration.data.Equals(other.duration.data);
                return(ret);
            }