Robotics-DAI-FMFI-UK / mato-common

Distributed control architecture for controlling mobile robot Mato
0 stars 0 forks source link

modify the framework to work on distributed environment #2

Open pavelpetrovic opened 4 years ago

pavelpetrovic commented 4 years ago
pavelpetrovic commented 4 years ago

Design of data structures modifications:

Every node will be identified by node_id. Nodes with lower id will be connecting to nodes with higher id. module_specifications will only contain node-local information. instance_data will only contain instance data of node-local modules.

Algorithm:

pavelpetrovic commented 4 years ago

Communication protocol between nodes:

  1. login(node_id) (node announces its node_it after connect)
  2. new_module_instance(module_info)
  3. deleted_module_instance(module_id)
  4. subscribe(module_id, channel_number) -> subscription_id
  5. unsubscribe(module_id, channel_number, subscription_id)
  6. get_data(module_id, channel_number) -> channel_data
  7. subscribed data(channel_data)
  8. global message(sending_module_id, msg_type, len, data)
pavelpetrovic commented 4 years ago

mato_init() does these new things: