Communication Functions

From FIRE Wiki
Jump to: navigation, search

Currently, wireless messages are sent as raw bytes. A wrapper function will be created, that allows sending and receiving of strings.

In addition, students should have the ability to select the recipient of the message, and an option to broadcast. The function prototype can be something like:

  • send_message(string recipient, string message);
  • send_message_to_all(string message);

Receiving messages can be through a function:

  • bool receive_message(string & sender, string & message);

where the function receive_message returns false if no messages are available.

Also, structs can be defined for individual labs, that students can fill out and send across the robots.