Skip to content

Commit

Permalink
Merge branch 'main' of https://gitee.com/amovlab1/Prometheus into main
Browse files Browse the repository at this point in the history
  • Loading branch information
473867143 committed Dec 7, 2023
2 parents c53c8f4 + fe18179 commit e5280c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Modules/communication/src/communication_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ CommunicationBridge::CommunicationBridge(ros::NodeHandle &nh) : Communication()
heartbeat.message = "OK";
heartbeat.count = 0;

for(int i = 0; i < this->swarm_num_; i++)
{
swarm_control_time.push_back(0);
swarm_control_timeout_count.push_back(0);
}
// for(int i = 0; i < this->swarm_num_; i++)
// {
// swarm_control_time.push_back(0);
// swarm_control_timeout_count.push_back(0);
// }

// boost::thread to_ground_station_thd(&CommunicationBridge::toGroundStationFun, this);
// to_ground_station_thd.detach();
Expand Down Expand Up @@ -976,6 +976,7 @@ void CommunicationBridge::multicastUdpFun()
this->swarm_control_->allUGVStatePub(this->swarm_control_->getMultiUGVState());
}
}
usleep(10);
}
int valread;
if (waitConnectionFromMulticast(UDP_PORT) < 0)
Expand Down

0 comments on commit e5280c0

Please sign in to comment.