Skip to content

Commit

Permalink
Fix initialization of accumulated cloud header (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Apr 6, 2020
1 parent 484f788 commit 8096001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcl_3dl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ class MCL3dlNode
void accumClear()
{
pc_local_accum_.reset(new pcl::PointCloud<PointType>);
pc_local_accum_->header.frame_id = frame_ids_["odom"];
pc_accum_header_.clear();
}

Expand Down Expand Up @@ -296,7 +297,6 @@ class MCL3dlNode
p.label = pc_accum_header_.size();
}
*pc_local_accum_ += *pc_tmp;
pc_local_accum_->header.frame_id = frame_ids_["odom"];
pc_accum_header_.push_back(msg->header);
return true;
}
Expand Down

0 comments on commit 8096001

Please sign in to comment.