How to create a node to share data between different robots
I am trying to build a data structure (cloud system) able to receive and send data and instructions from/to different kind of robots (e.g. drones,turtlebots). My idea is to create a node to which these robots can subscribe, and then depending on which topics they use to exchange information (e.g cmd_vel to move the turtlebot) this node can redirect the data from a source to a destination.The idea is to have a "universal" node, able to be a sort of common ground for all the agents that need to cooperate sharing information. Is this possible using simple ROS node/topic tools?The point is, how to identify a method to sort each agent depending on which topic and which messages they use to treat data?
I'm a bit confused as to what you're trying to achieve. Are you trying to build a single controller node that can command different types of robot? This wouldn't necessarily need any new data structures to be created.
Yes my goal would be that, but the node should be able to address the data accordingly with the format used by each different robot. For instance, if i am using a turtlebot, the node should use the cmd_vel topic to send instruction, while if i am using a drone with MAVROS/MAVLink autopilot...
...i will need different topics for the messages exchange. I know this could be achieved writing different python scripts and running them depending on which application i need to use, but i was wondering if the process could be made "automatic", in other words if the node can recognize by itself...
...which method to use to send/collect the data depending on which kind of robot is requesting/posting them