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

            sensor_msgs.CameraInfo other = (Messages.sensor_msgs.CameraInfo)____other;

            ret &= header.Equals(other.header);
            ret &= height == other.height;
            ret &= width == other.width;
            ret &= distortion_model == other.distortion_model;
            if (D.Length != other.D.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < D.Length; __i__++)
            {
                ret &= D[__i__] == other.D[__i__];
            }
            if (K.Length != other.K.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < K.Length; __i__++)
            {
                ret &= K[__i__] == other.K[__i__];
            }
            if (R.Length != other.R.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < R.Length; __i__++)
            {
                ret &= R[__i__] == other.R[__i__];
            }
            if (P.Length != other.P.Length)
            {
                return(false);
            }
            for (int __i__ = 0; __i__ < P.Length; __i__++)
            {
                ret &= P[__i__] == other.P[__i__];
            }
            ret &= binning_x == other.binning_x;
            ret &= binning_y == other.binning_y;
            ret &= roi.Equals(other.roi);
            // for each SingleType st:
            //    ret &= {st.Name} == other.{st.Name};
            return(ret);
        }
 public SetCameraInfoRequest(sensor_msgs.CameraInfo camera_info)
 {
     this.camera_info = camera_info;
 }
 public SetCameraInfoRequest()
 {
     this.camera_info = new sensor_msgs.CameraInfo();
 }
Exemple #4
0
 public SetCameraInfoRequest(sensor_msgs.CameraInfo _camera_info)
 {
     camera_info = _camera_info;
 }