robots-gui unix /tmp/ecran.sock [debug]
robots-gui inet 9000 [debug]
- Query
{
"action": "SET_PARAMS",
"data": {
"name": "Nerell",
"primary": true,
"teams": {
"BLEU": "#00f",
"JAUNE": "#0ff"
},
"strategies": [
"BASIC",
"AGRESSIVE"
],
"options": [
"option1",
"option2"
]
}
}
- Réponse
{
"status": "OK",
"action": "SET_PARAMS",
}
- Query
{
"action": "UPDATE_STATE",
"data": {
"au": true,
"message": "Démarrage",
"i2c": true,
"alim12v": true,
"alim5vp": true,
"tirette": true,
"lidar": true,
"balise": true,
"otherRobot": true,
// si non primary
"team": "JAUNE",
"strategy": "BASIC",
"options": {
"option1": true,
"option2": false
}
}
}
- Réponse
{
"status": "OK",
"action": "UPDATE_STATE"
}
- Query
{
"action": "GET_CONFIG"
}
- Réponse
{
"status": "OK",
"action": "GET_CONFIG",
"data": {
"team": "JAUNE",
"strategy": "BASIC",
"exit": false,
"twoRobots": true,
"safeAvoidance": true,
"startCalibration": false,
"modeManuel": false,
"skipCalageBordure": false,
"updatePhoto": false,
"options": {
"option1": true,
"option2": false
}
}
}
- Query
{
"action": "UPDATE_MATCH",
"data": {
"score": 90,
"message": "Fin de match"
}
}
- Réponse
{
"status": "OK",
"action": "UPDATE_MATCH"
}
- Query
{
"action": "UPDATE_PHOTO",
"data": {
"message": null,
"photo": "jpeg en base64 sans l'en-tete"
}
}
- Réponse
{
"status": "OK",
"action": "UPDATE_PHOTO"
}