예제 #1
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.rosgardener.MessageCommand;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= message_id == other.message_id;
            ret &= message_body == other.message_body;
            if (attachments.Length != other.attachments.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < attachments.Length; __i__++)
            {
                ret &= attachments[__i__].Equals(other.attachments[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
예제 #2
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                rosgardener.SetChannelCommand.Request other = (Messages.rosgardener.SetChannelCommand.Request)____other;

                ret &= command.Equals(other.command);
                return(ret);
            }
예제 #3
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                rosgardener.SetChannelCommand.Response other = (Messages.rosgardener.SetChannelCommand.Response)____other;

                ret &= response.Equals(other.response);
                ret &= success == other.success;
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }