add comment, remove skipping updateObjectsStack logic
This commit is contained in:
parent
e7460ab62d
commit
65c92be3f9
|
@ -238,12 +238,12 @@ namespace v2x {
|
|||
void CpmApplication::updateObjectsList(const autoware_auto_perception_msgs::msg::PredictedObjects::ConstSharedPtr msg) {
|
||||
updating_objects_list_ = true;
|
||||
|
||||
if (sending_) {
|
||||
RCLCPP_INFO(node_->get_logger(), "updateObjectsStack Skipped...");
|
||||
return;
|
||||
} else {
|
||||
// objectsList.clear();
|
||||
}
|
||||
// if (sending_) {
|
||||
// RCLCPP_INFO(node_->get_logger(), "updateObjectsStack Skipped...");
|
||||
// return;
|
||||
// } else {
|
||||
// // objectsList.clear();
|
||||
// }
|
||||
|
||||
if (msg->objects.size() > 0) {
|
||||
for (autoware_auto_perception_msgs::msg::PredictedObject obj : msg->objects) {
|
||||
|
@ -551,6 +551,8 @@ namespace v2x {
|
|||
// RCLCPP_INFO(node_->get_logger(), "[CpmApplication::send] Empty POC");
|
||||
}
|
||||
|
||||
RCLCPP_INFO(node_->get_logger(), "[CpmApplication::send] Sending CPM with %ld objects", objectsList.size());
|
||||
|
||||
insertCpmToCpmTable(message, (char*) "cpm_sent");
|
||||
|
||||
Application::DownPacketPtr packet{new DownPacket()};
|
||||
|
|
Loading…
Reference in New Issue