![]() |
GT RoboCup SSL
Soccer software, robot firmware
|
Interface for the radio over regular network interface. More...
Public Member Functions | |
NetworkRadio (int server_port) | |
virtual bool | isOpen () const override |
virtual void | send (Packet::RadioTx &packet) override |
virtual void | receive () override |
virtual void | switchTeam (bool) override |
![]() | |
virtual void | channel (int n) |
int | channel () const |
bool | hasReversePackets () |
const Packet::RadioRx | popReversePacket () |
void | clear () |
Protected Types | |
using | RobotIpMap = boost::bimaps::bimap< boost::bimaps::multiset_of< int >, boost::bimaps::set_of< boost::asio::ip::udp::endpoint > > |
Protected Attributes | |
RobotIpMap | _robot_ip_map |
boost::asio::io_service | _context |
boost::asio::ip::udp::socket | _socket |
std::array< char, rtp::ReverseSize > | _recv_buffer |
boost::asio::ip::udp::endpoint | _robot_endpoint |
std::vector< std::array< uint8_t, rtp::HeaderSize+sizeof(rtp::RobotTxMessage)> > | _send_buffers |
![]() | |
std::deque< Packet::RadioRx > | _reversePackets |
std::mutex | _reverse_packets_mutex |
int | _channel |
Interface for the radio over regular network interface.
TODO(Kyle): Clean this up by removing dual-radio support.