diff --git a/src/calibration/world_calibration.rs b/src/calibration/world_calibration.rs index a6cd576..c916a8e 100644 --- a/src/calibration/world_calibration.rs +++ b/src/calibration/world_calibration.rs @@ -134,7 +134,7 @@ impl WorldCalibration { pub fn rotate_point(&self, x: f32, y: f32, z: f32) -> (f32, f32, f32) { let x0 = x * self.rotation_0_x + y * self.rotation_0_y + z * self.rotation_0_z; let y0 = x * self.rotation_1_x + y * self.rotation_1_y + z * self.rotation_1_z; - let z0 = x * self.rotation_1_x + y * self.rotation_1_y + z * self.rotation_1_z; + let z0 = x * self.rotation_2_x + y * self.rotation_2_y + z * self.rotation_2_z; (x0, y0, z0) } diff --git a/src/main_zeromq.rs b/src/main_zeromq.rs index 55aba3b..c207b0c 100644 --- a/src/main_zeromq.rs +++ b/src/main_zeromq.rs @@ -264,7 +264,7 @@ fn get_point_cloud( &depth_image2, &camera_info.xy_table, Some(&camera_info.world_calibration), - //color, + //None, &color_image, command_args, )?;