AGV-communication

Combined with map designer plug-in

1.agv_register:

register channel

Request->Response

{"Params": 
{"UserName":"admin","Password":"123456"},
"ID": "1","Action": "agv_register"}
FieldDescriptionTypeRemarks
UserNameUserNamestring
PasswordPasswordstring

2.agv_move_new:

Control AGV movement

Request->Response

{"Params": 
{"command":1,"row":4,"column":2,"floor":1,"code":"AGV001"},
"ID": "1","Action": "agv_move_new"}
FieldDescriptionTypeRemarks
commandcommandintleft = 1
right= 2
up=3
down=4
move=5
rotate=6
charge=7
change_floor=8
rowrowint
columncolumnint
floorfloorint
codeagv codestring

3.agv_map:

get floor map information

Request->Response

{"Params": {"Floor":1},
"ID": "1","Action": "agv_map"}
FieldDescriptionTypeRemarks
FloorFloorint

4.agv_allcars:

Get all agv information

:Request->Response

{"Params": {},"ID": "1",
"Action": "agv_allcars"}

5.agv_move:(callback)

This command is actively sent by the server to the clien (server->client)

callback

Return Data Structure:

{"errCode":0,"errText":"",
"params":{"Source":"ControlCommand",
"Result":{"code":"AGV002","command":4,
"floor":1,"startPoint":"106.25,256.25",
"endPoint":"106.25,306.25","distance":1.0,
"power":"99"}},
"ID":"edea4852-7c0e-405e-97d4-6f308fec71bc",
"Action":"agv_move"}
FieldDescriptionTypeRemarks
codeAGV CODEstring
commandAGV COMMANDintleft = 1
right= 2
up=3
down=4
move=5
rotate=6
charge=7
change_floor=8
floorfloorint
startPointstartPointpoint
endPointendPointpoint
distancedistancedoubleseconds
powerpowerfloat