コード例 #1
0
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.rosgraph_msgs.Log;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= level == other.level;
            ret &= name == other.name;
            ret &= msg == other.msg;
            ret &= file == other.file;
            ret &= function == other.function;
            ret &= line == other.line;
            if (topics.Length != other.topics.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < topics.Length; __i__++)
            {
                ret &= topics[__i__] == other.topics[__i__];
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #2
0
ファイル: GoalStatusArray.cs プロジェクト: k-aguete/ROS.NET
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.actionlib_msgs.GoalStatusArray;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            if (status_list.Length != other.status_list.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < status_list.Length; __i__++)
            {
                ret &= status_list[__i__].Equals(other.status_list[__i__]);
            }
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
コード例 #3
0
        public override bool Equals(IRosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool         ret   = true;
            MotorCommand other = (MotorCommand)____other;

            ret &= header.Equals(other.header);
            ret &= force.Equals(other.force);
            ret &= torque.Equals(other.torque);
            ret &= frequency.Equals(other.frequency);
            ret &= voltage.Equals(other.voltage);
            return(ret);
        }
コード例 #4
0
ファイル: TransformStamped.cs プロジェクト: k-aguete/ROS.NET
        public override bool Equals(RosMessage ____other)
        {
            if (____other == null)
            {
                return(false);
            }
            bool ret   = true;
            var  other = ____other as Messages.geometry_msgs.TransformStamped;

            if (other == null)
            {
                return(false);
            }
            ret &= header.Equals(other.header);
            ret &= child_frame_id == other.child_frame_id;
            ret &= transform.Equals(other.transform);
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }