Пример #1
0
            public override bool Equals(RosMessage ____other)
            {
                if (____other == null)
                {
                    return(false);
                }

                bool ret = true;

                wsg_50.GetGripperStatus.Response other = (Messages.wsg_50.GetGripperStatus.Response)____other;

                ret &= status.Equals(other.status);
                // for each SingleType st:
                //    ret &= {st.Name} == other.{st.Name};
                return(ret);
            }
Пример #2
0
        public override bool Equals(RosMessage message)
        {
            if (message == null)
            {
                return(false);
            }
            bool            ret = true;
            CommandFeedback other;

            try
            {
                other = (CommandFeedback)message;
            }
            catch
            {
                return(false);
            }


            ret &= status.Equals(other.status);

            return(ret);
        }