mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-04-22 03:00:22 -04:00
remove np.matrix
This commit is contained in:
@@ -172,17 +172,17 @@ def main():
|
||||
# goal position [x(m), y(m)]
|
||||
goal = np.array([10, 10])
|
||||
# obstacles [x(m) y(m), ....]
|
||||
ob = np.matrix([[-1, -1],
|
||||
[0, 2],
|
||||
[4.0, 2.0],
|
||||
[5.0, 4.0],
|
||||
[5.0, 5.0],
|
||||
[5.0, 6.0],
|
||||
[5.0, 9.0],
|
||||
[8.0, 9.0],
|
||||
[7.0, 9.0],
|
||||
[12.0, 12.0]
|
||||
])
|
||||
ob = np.array([[-1, -1],
|
||||
[0, 2],
|
||||
[4.0, 2.0],
|
||||
[5.0, 4.0],
|
||||
[5.0, 5.0],
|
||||
[5.0, 6.0],
|
||||
[5.0, 9.0],
|
||||
[8.0, 9.0],
|
||||
[7.0, 9.0],
|
||||
[12.0, 12.0]
|
||||
])
|
||||
|
||||
u = np.array([0.0, 0.0])
|
||||
config = Config()
|
||||
|
||||
Reference in New Issue
Block a user