Skip to content

Commit

Permalink
Merge branch '0.30' into 'master'
Browse files Browse the repository at this point in the history
0.30

See merge request beamng/beamngpy!2
  • Loading branch information
Adam Ivora committed Oct 2, 2023
2 parents 656b09c + ca9b5c6 commit d9ff993
Show file tree
Hide file tree
Showing 50 changed files with 3,023 additions and 929 deletions.
50 changes: 50 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,56 @@
Changelog
=========

Version 1.27
============

- New features

- `GPS <beamngpy.html#gps>`__ sensor added

- check the `documentation <beamngpy.html#gps>`__ or the ``GPS_trajectory.py`` `example script <https://github.com/BeamNG/BeamNGpy/tree/master/examples/GPS_trajectory.py>`__ for more information on usage

- `RoadsSensor <beamngpy.html#roads-sensor>`__ sensor added
- `IdealRadar <beamngpy.html#ideal-radar>`__ sensor added
- RADAR sensor now reads the Doppler velocity from vehicles in the simulation as well as static objects.
- BeamNGpy now fully supports loading existing missions and Flowgraph scenarios. Look into the `Scenario loading <https://github.com/BeamNG/BeamNGpy/tree/master/examples/scenario_loading.ipynb>`__ example notebook to learn more.
- Beam stresses added as a mode to the ``AdvancedIMU`` sensor.
- Camera, Lidar, and Radar sensor readings can now be streamed directly to shared memory in BeamNGpy, using dedicated ``stream()`` functions now found in the respective BeamNGpy sensor classes. This represents an alternative to the polling method used previously.

- BeamNGpy projects updated for latest BeamNG.tech version

- `Impactgen <https://github.com/BeamNG/impactgen>`__: A script to generate various vehicle impact scenarios and output surround views of the affected vehicle in color and semantically annotated images.
- `BeamNG.gym <https://github.com/BeamNG/BeamNG.gym>`__: A collection of Gymnasium environments that cover various driving tasks simulated in BeamNG.tech.

- API changes

- Relative camera interface changed to use vectors instead of quaternions.
- Changed the input and output types of the ``BeamNGpy.scenario.get_scenarios`` function:

- the ``levels`` argument is now a list of level names or instances of the Level class to get scenarios for
- the return value is now a dictionary where the keys are the level names, and the values are lists of scenarios for the given level
- Removed the ``level`` argument of ``BeamNGpy.scenario.get_current``, as the level information is now queried from the simulator.
- Function added to the ``Vehicle`` class to deflate vehicle tires, e.g. to simulate tire blowout.

- Bugfixes

- Fixed a bug where loading a BeamNGpy scenario could cause an infinite-loading screen glitch.
- Fixed the ``Mesh`` sensor not working.
- Part annotations for vehicles are working again.
- Bug fixed when using multiple ultrasonic sensors, where the first sensor would not update in simulator.
- Bug fixed when using ultrasonic sensor, relating to failure to detect at some angles to surfaces
- Bug fixed with ultrasonic sensor, relating to typos in parameter names, rendering some parameters unusable from BeamNGpy.
- Bug fixed with ``AdvancedIMU`` sensor, when using gravity. Did not work from BeamNGpy before.
- Bug fixed with ``AdvancedIMU`` sensor, relating to the smoothing not working from BeamNGpy.
- Bug fixed with the relative camera, which was not operating correctly.

- Miscellaneous

- The physics update rate of BeamNG.tech launched from BeamNGpy is being changed from 4000 to 2000 times per second to be consistent with the default for the simulator. To change the physics update rate to a different value, you can pass the ``-physicsfps <DESIRED_VALUE>`` argument to the simulator binary.
- Scenarios created using BeamNGpy are now using the JSON format for prefab generation instead of the old TorqueScript format.
- BeamNG.tech connection to the simulator is now by default listening on the local interface only (``127.0.0.1``). You can change it to listen on other IP addresses by using the ``listen_ip`` argument in the ``BeamNGpy.open`` function, or the ``-tcom-listen-ip`` command-line argument, if you are not launching BeamNG.tech using BeamNGpy.
- Optimized Python processing of the depth camera image (thanks for the `contribution <https://github.com/BeamNG/BeamNGpy/pull/229>`__!)

Version 1.26.1
==============

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ However we do not maintain minor versions: bug fixes and new features will only

| BeamNG.tech version | BeamNGpy version |
| ------------------- | --------------------------------------------------------- |
| 0.30 | [1.27](https://github.com/BeamNG/BeamNGpy/tree/v1.27) |
| 0.28, 0.29 | [1.26.1](https://github.com/BeamNG/BeamNGpy/tree/v1.26.1) |
| 0.27 | [1.25.1](https://github.com/BeamNG/BeamNGpy/tree/v1.25.1) |
| 0.26 | [1.24](https://github.com/BeamNG/BeamNGpy/tree/v1.24) |
Expand Down
18 changes: 18 additions & 0 deletions docs/source/beamngpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,30 @@ Radar
:members:
:undoc-members:

Ideal Radar
^^^^^^^^^^^
.. autoclass:: beamngpy.sensors.IdealRadar
:members:
:undoc-members:

Mesh Sensor
^^^^^^^^^^^
.. autoclass:: beamngpy.sensors.Mesh
:members:
:undoc-members:

GPS
^^^
.. autoclass:: beamngpy.sensors.GPS
:members:
:undoc-members:

Roads Sensor
^^^^^^^^^^^^
.. autoclass:: beamngpy.sensors.RoadsSensor
:members:
:undoc-members:

Classical Sensors
-----------------

Expand Down
Loading

0 comments on commit d9ff993

Please sign in to comment.