Skip to content

Commit

Permalink
Compensation of point cloud point depth by water level reference point.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel13fr committed Jan 29, 2021
1 parent 20c82a5 commit 9e94375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/em_driver_library/EM_driver/kongsberg_em2040_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ static sensor_msgs::PointCloud2 mrz_to_pointcloud2(const EMdgmMRZ_S& msg,
{
pt.x = msg.sounding[i].x_reRefPoint_m;
pt.y = msg.sounding[i].y_reRefPoint_m;
pt.z = msg.sounding[i].z_reRefPoint_m;
pt.z = msg.sounding[i].z_reRefPoint_m - msg.pingInfo.z_waterLevelReRefPoint_m;
pt.intensity = msg.sounding[i].reflectivity1_dB;
pcl.push_back(pt);
}
Expand Down

0 comments on commit 9e94375

Please sign in to comment.