Skip to content

I dont find Road api's specific parameter options and traffic light api in BeamNGpy documentation. #272

Open
@lsm2842035890

Description

@lsm2842035890

①I want to know what the options are for declaring the first parameter 'material' of a road. Where can I refer to this?In BeamNGpy documentation,i dont find Road api's specific parameter options.
②I want to set double yellow solid lines and white dotted lines on the roads I added. How should I set them to simulate real roads?

        right_marking = Road('line_white', rid='right_white')
        right_marking.nodes.extend(right_marking_nodes)
        scenario.add_road(right_marking)
    
        left_marking = Road('line_white', rid='left_white')
        left_marking.nodes.extend(left_marking_nodes)
        scenario.add_road(left_marking)

The method shown in the code assumes that the solid yellow and dashed white lines are replaced by very thin yellow and white roads.
Is there any other way to achieve this function?
③Is there any api to set traffic lights.
my version:BeamNGpy==1.28 BeamNG==0.31.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions