Implemented parsing of keep statements and struct variables.
Just like:
# 设置速度 speed_a: velocity keep (default speed_a == 30kph)struct weather: fog: fog rain: precipitation struct precipitation: intensity: velocity struct fog: visual_range: length # 设置天气 w: weather keep(w.fog.visual_range == 150m) # 能见度 keep(w.rain.intensity == 10mps) # 降水量
Now the system can correctly recognize the meaning of this sentence. Next, we can call Carla's API to extend the Domain model.
Description
Implemented parsing of keep statements and struct variables. Just like:
# 设置速度 speed_a: velocity keep (default speed_a == 30kph)
struct weather: fog: fog rain: precipitation struct precipitation: intensity: velocity struct fog: visual_range: length
# 设置天气 w: weather keep(w.fog.visual_range == 150m) # 能见度 keep(w.rain.intensity == 10mps) # 降水量
Now the system can correctly recognize the meaning of this sentence. Next, we can call Carla's API to extend the Domain model.Where has this been tested?