ClubRobotInsat / info-archive

Code informatique du Club Robot INSA Toulouse
MIT License
3 stars 1 forks source link

Communication between robots. #11

Open Terae opened 5 years ago

Terae commented 5 years ago

This year, we will use two robots (primary and secondary).

We made a lot of changes in the electronic architecture and it seems to be the right moment to centralize the strategy of the both.

And so on, the idea is to use one raspi on each to control the overall electronic, but only one will calculate the strategy of both robots (the environment will be shared and it is easier to make decisions).

Actually, our communication protocols work for serial and ethernet connections, so we need:

All the process needs to be transparent for the strategy: for example, if the primary robot is on the network 192.168.1.0 and the *secondary on 192.168.2.0, this code should be sufficient:

Communication::wire_protocol primary("192.168.1.0");
Communicaiton::wire_protocol secondary("192.168.2.0");
primary.send_frame({. . .});
secondary.send_frame({. . .});
Terae commented 5 years ago

I found this article on the forum. Basically we have 4 solutions to communicate:

Personally I think we should use WiFi 5GHz, use 2 raspis to set up a communication in order to test the maximum range, and use this solution on an saturated environment. We need to find a raspi module to communicate in this band width.

We could also use a Bluetooth communication; the arno's team use this tecnology since 3y without any problem.

Does someone know a highly wifi-saturated place?