LSS StateMachine
2017-04-12 23:18:55 0 举报
LSS StateMachine是一种状态机,它是由Lua编程语言编写的。状态机是一种用于描述对象在其生命周期内所经历的状态序列以及如何响应来自外界的各种事件的模型。在LSS StateMachine中,每个状态都是一个表,其中包含有关该状态的信息,例如其名称、转换条件和动作。当对象处于某个状态时,它可以执行与该状态相关联的动作。此外,LSS StateMachine还支持嵌套状态机,这使得您可以更精细地控制对象的行为。总之,LSS StateMachine是一个功能强大且灵活的工具,可用于实现复杂的状态管理逻辑。
作者其他创作
大纲/内容
Motor switch on
LC_laneFollow exitspeed 185kph|| ROC 250m|| handsOff =2|| ~LC_button|| LC_conf =low
2-3:LKA enter
State 3:LKA/ELK
LM confidence logic:one conf = LC_highone conf = LC_midboth conf = LC_midelse = LC_low
LKA exit:speed 185kph|| both side conf 2|| ROC 150m|| handsOff == 2|| ~LKA_Button
1-2:ELK enter
ELK exit:speed 185kph|| both side conf 2|| ROC 150m|| handsOff == 2
4-2:LC exit&& LKA exit&& ~ELK exit
5-3:LC_targetFollow exit&& ~LKA exit
1-3:LKA enter
State 1: LSS_init
State 4:LC_LaneFollowing
5-2:LC_targetFollow exit&& LKA exit && ~ELK exit
3-1:LKA exit&& ELK exit
5-1:LC_targetFollow exit&& LKA exit && ELK exit
4-3:LC exit&& ~LKA exit
State 2:ELK only
1/2/3-5:LC_targetFollow enter
3-2:LKA exit&& ~ELK exit
LC_targetFollow exitspeed 185kph|| ROC 250m|| handsOff =2|| ~LC_button|| LC_conf = low
n
State 5:LC_TargetFollowing
5-4:~LC_laneFollow exit&& LC_conf =high
1/2/3-4:LC_laneFollow enter
2-1:ELK exit
4-5:~LC_laneFollow exit&& LC_conf =mid
2
4-1:LC exit&& LKA exit&& ELK exit
0 条评论
下一页