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

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-06-18 17:08:10 -07:00
B
2020-06-21 21:57:29 -07:00
Š9ð^ýã@sddlZGdddƒZdS)éNc@seZdZddZdddZdS)Ú Motion_modelcCst ||¡|_|j ¡|_dS)N)ÚenvÚEnvÚobs_mapÚobs)ÚselfÚxIÚxG©r
úT/home/zhou/Program/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
2020-06-20 19:12:34 -07:00
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
2020-06-21 21:57:29 -07:00
r Ú move_next s    
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
2020-06-21 21:57:29 -07:00
r
2020-06-20 19:12:34 -07:00
r rsr)rrr
r
2020-06-21 21:57:29 -07:00
r