久章智能JZLOG
产品接口 · API · 公众号原文

三维装箱API调用

久章团队最近做了一个三维装箱小程序的API调用接口。现开放测试,欢迎测试、使用。

久章团队最近做了一个三维装箱小程序的API调用接口。现开放测试,欢迎测试、使用。

方式1:

Linux下执行命令:

$ curl -X POST -H "Content-Type: application/json" http://47.103.101.234:3565/packing3d -d @./test_input.json

方式2:

使用一个RestFul API 小工具:

http://47.103.101.234:3565/packing3d

输入:

"boxes": {

"4409": { "l": 293, "w": 293, "h": 137},

"9094": { "l": 293, "w": 243, "h": 212},

"200011152": { "l": 285, "w": 165, "h": 137},

"200011153": { "l": 255, "w": 125, "h": 150}

},

"orders": {

"SO17": {

"sku1": { "num": 1, "l": 55, "w": 55, "h": 180},

"sku2": { "num": 1, "l": 180, "w": 55, "h": 55},

"sku3": { "num": 1, "l": 50, "w": 50, "h": 185}

},

"SO54": {

"sku4": { "num": 1, "l": 53, "w": 53, "h": 64},

"sku5": { "num": 3, "l": 130, "w": 55, "h": 40},

"sku6": { "num": 5, "l": 145, "w": 145, "h": 35}

输出:

{"placements": {"SO17": {"status": 1, "box": "200011153", "items": {"sku1/1": {"anchor_x": 8, "anchor_y": 56, "anchor_z": 64, "rotation": 2, "rotated_l": 180, "rotated_w": 55, "rotated_h": 55}, "sku2/1": {"anchor_x": 57, "anchor_y": 0, "anchor_z": 11, "rotation": 0, "rotated_l": 180, "rotated_w": 55, "rotated_h": 55}, "sku3/1": {"anchor_x": 10, "anchor_y": 3, "anchor_z": 69, "rotation": 2, "rotated_l": 185, "rotated_w": 50, "rotated_h": 50}}}, "SO54": {"status": 1, "box": "4409", "items": {"sku4/1": {"anchor_x": 200, "anchor_y": 0, "anchor_z": 69, "rotation": 0, "rotated_l": 53, "rotated_w": 53, "rotated_h": 64}, "sku5/1": {"anchor_x": 53, "anchor_y": 199, "anchor_z": 0, "rotation": 0, "rotated_l": 130, "rotated_w": 55, "rotated_h": 40}, "sku5/2": {"anchor_x": 219, "anchor_y": 127, "anchor_z": 72, "rotation": 2, "rotated_l": 40, "rotated_w": 130, "rotated_h": 55}, "sku5/3": {"anchor_x": 13, "anchor_y": 126, "anchor_z": 2, "rotation": 2, "rotated_l": 40, "rotated_w": 130, "rotated_h": 55}, "sku6/1": {"anchor_x": 3, "anchor_y": 0, "anchor_z": 64, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/2": {"anchor_x": 19, "anchor_y": 3, "anchor_z": 99, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/3": {"anchor_x": 148, "anchor_y": 1, "anchor_z": 8, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/4": {"anchor_x": 2, "anchor_y": 148, "anchor_z": 64, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}, "sku6/5": {"anchor_x": 5, "anchor_y": 148, "anchor_z": 99, "rotation": 0, "rotated_l": 145, "rotated_w": 145, "rotated_h": 35}}}}}

链接:https://pan.baidu.com/s/1s3-MTV5MKwjNIad0XLtTuQ?pwd=2309

提取码:2309

POST BOY : Restful API 调试工具:

https://www.cnblogs.com/tonymu/p/4213094.html

本文转载自久章智能微信公众号(原文发布于 2023-09-11),内容保持原貌。扫码关注公众号「久章智能」,第一时间获取智能决策系列文章。阅读原文 ↗