Skip to content

Commit

Permalink
check empty cloud
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Sanchez <[email protected]>
  • Loading branch information
danielsanchezaran committed Apr 16, 2024
1 parent c1c1474 commit d99f44c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/autonomous_emergency_braking/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void AEB::createClusteredPointCloudObjectData(
std::vector<ObjectData> & objects)
{
// check if the predicted path has valid number of points
if (ego_path.size() < 2 || ego_polys.empty() || !cropped_ros_pointcloud_ptr_) {
if (ego_path.size() < 2 || ego_polys.empty() || cropped_ros_pointcloud_ptr_->data.empty()) {
return;
}

Expand Down

0 comments on commit d99f44c

Please sign in to comment.