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

BeamNGpy should provide a way to query simulations state/objects #22

Closed
alessiogambi opened this issue May 13, 2019 · 1 comment
Closed

Comments

@alessiogambi
Copy link
Contributor

Examples:

  • Which cars are in the simulation?
  • Which waypoints are in the simulation?

Possibly navigational data of some sort:

  • Which streets/roads/etc are in the simulation?
@Palculator
Copy link
Contributor

There is now a general low-level method to find objects of any time in the simulation using the class name ingame: https://beamngpy.readthedocs.io/en/latest/api/beamngpy.html#beamngpy.beamng.BeamNGpy.find_objects_class

When you check objects in the F11 editor ingame, you can see that, for example, waypoints have the class BeamNGWaypoint. To find these, you could call this method with this class name as the parameter. The same goes for other object. In addition, I've added little helper functions to the scenario class for commond types like the waypoint.

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

2 participants