Commit Graph

223 Commits

Author SHA1 Message Date
Marcel Pi 182a48a2f9
Marcel/empty gbuffer fix (#6013)
* Change handling of empty gbuffers.

Now, instead of sending an empty image, a black one with the size of the viewport is sent if the target gbuffer is unavailable.

* Add more GBufferID checks + improve empty gbuffer handling.

* Fix manual_control_gbuffer.py error on repeated listen_to_gbuffer.

* Expose is_listening and is_listening_gbuffer to the PythonAPI.

* Fix data race + autoremove unused gbuffers in manual_control_gbuffer.

* Update PythonAPI docs.

* Remove magic number.

* Switch from error to warning on invalid sensor type when requesting gbuffers.
2022-12-07 18:51:17 +01:00
Marcel Pi a152863b11
Merge GBuffer features. (#5960)
* Add Misc/GBuffer

* Add EnqueueRenderSceneImmediateWithGBuffer.

* Modified ASceneCaptureSensor to allow gbuffer recording.

* Minor GBuffer progress.

* More GBuffer changes.

* Removed unnecessary files.

* Add FRHITexture* functions to FPixelReader + temporarily disabled non-gbuffer rendering in ASceneCaptureSensor.

* Add missing FPixelReader functions.

* Minor changes (Switching to Windows).

* Remove FRHITexture functions from FPixelReader, added the file ImageUtil.

* Remove FRHITexture functions from FPixelReader, added the file ImageUtil. (2)

* Added API to listen GBuffer data.

* Added gbuffer serializer classes

* Temporarily remove ViewRect hack.

* Add USceneCaptureComponent* derived classes.

* Disable USceneCaptureComponent*_CARLA and add initial FRHIGPUTextureReadBack-based code.

* Fix and re-enable custom SceneCaptureComponents.

* Fully switch to FRHIGPUTextureReadback.

* Remove unnecessary call to FlushRenderingCommands.

* Minor API changes.

* Add support for PF_DepthStencil in ImageUtil.

* More API progress...

* More API progress... (2)

* Removed testing code.

* Minor changes for testing.

* GBuffer API fixes.

* Improve GBuffer capture code.

* Fixed SceneDepth transfer issues and added SceneStencil, CustomDepth and CustomStencil to the GBuffer capture.

* Fix compilation error due to the usage of C++17 features.

* Removed major memory leak and added manual_control_gbuffer.py.

* Fixed a silly mistake.

* Minor changes to manual_control_gbuffer and SceneCaptureSensor.

* Fix compilation error on some versions of Ubuntu.

* Disable TAA when reading GBuffers to avoid jitter.

* Improve memory usage.

* Progress towards automatically detecting when a GBuffer stream is unused.

* Fix includes in SceneCaptureSensor + minor change in manual_control_gbuffer.py

* Progress on automatically detecting which GBuffers aren't needed.

* Remove unneeded __declspec.

* Revert ASensor changes + fix tutorial_gbuffer.py

* Update CHANGELOG.md

* Apply requested changes for the PR, add gitignore for the file OptionalModules.ini and add a GBufferTextureID enum to the Python API.

* Remove OptionalModules.ini.

* Fix indentation.

* Fix indentation (2).

* Fix indentation (3).

* Add documentation and more indentation fixes.

* Remove commented includes.

* Add missing line break.

* Fix memory leak + remove unneeded files.

* Add .uproject again, fix EngineAssociation.

* Remove unneeded ENQUEUE_RENDER_COMMAND.

* Fix manual_control_gbuffer.py.

* Add `stop_gbuffer` to the Python API.

* Minor fixes.

* Fix performance bug.

Previously, when a client requested a gbuffer that is unused it would stay open, even after stopping it explicitly. This commit fixes this issue.

* Fix indentation.

* Add missing braces, more indentation fixes and simplify some of the code.

* Update sensor.yml docs.

* Update docs.

* Remove unnecessary UE_Log + changed one verbosity level.

Co-authored-by: Axel <axellopez92@outlook.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
2022-11-29 11:24:26 +01:00
MattRowe18 a4f5c26efa added extra traffic manager functions 2022-10-17 16:18:24 +02:00
bernatx e9a7c321cd Adding new attachment type 'SpringArmGhost' 2022-09-28 13:54:04 +02:00
Joel Moriana 480c50e851 Added lane offset parameter 2022-07-22 09:29:08 +02:00
glopezdiest a649c67d7e
Added failure states for vehicles (#5410)
* Added failure states for vehicles

* Added missing endline
2022-05-16 21:55:19 +02:00
Marcel Pi 139041fd7f
Improvements to the dust_storm weather parameter. (#5388)
* Switched DustStorm parameter from bool to float.

* Automatically detect clang version.

* Revert "Automatically detect clang version."

This reverts commit 4ac1c95c26.

* Update environment.py weather presets.

* Expose dust_storm console command in environment.py + documentation.

* Fix minor DustStorm preset error.

* Update CHANGELOG.md
2022-04-27 12:52:25 +02:00
glopezdiest 5003e58d7c
New ConstantVelocityAgent and TM parameter (#5290) 2022-04-20 14:44:27 +02:00
glopezdiest 8d5204e048
Added set_day_night_cycle parameter (#5322) 2022-04-13 18:25:46 +02:00
Jacopo Bartiromo 2d8d738c33 Merge commit 2021-11-09 12:25:37 +01:00
Axel b2b27175c4 Added documentation 2021-11-09 00:01:30 +01:00
bernatx 5864183fbc Adding documentation for the new function 2021-11-05 18:49:11 +01:00
berndgassmann 6fc187f4b3
RssSensor fixes (#4604)
* RssSensor fixes

RssSensor:
- make client side calculations threaded to ensure it is not
incrementally delaying the whole client
- support multiple instances of RssSensor
- initialize _last_processed_frame properly

RssRestrictor:
- enable python set_log_level

General:
- Update to RSS v4.4.2 and map v2.4.5_hotfix supporting elevation
- manual_control_rss: enalbe dynamics log level switching

* Update to ad-rss-lib 4.4.3

* really go to ad-rss-lib 4.4.3
2021-11-05 18:12:49 +01:00
bernatx 115fe2d915 Fixing docs 2021-11-05 16:29:36 +01:00
Luca 85da613f51
Vehicle lights state in traffic manager (#4717)
* added vehicle lights stage to the traffic manager under the dev branch

* update CHANGELOG to lastest version and added vehicle lights stage for automatically turn on-off lights

* added vehicle lights stage to the traffic manager under the dev branch

* removed commented code

* cleanups to the code, adding some comments to explain how the trafficmanagerlocal handles the command buffer

* fixing missing reference in ALSM constructor, disabling vehicle light state for dormant vehicles

* bugfix in vehicle_id_list access, added fix to avoid blinking brake lights due to throttle control

* requested changes in the vehicle light stage code

* missing namespace qualifier for constants

* Added explicit method to enable the vehicle lights management by the TM, on a per-vehicle basis. Changed generate_traffic.py to use the new vehicle lights stage instead of just setting a fixed, constant vehicle light status. Docs are updated, accordingly.

Co-authored-by: npunito <npunito>
Co-authored-by: Jacopo Bartiromo <32928804+jackbart94@users.noreply.github.com>
2021-10-28 16:09:14 +02:00
Daniel Santos-Olivan 6e1737ecc6 Added documention for door opening/closing 2021-09-16 11:28:46 +02:00
Guillermo f90c2c6123 Added ymls and Cross C++ function 2021-08-07 17:43:38 +02:00
corkyw10 dca7cc3f8d updated Index page, rearranged nav bar, corrected links to broken images, corrected default settings for wheel physics, added anysys rtr information 2021-07-30 12:48:32 +02:00
Corinne 293dad7923
Corkyw10/docs fix typos links (#4243)
* Fixed typo in code snippet. Swapped order of altitude and azimuth

* Fixed image links that needed '../' prefix to be visible on the live documentation

* Removed reference to velocity being affected 2 frames after it is set

* Updated Python API with missing 'set_pedestrians_cross_factor' method

* Regenerated python_api.md
2021-07-29 18:32:36 +02:00
Corinne 4a8342fae1
[NO_BUILD] Missing Python API docs (#4453)
* Adding pythonapi methods

* Added missing Python API methods

* Further missing methods added

* Mssing get_crosswalks method added

* Correction to set gravity method and command
2021-07-29 16:21:02 +02:00
corkyw10 29dbb790d7 Typo fix 2021-07-28 18:11:37 +02:00
Axel eeeba37ec7 Added `center_map` entry to osm2odr documentation 2021-07-28 18:11:37 +02:00
corkyw10 4c088d3725 Created links in markdown and corrected typo 2021-07-28 18:11:37 +02:00
Axel 4d2e40a59a Updated documentation and changelog 2021-07-28 18:11:37 +02:00
Daniel Santos-Oliván 6090344a00 Update docs
Added PythonAPI methods:
 - show_debug_telemetry()
 - ApplyVehiclePhysicsControl command
2021-07-23 10:34:54 +02:00
Corinne 458fddb9b8
[NO_BUILD] Traffic Manager Updates (#4368)
* Updated name of spanw_npc script

* Traffic manager updates for large maps, generate traffic and deterministic mode.

* Changed reference to back spawn_npc for generate data tutorial as it specifies that it is based on carla 0.9.8

* Corrected min respawn distance
2021-07-15 10:56:45 +02:00
Axel d93aaf7624 Updated optical flow documentation. Added OpticalFlowPixel class. 2021-06-22 11:01:53 +02:00
corkyw10 1091bc5676 Moved horizontal_fov variables to sensor ref blueprint tables. Corrected values in Python API. 2021-05-20 16:33:27 +02:00
corkyw10 e786b9179a Updated PythonAPI with new WheelPhysicsControl values and Lidar/Semantic Lidar values. Fixed bug where 'inherited from' links were broken in API docs. Updated code snippet in tutorial 'control vehicle physics' 2021-05-20 16:33:27 +02:00
Corinne cec8fd90ae
Corkyw10/chrono docs (#4160)
* Added Chrono Integration page to navigation

* Initial draft of Chrono documentation

* Added Python API information for enable_chrono_physics. Made some syntactical changes to first draft of Chrono docs.

* Made the forward slash character in PythonAPI stand out. Added link to Actor class in the Chrono doc.

* Added manual_control_chrono.py to PythonAPI/examples

* Edited chrono torial. Edited changelog.

Co-authored-by: Axel <axellopez92@outlook.com>
2021-05-07 15:16:32 +02:00
corkyw10 e7f020e5d2 Updated PythonAPI docs for set_wheel_steer_direction, get_wheel_steer_angle and VehicleWheelLocation. Added snippet for set_wheel_steer_direction 2021-04-19 10:49:31 +02:00
Axel a0c15d9649 Edited changelog and documentation. 2021-04-01 12:32:30 +02:00
corkyw10 483107f7f6 Typo fixes in TM docs and corrected default radius of set_hybrid_physics_radius 2021-03-18 09:52:41 +01:00
corkyw10 492b477ae0 Corrected typo for set_hybrid_physics_radius in Python API, corrected reference in TM docs and removed reset_traffic_lights from Python API reference. 2021-03-18 09:52:41 +01:00
corkyw10 4233fe9310 Added information to alert the user that the 'Latest' version of the documentation points to branch and may show features that are not available in any packaged versions of carla as well as updated and improved docs 2021-03-15 15:43:15 +01:00
corkyw10 e18054597a Added extra line to bottom of snippets, updated unload and load map layers snippets to show maps being loaded with differents layers staright away, added info about minimum layout to core maps and Python API warning for load and unload maps. 2021-02-12 18:12:53 +01:00
corkyw10 fe1472ca6e Add code snippets to Python API for toggling env objects and map layers. Corrected spelling of snippets on buttons and headers 2021-02-12 18:12:53 +01:00
corkyw10 ee1fc07caa Included DVS sensor in Core sensors page, fixed some links in Python API and added info about when DVS will not return an image 2021-02-09 14:50:25 +01:00
corkyw10 81afb5481f Fixed broken link in Python API for 2021-02-02 15:27:58 +01:00
corkyw10 e8e978b8d8 moved snippet for draw_string to correct place, removed two references to code_recipes page that no longer exists 2020-12-22 16:13:00 +01:00
corkyw10 fc808973b8 Typos fixes and refactoring 2020-12-21 15:39:47 +01:00
Daniel Santos-Olivan 2f85970f15 Added documentation for new collision model for wheels. 2020-12-21 15:39:47 +01:00
Daniel Santos-Olivan 0c11869d68 Addition to PythonAPI
New substepping parameters to WorldSettings
2020-12-21 15:39:47 +01:00
doterop c0f595ae4f
Added docs for level object control (#3728)
* Added docs for level object control

* Added mds

* Typo fix

* Updated md

Co-authored-by: corkyw10 <corinnewhite@live.co.uk>
2020-12-18 11:48:37 +01:00
doterop d979b7f97a
Added docs for map layers control (#3729)
* Added doc for load/unload_map_layer

* Added MapLayer enum doc

* Fixed default param

* Updated load_world doc

* Added reset_settings param

* Added mds

* Some typo fixes and highlighted warning labels

* Fixed conflicts

Co-authored-by: corkyw10 <corinnewhite@live.co.uk>
2020-12-17 16:53:45 +01:00
doterop ad9c80b559 Updated docs 2020-12-17 15:18:58 +01:00
Axel b1c9cfb529 Added deterministic pedestrians and carsim documentation. 2020-12-15 18:21:11 +01:00
Hamid Ebadi adb0e9f8ca
Converting html tags (table, image, link, etc.) into markdown (#3629)
* Converting html tags (table, image, link, etc.) into markdown, fixing an issue with python marrkdown generation script

* Converting tables for pandoc

* Incorrect code block

* Changelog is updated

Co-authored-by: Corinne <38050983+corkyw10@users.noreply.github.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-12-14 13:15:32 +01:00
Marc Garcia Puig 6ad2610d33 Fixed docs 2020-11-24 16:57:51 +01:00
Axel1092 003e74fc91
Raycasting (#3483)
* Added raycasting and point projection capabilities to python api.

* Added documentation of new functions.

* Fixed missing .f on floats

Co-authored-by: doterop <daniel.oterop@gmail.com>
2020-10-26 11:13:35 +01:00