World_openengine module

used to describe the open engine world

class World_openengine.Intersection(intersection, world)

Bases: object

Intersection Description

observe()
Returns

psedo_step(action=None)
Parameters

action

Returns

reset()
Returns

class World_openengine.World(citypb_config, thread_num)

Bases: object

Create an engine and maintain infromations about world

get_average_travel_time()
Returns

get_cur_phase()
Returns

get_cur_throughput()
Returns

get_info(info)
Parameters

info

Returns

get_lane_delay()
Returns

get_lane_queue_length()
Returns

get_lane_vehicle_count()
Returns

get_lane_vehicles()
Returns

get_lane_waiting_time_count()
Returns

get_lane_waiting_vehicle_count()
Returns

get_pressure()
get_vehicles()
reset()
Returns

step(action=None)

take one step forward base on the input action :param action: :return:

subscribe(fns)
Parameters

fns

Returns