Files
PathPlanning/Stochastic Shortest Path/__pycache__/motion_model.cpython-37.pyc
T

27 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-06-18 17:08:10 -07:00
B
2020-06-20 19:12:34 -07:00
í¥î^uã@sdZddlZGdddƒZdS)z
2020-06-18 17:08:10 -07:00
@author: huiming zhou
2020-06-20 19:12:34 -07:00
éNc@seZdZddZdddZdS)Ú Motion_modelcCst ||¡|_|j ¡|_dS)N)ÚenvÚEnvÚobs_mapÚobs)ÚselfÚxIÚxG©r
ú_C:\Users\Huiming Zhou\Desktop\path planning algorithms\Stochastic Shortest Path\motion_model.pyÚ__init__
szMotion_model.__init__çš™™™™™É?c Cd||d|dg}g}|dkr.dddg}n2|dkrBdddg}n|dkrVdddg}n
dddg}xL|D]D}|d|d|d|df}||jkr | |¡qf| |¡qfW||fS)
Motion model of robots,
2020-06-18 17:08:10 -07:00
2020-06-20 19:12:34 -07:00
:param x: current state (node)
:param u: input
:param obs: obstacle map
:param eta: noise in motion model
:return: next states and corresponding probability
éé)rr)éÿÿÿÿr)rr)rrr)rÚappend) rÚetaÚp_nextÚx_nextZu_realZactZx_checkr
r
r Ú move_nexts    
2020-06-18 17:08:10 -07:00

2020-06-20 19:12:34 -07:00
 
 zMotion_model.move_nextN)r
)Ú__name__Ú
__module__Ú __qualname__r rr
r
r
r r sr)Ú__doc__rrr
r
r