...
const settings = {
"settings": {
"_id": "668b47444242e2e435ba9020",
"animation": {
"fhAnimation": {
"switch": false
},
"scAnimation": {
"switch": false
},
"sleepAnimation": {
"switch": 113
},
"xyAnimation": {
"switch": false
},
"ylAnimation": {
"switch": false
}
},
"basic": {
"adminPass": "9999",
"char": "6643352e7fe5260984536181",
"currenttab": 0,
"door": "6643352ea3f5a3ca0463968f",
"fontSize": 0,
"fullCharBackRange": [],
"language": 1,
"model": [0, 1, 2, 3, 4, 5],
"runMode": 2,
"standby": "666fdf9ee85100f753742ddc",
"welcomeId": "6673af301a0a606b23e96508",
"welcomeModel": false,
"welcomePlayId": 1
},
"buildingId": "60a4c374059acc6c8bdff074",
"businessId": "66432c72db3008878c5dd83c",
"carId": "2582311102392CA",
"createTime": 1720403780458,
"cruise": {
"countdownSwitch": false,
"speed": 55,
"standbyTime": 2
},
"delivery": {
"countdownSwitch": false,
"errorTraywarn": false,
"isLimitRotationSpeed": 0,
"isLineCall": false,
"isReturn": true,
"isShelfTracking": false,
"moderate": 0.5,
"moderateSwitch": true,
"openSmartswitch": true,
"pallet": [19, 19, 19, 19],
"pauseDuration": 26,
"runSpeed": 67,
"smartList": [0, 1, 2, 3],
"stopDuration": 15
},
"disinfectMode": 1,
"followSetting": {
"max_angular_acc": 1.5,
"max_angular_velocity": 1.5,
"max_forward_acc": 0.6,
"max_forward_velocity": 0.6
},
"footprint": [
[-0.301, -0.344],
[-0.301, 0.345],
[-0.289, 0.392],
[-0.268, 0.422],
[-0.238, 0.442],
[-0.132, 0.49],
[0.132, 0.49],
[0.238, 0.442],
[0.268, 0.422],
[0.289, 0.392],
[0.301, 0.345],
[0.301, -0.344],
[0.296, -0.38],
[0.274, -0.419],
[0.244, -0.456],
[-0.244, -0.456],
[-0.274, -0.419],
[-0.296, -0.38],
[-0.301, -0.344]
],
"forceBattery": 10,
"gearMode": 2,
"lightStrip": {
"arriveState": {
"lightColor": 5,
"lightType": 3
},
"chargingState": {
"lightColor": 3,
"lightType": 4
},
"errorState": {
"lightColor": 1,
"lightType": 2
},
"idleState": {
"lightColor": 4,
"lightType": 4
},
"lightStripSwitch": true,
"taskState": {
"lightColor": 4,
"lightType": 1
}
},
"lowBattery": 15,
"otherSetting": {
"footprint": [
[-0.301, -0.344],
[-0.301, 0.345],
[-0.289, 0.392],
[-0.268, 0.422],
[-0.238, 0.442],
[-0.132, 0.49],
[0.132, 0.49],
[0.238, 0.442],
[0.268, 0.422],
[0.289, 0.392],
[0.301, 0.345],
[0.301, -0.344],
[0.296, -0.38],
[0.274, -0.419],
[0.244, -0.456],
[-0.244, -0.456],
[-0.274, -0.419],
[-0.296, -0.38],
[-0.301, -0.344]
],
"forceBattery": 10,
"lightStrip": {
"arriveState": {
"lightColor": 5,
"lightType": 3
},
"chargingState": {
"lightColor": 3,
"lightType": 4
},
"errorState": {
"lightColor": 1,
"lightType": 2
},
"idleState": {
"lightColor": 4,
"lightType": 4
},
"lightStripSwitch": true,
"taskState": {
"lightColor": 4,
"lightType": 1
}
},
"lowBattery": 15,
"skipPtDelay": 1800
},
"playLanguage": 1,
"routeMode": 1,
"runMode": 2,
"skipPtDelay": 1800,
"skipPtMode": 1,
"sound": {
"avoidVolume": 20,
"musicFile": "3111502",
"musicFileName": "Minuet",
"musicVolume": 10,
"switchon": true,
"systemVolume": 20,
"voiceVolume": 20
},
"speedMode": 2,
"sprayMode": 1,
"taskId": "07005148-f47b-4abd-a63f-e42ab0be657b",
"updateTime": 1721011302537,
"voiceMode": 5,
"voicePercent": 60
}
}
const saveResult = await axRobot.saveRobotSetting(setting);
console.log(saveResult); // 操作结果
...