13 lines
510 B
JavaScript
13 lines
510 B
JavaScript
|
|
var SimulationVehicleTable;
|
||
|
|
function Lu_Parse_SimulationVehicleTable(str){
|
||
|
|
if(str==""){
|
||
|
|
str="{\"Default_Charge_NodeID\":0,\"Default_Rest_NodeID\":0,\"AGV_ID\":255}";
|
||
|
|
}
|
||
|
|
SimulationVehicleTable = JSON.parse(str);
|
||
|
|
//console.log(SimulationVehicleTable);
|
||
|
|
var tmp=new Object();
|
||
|
|
tmp.AGV_ID=SimulationVehicleTable.AGV_ID;
|
||
|
|
tmp.Default_Rest_NodeID=SimulationVehicleTable.Default_Rest_NodeID;
|
||
|
|
tmp.Default_Charge_NodeID=SimulationVehicleTable.Default_Charge_NodeID;
|
||
|
|
return tmp;
|
||
|
|
}
|