Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lsm2842035890 opened this issue May 13, 2024 · 0 comments

Comments

@lsm2842035890
Copy link

①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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant