Skip to content

Hoodster/BeamNG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Reference

Setup BeamNG environment

  setup_beamng(bng, scenario, vehicle, obstacles)
Parameter Type Description
bng BeamNGpy Required. BeamNG instance
scenario Scenario Required. Scenario instance
vehicle Vehicle Required. Vehicle instance
obstacles [ScenarioObject] Additional elements like walls, curbs or poles. See ScenarioObject.

Orchiestrates vehicle, scenario, all other objects into BeamNGpy instance.

Run simulation

  simulate_motion(simulation_name, pos, quat_rot, opt_forward, opt_backward)
Parameter Type Description Default value
simulation_name str Required. Name of simulation
pos Float3 Required. Position (x,y,z) of vehicle
quat_rot (double, double, double, double) Required. Vehicle rotation
opt_forward dict[] Drive forward settings {'throttle': THROTTLE, 'distance': DISTANCE, 'gear': 2}
opt_backward dict[] Drive backward settings {'throttle': THROTTLE, 'distance': DISTANCE * 2, 'gear':-1}

Teleports map of given pos and rotation by given distance with speed (throttle). Later saves and exports results from ultrasonic sensors to "sensor_data_{simulation_name}.csv" file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages