Localization Protocols
- /localization/data/?
- /localization/data
- /localization
- /localization/{robotId}
- /localization/update/?
- /localization/update
/localization/data/?
Source | Subsystem (Visualizer, Sandbox) |
Destination | Simulator |
Data Type | String |
Message Format | {reality} |
Description |
Subsystems can request robot coordinate details through this topic, with a reality filter.
Simulator will reply coordinate list through the topic /localization/data
|
/localization/data
Source | Simulator |
Destination | Subsystems (Visualizer, Sandbox) |
Data Type | JSON List |
Sample Message |
[
{
"id": "[robotID]",
"x": "[X]",
"y": "[Y]",
"heading": "[heading]",
"reality": [reality]
},
...
]
|
Description |
This is the response to the topic, /localization/data/?,
a list of robot coordinates in requested reality.
|
/localization
Source | Robot ( Physical | Virtual ) |
Destination | Simulator |
Data Type | JSON |
Message Format | [robotId] |
Description |
Both physical and virtual robots can publish into this topic to request their own localization details
from the Simulator. This is mostly used by the hardware robots to correct their internal coordinate variables.
They will receive the results through the topic /localization/{robotId}.
|
/localization/{robotId}
Source | Simulator |
Destination | Robot ( Physical | Virtual ) |
Data Type | JSON |
Message Format | {X} {Y} {heading} |
Description |
Simulator will reply the robots coordinates to the robot that request their own
coordinates. This will be sent as a response to the topic /localization
|
/localization/update/?
Source | Simulator |
Destination | Localization System, Virtual Robots |
Data Type | String |
Message Format | ? |
Description | The simulator can request coordinate details from the Localization System (for physical robots) or Virtual Robots by publishing into this topic. Recomended to use this by Simulation, once it is started. This will receive the response through /localization/update topic. |
/localization/update
Source | Virtual Robots, Localization System |
Destination | Simulator |
Data Type | String |
Message Format |
[
{
"id": "[robotID]",
"x": "[X]",
"y": "[Y]",
"heading": "[heading]",
"reality": [reality]
},
...
]
|
Description |
Subsystems can inform the actual coordinates of the robots to the Simulator using this topic.
Used by Localization System, to send a list of coordinates with "reality": "R", and
Virtual robots to send a single coordinate with "reality": "V"
|