Fix segfault in rosbag_validate (#685)
parent
7cf570d19e
commit
8d8a86790a
|
@ -173,8 +173,9 @@ class RangeDataChecker {
|
|||
|
||||
template <typename MessageType>
|
||||
RangeChecksum ComputeRangeChecksum(const MessageType& message) {
|
||||
auto point_cloud_with_intensities = ToPointCloudWithIntensities(message);
|
||||
const cartographer::sensor::TimedPointCloud& point_cloud =
|
||||
std::get<0>(ToPointCloudWithIntensities(message)).points;
|
||||
std::get<0>(point_cloud_with_intensities).points;
|
||||
Eigen::Vector4f points_sum = Eigen::Vector4f::Zero();
|
||||
for (const auto& point : point_cloud) {
|
||||
points_sum += point;
|
||||
|
|
Loading…
Reference in New Issue