MCPcopy Index your code
hub / github.com/AtsushiSakai/PythonRobotics / get_motion_model

Function get_motion_model

PathPlanning/HybridAStar/a_star.py:169–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168
169def get_motion_model():
170 # dx, dy, cost
171 motion = [[1, 0, 1],
172 [0, 1, 1],
173 [-1, 0, 1],
174 [0, -1, 1],
175 [-1, -1, math.sqrt(2)],
176 [-1, 1, math.sqrt(2)],
177 [1, -1, math.sqrt(2)],
178 [1, 1, math.sqrt(2)]]
179
180 return motion
181
182
183def main():

Callers 1

dp_planningFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected