UPMP 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- upmp-0.1.2/.gitignore +10 -0
- upmp-0.1.2/CMakeLists.txt +17 -0
- upmp-0.1.2/PKG-INFO +77 -0
- upmp-0.1.2/README.md +65 -0
- upmp-0.1.2/UPMP/Animation.py +1830 -0
- upmp-0.1.2/UPMP/__init__.py +6 -0
- upmp-0.1.2/UPMP/accessDirectionFixing.py +464 -0
- upmp-0.1.2/UPMP/animation_bridge.py +731 -0
- upmp-0.1.2/UPMP/converter.py +213 -0
- upmp-0.1.2/UPMP/engine_3d/__init__.py +1 -0
- upmp-0.1.2/UPMP/engine_3d/objects/__init__.py +1 -0
- upmp-0.1.2/UPMP/engine_3d/objects/forklift/__init__.py +1 -0
- upmp-0.1.2/UPMP/engine_3d/objects/forklift/fork_addon.py +103 -0
- upmp-0.1.2/UPMP/engine_3d/objects/forklift/forklift_make.py +175 -0
- upmp-0.1.2/UPMP/engine_3d/scene/__init__.py +1 -0
- upmp-0.1.2/UPMP/engine_3d/scene/vtk_scene.py +82 -0
- upmp-0.1.2/UPMP/idaStar.py +22 -0
- upmp-0.1.2/UPMP/route_animation.py +875 -0
- upmp-0.1.2/UPMP/route_cases.py +735 -0
- upmp-0.1.2/UPMP/simple_scene.py +485 -0
- upmp-0.1.2/UPMP/stackAreaGenerator.py +138 -0
- upmp-0.1.2/pyproject.toml +29 -0
- upmp-0.1.2/src/ida_star_cpp.cpp +877 -0
- upmp-0.1.2/tests/deneme.py +11 -0
- upmp-0.1.2/tests/test_import.py +130 -0
- upmp-0.1.2/tida_paralel.cpp +877 -0
upmp-0.1.2/.gitignore
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.15)
|
|
2
|
+
|
|
3
|
+
project(ida_star_cpp LANGUAGES CXX)
|
|
4
|
+
|
|
5
|
+
set(CMAKE_CXX_STANDARD 17)
|
|
6
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
7
|
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
8
|
+
|
|
9
|
+
set(PYBIND11_FINDPYTHON ON)
|
|
10
|
+
find_package(pybind11 CONFIG REQUIRED)
|
|
11
|
+
|
|
12
|
+
pybind11_add_module(ida_star_cpp src/ida_star_cpp.cpp)
|
|
13
|
+
|
|
14
|
+
install(TARGETS ida_star_cpp
|
|
15
|
+
LIBRARY DESTINATION .
|
|
16
|
+
RUNTIME DESTINATION .
|
|
17
|
+
)
|
upmp-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: UPMP
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Parallel IDA* solver written in C++ with pybind11
|
|
5
|
+
Author: Deniz Efe Yildiz
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Requires-Dist: ortools<10,>=9.12
|
|
8
|
+
Provides-Extra: animation
|
|
9
|
+
Requires-Dist: PySide6>=6.6; extra == "animation"
|
|
10
|
+
Requires-Dist: vtk>=9.3; extra == "animation"
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# UPMP
|
|
14
|
+
|
|
15
|
+
Parallel IDA* solver written in C++ with pybind11.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install -e .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```python
|
|
26
|
+
from UPMP import idaStar
|
|
27
|
+
|
|
28
|
+
lanes = [
|
|
29
|
+
[1, 2, 3],
|
|
30
|
+
[1, 2, 3],
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
result = idaStar(
|
|
34
|
+
lanes,
|
|
35
|
+
log_fn=None,
|
|
36
|
+
stop_get_best_fn=None,
|
|
37
|
+
stop_fn=None,
|
|
38
|
+
use_dsg_tiebreak=False,
|
|
39
|
+
num_threads=8,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
print(result)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The native module is still available as `ida_star_cpp` for existing code.
|
|
46
|
+
|
|
47
|
+
## Stack area generation
|
|
48
|
+
|
|
49
|
+
```python
|
|
50
|
+
from UPMP import stackAreaGenerator
|
|
51
|
+
|
|
52
|
+
depo = stackAreaGenerator(
|
|
53
|
+
width=9,
|
|
54
|
+
length=9,
|
|
55
|
+
height=2,
|
|
56
|
+
fill_pct=60,
|
|
57
|
+
access="NSWE",
|
|
58
|
+
max_priority=5,
|
|
59
|
+
seed=123,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
print(depo["priorities"])
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Access direction fixing
|
|
66
|
+
|
|
67
|
+
```python
|
|
68
|
+
from UPMP import accessDirectionFixing, idaStar
|
|
69
|
+
|
|
70
|
+
lanes, lane_matrix = accessDirectionFixing(depo)
|
|
71
|
+
|
|
72
|
+
details, lane_matrix = accessDirectionFixing(depo, return_details=True)
|
|
73
|
+
print(details["lanes"])
|
|
74
|
+
|
|
75
|
+
# lane_matrix is padded to width * length * height slots.
|
|
76
|
+
result = idaStar(lane_matrix)
|
|
77
|
+
```
|
upmp-0.1.2/README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# UPMP
|
|
2
|
+
|
|
3
|
+
Parallel IDA* solver written in C++ with pybind11.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install -e .
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from UPMP import idaStar
|
|
15
|
+
|
|
16
|
+
lanes = [
|
|
17
|
+
[1, 2, 3],
|
|
18
|
+
[1, 2, 3],
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
result = idaStar(
|
|
22
|
+
lanes,
|
|
23
|
+
log_fn=None,
|
|
24
|
+
stop_get_best_fn=None,
|
|
25
|
+
stop_fn=None,
|
|
26
|
+
use_dsg_tiebreak=False,
|
|
27
|
+
num_threads=8,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
print(result)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The native module is still available as `ida_star_cpp` for existing code.
|
|
34
|
+
|
|
35
|
+
## Stack area generation
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from UPMP import stackAreaGenerator
|
|
39
|
+
|
|
40
|
+
depo = stackAreaGenerator(
|
|
41
|
+
width=9,
|
|
42
|
+
length=9,
|
|
43
|
+
height=2,
|
|
44
|
+
fill_pct=60,
|
|
45
|
+
access="NSWE",
|
|
46
|
+
max_priority=5,
|
|
47
|
+
seed=123,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
print(depo["priorities"])
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Access direction fixing
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
from UPMP import accessDirectionFixing, idaStar
|
|
57
|
+
|
|
58
|
+
lanes, lane_matrix = accessDirectionFixing(depo)
|
|
59
|
+
|
|
60
|
+
details, lane_matrix = accessDirectionFixing(depo, return_details=True)
|
|
61
|
+
print(details["lanes"])
|
|
62
|
+
|
|
63
|
+
# lane_matrix is padded to width * length * height slots.
|
|
64
|
+
result = idaStar(lane_matrix)
|
|
65
|
+
```
|