mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-05 01:07:49 +08:00
Fixed callbackCloud warning (#1233)
* Fixed callbackCloud warning * reverted warning order --------- Co-authored-by: chcaya <[email protected]> Co-authored-by: matlabbe <[email protected]>
This commit is contained in:
co-authored by
chcaya
matlabbe
parent
c83cff14c9
commit
e9aa8ed082
@@ -286,13 +286,14 @@ void PointCloudAssembler::callbackCloudOdomInfo(
|
|||||||
}
|
}
|
||||||
else
|
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();
|
clouds_.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PointCloudAssembler::callbackCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr cloudMsg)
|
void PointCloudAssembler::callbackCloud(const sensor_msgs::msg::PointCloud2::ConstSharedPtr cloudMsg)
|
||||||
{
|
{
|
||||||
|
callbackCalled_ = true;
|
||||||
if(cloudPub_->get_subscription_count())
|
if(cloudPub_->get_subscription_count())
|
||||||
{
|
{
|
||||||
UASSERT_MSG(cloudMsg->data.size() == cloudMsg->row_step*cloudMsg->height,
|
UASSERT_MSG(cloudMsg->data.size() == cloudMsg->row_step*cloudMsg->height,
|
||||||
|
|||||||
Reference in New Issue
Block a user