From 2ce2a01b243a4d2ede1b9a6f841b82112a8b02b4 Mon Sep 17 00:00:00 2001 From: 391311qy <391311qy@gmail.com> Date: Thu, 25 Jun 2020 18:55:55 -0700 Subject: [PATCH] rrt3D fin, prep A* --- .../rrt_3D/__pycache__/utils3D.cpython-37.pyc | Bin 5347 -> 5349 bytes Sampling-based Planning/rrt_3D/rrtstar3D.py | 28 ++-- Sampling-based Planning/rrt_3D/utils3D.py | 2 +- Search-based Planning/3D/env3D.py | 49 +++++++ Search-based Planning/3D/plot_util3D.py | 137 ++++++++++++++++++ 5 files changed, 198 insertions(+), 18 deletions(-) create mode 100644 Search-based Planning/3D/env3D.py create mode 100644 Search-based Planning/3D/plot_util3D.py diff --git a/Sampling-based Planning/rrt_3D/__pycache__/utils3D.cpython-37.pyc b/Sampling-based Planning/rrt_3D/__pycache__/utils3D.cpython-37.pyc index e80d2483c6b7ac7bc7c1caf38f06b5b8cd8d4ce2..530e52aed392b15bbdcdd71df5b2a33e22f530fa 100644 GIT binary patch delta 52 zcmaE?`BanFiI np.pi/2: + # upside down + V = np.array((0, 0, -1)) + else: + V = np.array((0, 0, 1)) + zfront, zback = -self.dist *ratio, self.dist *ratio + + viewM = proj3d.view_transformation(E, R, V) + perspM = proj3d.persp_transformation(zfront, zback) + M0 = np.dot(viewM, np.dot(aspectM, worldM)) ## + M = np.dot(perspM, M0) + return M + return get_proj \ No newline at end of file