Skip to content

Commit

Permalink
Fixed callbackCloud warning (#1233)
Browse files Browse the repository at this point in the history
* Fixed callbackCloud warning

* reverted warning order

---------

Co-authored-by: chcaya <ch.caya@hotmail.ca>
Co-authored-by: matlabbe <matlabbe@gmail.com>
  • Loading branch information
3 people authored Nov 1, 2024
1 parent c83cff1 commit e9aa8ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtabmap_util/src/nodelets/point_cloud_assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,14 @@ void PointCloudAssembler::callbackCloudOdomInfo(
}
else
{
RCLCPP_WARN(this->get_logger(), "Reseting point cloud assembler as null odometry has been received.");
RCLCPP_WARN(this->get_logger(), "Resetting point cloud assembler as null odometry has been received.");
clouds_.clear();
}
}

void PointCloudAssembler::callbackCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr cloudMsg)
{
callbackCalled_ = true;
if(cloudPub_->get_subscription_count())
{
UASSERT_MSG(cloudMsg->data.size() == cloudMsg->row_step*cloudMsg->height,
Expand Down

0 comments on commit e9aa8ed

Please sign in to comment.