public CameraInfoMsg(Std.HeaderMsg header, uint height, uint width, string distortion_model, double[] d, double[] k, double[] r, double[] p, uint binning_x, uint binning_y, RegionOfInterestMsg roi) { this.header = header; this.height = height; this.width = width; this.distortion_model = distortion_model; this.d = d; this.k = k; this.r = r; this.p = p; this.binning_x = binning_x; this.binning_y = binning_y; this.roi = roi; }
private CameraInfoMsg(MessageDeserializer deserializer) { this.header = Std.HeaderMsg.Deserialize(deserializer); deserializer.Read(out this.height); deserializer.Read(out this.width); deserializer.Read(out this.distortion_model); deserializer.Read(out this.d, sizeof(double), deserializer.ReadLength()); deserializer.Read(out this.k, sizeof(double), 9); deserializer.Read(out this.r, sizeof(double), 9); deserializer.Read(out this.p, sizeof(double), 12); deserializer.Read(out this.binning_x); deserializer.Read(out this.binning_y); this.roi = RegionOfInterestMsg.Deserialize(deserializer); }
public CameraInfoMsg() { this.header = new Std.HeaderMsg(); this.height = 0; this.width = 0; this.distortion_model = ""; this.d = new double[0]; this.k = new double[9]; this.r = new double[9]; this.p = new double[12]; this.binning_x = 0; this.binning_y = 0; this.roi = new RegionOfInterestMsg(); }