Commit Graph

1512 Commits

Author SHA1 Message Date
Guillermo d40f787e68 Minor warning changes 2021-07-30 01:08:15 +02:00
Daniel Santos-Olivan b9bfa88fab Refactor argument synch -> sync 2021-07-30 01:08:15 +02:00
Daniel Santos-Olivan bc386b35da Remove path in map text 2021-07-30 01:08:15 +02:00
Daniel Santos-Olivan f510803567 Minor fixes 2021-07-30 01:08:15 +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
Roel Algaba Brizuela 4151d6a18c Marcos weather script update 2021-07-29 16:20:07 +02:00
Guillermo 792f1ceca0 Added changelog 2021-07-29 15:34:20 +02:00
Guillermo 3514ed014f Removed overtaking for behavior agent 2021-07-29 15:34:20 +02:00
Guillermo 8a877315a9 Added missing function 2021-07-29 15:34:20 +02:00
Guillermo 18494b799d Reordered PID 2021-07-29 15:34:20 +02:00
Guillermo deda2c3e5e Readded the old planner with QoL changes 2021-07-29 15:34:20 +02:00
Guillermo e6420a0f73 Updated docs and cleaned code 2021-07-29 15:34:20 +02:00
Guillermo 982354081d Removed tests and debuggs 2021-07-29 15:34:20 +02:00
Guillermo fc98625861 Improved option dictionaries 2021-07-29 15:34:20 +02:00
Guillermo 4aae9ebd88 WIP: trying to transform parapoint to waypoint 2021-07-29 15:34:20 +02:00
Guillermo d61afc74f4 More improvements 2021-07-29 15:34:20 +02:00
Guillermo eebf56c103 Route improvements 2021-07-29 15:34:20 +02:00
Guillermo 47c42fabf7 Better emergency stop and vehicle detection 2021-07-29 15:34:20 +02:00
Guillermo 23a6091109 Another lane change option iteration 2021-07-29 15:34:20 +02:00
Guillermo 1408f6de53 Minor fixes 2021-07-29 15:34:20 +02:00
Guillermo e930958297 Removed agent.py 2021-07-29 15:34:20 +02:00
Guillermo 4f5ec0dae2 More improvements 2021-07-29 15:34:20 +02:00
Guillermo 97bd0e58f0 Minor improvements 2021-07-29 15:34:20 +02:00
Guillermo 8e16e696b1 Changed the global planner to use the AD map 2021-07-29 15:34:20 +02:00
Guillermo 4efe0dc2e6 WIP: Use AD map library 2021-07-29 15:34:20 +02:00
Guillermo 50f6753ced Fixed division by 0 at controller 2021-07-29 15:34:20 +02:00
Guillermo e425eef843 Exposed target speed 2021-07-29 15:34:20 +02:00
Guillermo 015f1c6d43 Unified more functions and exposed some parameters. 2021-07-29 15:34:20 +02:00
Guillermo 605a129638 Unified some functions and removed redundant arguments 2021-07-29 15:34:20 +02:00
Guillermo 0207ec6f72 Improved local planner 2021-07-29 15:34:20 +02:00
Guillermo f94afe9630 WIP: Unify local planner + local planner behavior 2021-07-29 15:34:20 +02:00
Guillermo 43bd2adc1a Initial changes 2021-07-29 15:34:20 +02:00
Daniel Santos-Olivan bb8e6b08c5 Added generation to manual_control and generate_traffic 2021-07-28 22:05:48 +02:00
Guillermo c611c1b464 Smoothed TM's PID 2021-07-28 18:19: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
Axel 6f077553c6 Added weather pressets 2021-07-28 17:57:34 +02:00
joel-mb 4b0525eef2
[Traffic Manager] InMemoryMap binary file (#4424)
* First iteration of the required files functionality

* WIP: Binary file for in memory map

* Fixed "/Game/" replacement and load new episode by name problems with the required files system

* removed unnecessary changes

* added extra space

* Enable pedestrians building only for single maps, no in tiled maps (temporal)

* Added python selector to make import command

* returning const reference

* fix bug not finding required files

* add TM binary files to packages

Co-authored-by: Alejandro Fraga Cimadevila <alex_fraga95@hotmail.com>
Co-authored-by: bernatx <berni2berni>
Co-authored-by: bernat <bernatx@gmail.com>
2021-07-28 14:44:54 +02:00
bernat cb1c38a8d4 Fixing some vehicle names 2021-07-28 09:11:53 +02:00
bernat 2ce9897ce9 Fixing vehicle name and compilation on windows 2021-07-28 08:38:25 +02:00
Daniel Santos-Olivan 1ce08fcaae Minor fixes to manual control
- radar is not located in relation to the box of the car.
   This fixes the cases where the radar was located inside the car
 - removed annoying warning about speed
2021-07-27 19:23:16 +02:00
Jacopo Bartiromo 13c08e8e9c
Landmark and Curvature Anticipation for Traffic Manager and other updates (#4428)
* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Only hero vehicles are considered to stream tiles

* Little update on log macro

* Adding support for ghost actors

* Refactored LargeMap classes

* Refactored LargeMap classes

* Revert refactor

* Remove files

* Added dormant state to actors

* Fixed spawn+rebase on new OnActorSpawn

* Removed circular dependency warning

* Converted FActorView into an USTRUCT

* Added actor state conversion to dormant

* Removed ConvertActorDormant

* Added spawn and transition of dormants

* Ghost to Dormant working

* Replicated dormant actors

* Add substraction operators

* Added dormant to ghost conversion

* Fixed some issues in dormant to ghost conversion

* WIP! Attached actors not working properly

* WIP! Attached actors not working properly

* Changing several constant variables
Removing sorting in LocalizationStage.cpp

* Fixing variable name

* Fixing variable name

* WIP: Fixing hybrid mode

* Added tiles loaded from umaps.

* Fixed Missing includes

* Debug settings are still on.
Added extra points in tight curves for PID improvement.
Fixed Hybrid Mode, now moves in the direction of the next waypoint.
Reduced calculations in MotionPlanningStage.cpp

* Removed all debug helper functions

* Added FActorData classes to save and restore actor state for dormant actors. Edited all client - server calls to recognize the dormant state. FActorView now can hold null AActor* when is dormant. Large Maps now load tiled umaps instead of assets.

* Fixed dormant check for attached actors

* Expanded FActorData classes. Added world observer aware of dormant actors.

* Extended FActorData classes with walker data.

* Fixed missing includes

* Removed some with editor macros.

* Added virtual destructor to FActorData.

* Adding includes

* Fixed warnings. Added UNoWorldOffsetSceneComponent to have unreal actors unnafected by rebase.

* Fixed tile alingment.

* Added sensor data to restore the comunication.

* Added parent hierarchy consideration to sleep/wakeup of ghost/dormant actors.

* Fixed crash for sensor destruction.

* Changed InMemoryMap to generate more points if two waypoints are even further than a multiple of the limit.
Removed SetSimulatePhysics call when not needed.
Changed PID functions to inline.

* Fixed child-parent when waking up dormant actors. Added profiling traces. Fixed transformation of debug shapes in large maps.

* WIP: Relocating TM-controlled vehicles near the hero vehicle

* WIP: Vehicle teleportation near hero vehicle.
Missing a way to place them in a better order around the map.
Fixes non-deterministic seed setup.

* Fixes bug where the hero vehicle was also set to not have physics.

* Introduces parameter SetRespawnDormantVehicles
WIP Respawning dormant vehicles

* Fixed child-parent when waking up dormant actors. Added profiling traces. Fixed transformation of debug shapes in large maps.

* WIP: renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Now traffic lights can be spawned without controllers inside junctions.

* Added functions to interface the FCarlaActor object with recorder. Started adapting recorder to new FCarlaActor object.

* Fixed missing includes.

* Updated CarlaRecorder and CarlaReplayer to use new FCarlaActor interface for vehicles, walkers and sensors.

* Fixed missing includes.

* Streaming level list now is persistant and can be saved for unreal to detect the dependencies.

* Enabled packages for large maps.

* Added Tiles to the MapPath.txt file. Removed debug warnings.

* WIP: Fix seed when setting deterministic mode.
WIP: Respawn actors when dormant
Added --hero and --respawn to spawn_npc.py

* Fixed traffic light trigger box placement in large maps.

* Fixed traffic light warning. Set speed limit for dormant actors to 30. Fixed semantic segmentation on streaming levels.

* added server bind for set_respawn_dormant_vehicles parameter

* TM doesn't destroy hero vehicle if idle.
ALSM stage will now update hero vehicles first.
MP stage will treat dormant vehicles like physics-less in hybrid mode.
Added fixed seed increment in deterministic mode.

* Fixed Traffic Light issue with recorder and dormant state. Removed old ActorView files.

* handles scenario where the hero vehicle does not exist

* Fixing line markings semantics

* Fixed recorder issues with traffic lights.

* Filter out the base large map as available map

* Added tile_stream_distance and actor_stream_distance to world settings.

* removed unused comments.

* Added IsActive functions. Dormant actors that cannot be respawned now remain dormant.

* Fixed missing includes.

* Fixed missing includes

* Review fixes. Missing includes.

* Fixed link errors.

* Fixes issue with Hybrid mode in async mode.
Introduces new set_boundaries_respawn_dormant_vehicles parameter.
Fixes issue when reloading map.

* WIP: New algorithm to move vehicles from dormant to active

* Finished new policy for teleporting vehicles.
Created new generate_traffic.py script, which works in sync mode.
Removed spawn_npc.py script.
General cleanup in Traffic Manager.

* Cleanup.

* Set FXAA antialiasing method

* Added automatic generation of speed limit signals.

* Adding some includes

* Fixed speed limit component crash when waking up.

* Fixed speed limit component wrong check.

* Fixed speed limit not reset when waking up actors.

* Fixed rare crash when traffic lights become dormant.

* Added speed limit to FActorData.

* Fixed generating waypoints when angle is tight

* Added warning when using asynchronous mode in generate traffic.
Lane changes now require more space.
Vehicle switching from no physics to physics in hybrid mode will have an initial speed.
Changed lower bound to 20 meters for respawn in Large Maps.

* WIP: Landmark anticipation using waypoints

* WIP: anticipation landmark

* Added lane check to landmark search

* Fixed excluded lanes

* WIP: landmark anticipation

* WIP: landmark anticipation

* Changes to constants for path buffer and max speed
Bug fix for landmarks that return nullptr
Included prints for debugging

* Updating constants
Changed collision radius check value
New max_distance for GetAllLandmakrsInDistance

* Incoming turns now make vehicles break

* Added variable radius when finding possible collisions
Added GetMap in InMemoryMap
Added TLMap in MPStage to cache TL
Finished GetLandmarkTargetVelocity function
General cleanup

* Fix merge error
Change constant for collision detection

* Improved lateral PID

* More PID improvements

* Improved longitudinal PID + minor fixes

* Tuned PID parameters

* Changed algorithm for respawn using GeoGrid IDs.

* Fix merge error

* Fixes intersection anticipation algorithm

* Removed print and debug helper init

Co-authored-by: doterop <daniel.oterop@gmail.com>
Co-authored-by: Axel <axellopez92@outlook.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Joel Moriana <joel.moriana@gmail.com>
Co-authored-by: Axel1092 <lopez1092@hotmail.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
Co-authored-by: Guillermo <glopez@cvc.uab.es>
2021-07-26 10:24:45 +02:00
Joel Moriana 5912d8dc98 Updated benchmark script
* Changed default camera resolution to 1920x1080
* Fixed bug calling wait_for_tick in synchronous mode
2021-07-26 10:24:11 +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
Daniel Santos-Oliván d88f2ddd82 Added telemetry for vehicles to manual_control 2021-07-23 10:34:54 +02:00
Daniel Santos-Oliván ec64374db6 Added ShowDebugTelemetry to API 2021-07-23 10:34:54 +02:00
Daniel Santos-Oliván 7c4f26f15b Minor improvement to vehicle_physics_tester util script. 2021-07-23 10:34:54 +02:00
Roel Algaba Brizuela 1a90409cc6 Added missing commas in weather script 2021-07-21 17:31:44 +02:00
Bernd Gassmann 9fe5e733ad RSS build uses the libproj version from CARLA
and now favours actually the boost variant from CARLA over the system
installed one
2021-07-21 16:05:25 +02:00
bernatx cdb0318e05 Fixing where open drive content is cached 2021-07-21 11:37:23 +02:00
Roel Algaba Brizuela 66cd52b7e8 Modified file transfer to avoid multiple downloads 2021-07-20 22:12:36 +02:00
bernat 9eba707216 Removing some functions and fixing the map name if in editor 2021-07-20 22:12:36 +02:00
Alejandro Fraga Cimadevila 05a09b1007 First iteration of the required files functionality 2021-07-20 22:12:36 +02:00
Jacopo Bartiromo 6efe45f04d
Traffic Manager for Large Maps (#4324)
* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Only hero vehicles are considered to stream tiles

* Little update on log macro

* Adding support for ghost actors

* Refactored LargeMap classes

* Refactored LargeMap classes

* Revert refactor

* Remove files

* Added dormant state to actors

* Fixed spawn+rebase on new OnActorSpawn

* Removed circular dependency warning

* Converted FActorView into an USTRUCT

* Added actor state conversion to dormant

* Removed ConvertActorDormant

* Added spawn and transition of dormants

* Ghost to Dormant working

* Replicated dormant actors

* Add substraction operators

* Added dormant to ghost conversion

* Fixed some issues in dormant to ghost conversion

* WIP! Attached actors not working properly

* WIP! Attached actors not working properly

* Changing several constant variables
Removing sorting in LocalizationStage.cpp

* Fixing variable name

* Fixing variable name

* WIP: Fixing hybrid mode

* Added tiles loaded from umaps.

* Fixed Missing includes

* Debug settings are still on.
Added extra points in tight curves for PID improvement.
Fixed Hybrid Mode, now moves in the direction of the next waypoint.
Reduced calculations in MotionPlanningStage.cpp

* Removed all debug helper functions

* Added FActorData classes to save and restore actor state for dormant actors. Edited all client - server calls to recognize the dormant state. FActorView now can hold null AActor* when is dormant. Large Maps now load tiled umaps instead of assets.

* Fixed dormant check for attached actors

* Expanded FActorData classes. Added world observer aware of dormant actors.

* Extended FActorData classes with walker data.

* Fixed missing includes

* Removed some with editor macros.

* Added virtual destructor to FActorData.

* Adding includes

* Fixed warnings. Added UNoWorldOffsetSceneComponent to have unreal actors unnafected by rebase.

* Fixed tile alingment.

* Added sensor data to restore the comunication.

* Added parent hierarchy consideration to sleep/wakeup of ghost/dormant actors.

* Fixed crash for sensor destruction.

* Changed InMemoryMap to generate more points if two waypoints are even further than a multiple of the limit.
Removed SetSimulatePhysics call when not needed.
Changed PID functions to inline.

* Fixed child-parent when waking up dormant actors. Added profiling traces. Fixed transformation of debug shapes in large maps.

* WIP: Relocating TM-controlled vehicles near the hero vehicle

* WIP: Vehicle teleportation near hero vehicle.
Missing a way to place them in a better order around the map.
Fixes non-deterministic seed setup.

* Fixes bug where the hero vehicle was also set to not have physics.

* Introduces parameter SetRespawnDormantVehicles
WIP Respawning dormant vehicles

* Fixed child-parent when waking up dormant actors. Added profiling traces. Fixed transformation of debug shapes in large maps.

* WIP: renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Now traffic lights can be spawned without controllers inside junctions.

* Added functions to interface the FCarlaActor object with recorder. Started adapting recorder to new FCarlaActor object.

* Fixed missing includes.

* Updated CarlaRecorder and CarlaReplayer to use new FCarlaActor interface for vehicles, walkers and sensors.

* Fixed missing includes.

* Streaming level list now is persistant and can be saved for unreal to detect the dependencies.

* Enabled packages for large maps.

* Added Tiles to the MapPath.txt file. Removed debug warnings.

* WIP: Fix seed when setting deterministic mode.
WIP: Respawn actors when dormant
Added --hero and --respawn to spawn_npc.py

* Fixed traffic light trigger box placement in large maps.

* Fixed traffic light warning. Set speed limit for dormant actors to 30. Fixed semantic segmentation on streaming levels.

* added server bind for set_respawn_dormant_vehicles parameter

* TM doesn't destroy hero vehicle if idle.
ALSM stage will now update hero vehicles first.
MP stage will treat dormant vehicles like physics-less in hybrid mode.
Added fixed seed increment in deterministic mode.

* Fixed Traffic Light issue with recorder and dormant state. Removed old ActorView files.

* handles scenario where the hero vehicle does not exist

* Fixing line markings semantics

* Fixed recorder issues with traffic lights.

* Filter out the base large map as available map

* Added tile_stream_distance and actor_stream_distance to world settings.

* removed unused comments.

* Added IsActive functions. Dormant actors that cannot be respawned now remain dormant.

* Fixed missing includes.

* Fixed missing includes

* Review fixes. Missing includes.

* Fixed link errors.

* Fixes issue with Hybrid mode in async mode.
Introduces new set_boundaries_respawn_dormant_vehicles parameter.
Fixes issue when reloading map.

* WIP: New algorithm to move vehicles from dormant to active

* Finished new policy for teleporting vehicles.
Created new generate_traffic.py script, which works in sync mode.
Removed spawn_npc.py script.
General cleanup in Traffic Manager.

* Cleanup.

* Set FXAA antialiasing method

* Added automatic generation of speed limit signals.

* Adding some includes

* Fixed speed limit component crash when waking up.

* Fixed speed limit component wrong check.

* Fixed speed limit not reset when waking up actors.

* Fixed generating waypoints when angle is tight

* Added warning when using asynchronous mode in generate traffic.
Lane changes now require more space.
Vehicle switching from no physics to physics in hybrid mode will have an initial speed.
Changed lower bound to 20 meters for respawn in Large Maps.

* Calculating TLStage even when dormant

Co-authored-by: doterop <daniel.oterop@gmail.com>
Co-authored-by: Axel <axellopez92@outlook.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Joel Moriana <joel.moriana@gmail.com>
Co-authored-by: Axel1092 <lopez1092@hotmail.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
2021-07-15 15:58:28 +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
bernatx e466a63fba Setup Visual Studio 2019 for windows 2021-07-15 10:53:16 +02:00
bernat 3e2b29ecc3 Adding a few seconds after loading a new map to let UE4 to free memory 2021-07-06 11:33:11 +02:00
Axel c62b4bb280 Added get_stop_waypoints() to traffic light. Renamed affected_lane_waypoints function. Added transform_vector function. 2021-07-04 20:11:19 +02:00
Axel bf4e7b0633 Added get_light_boxes in traffic light actors. Added functions to the World to obtain traffic lights from waypoints and junctions. Improved chached map method. 2021-07-04 20:11:19 +02:00
Axel c757462d03 Added new api functions `get_effect_waypoints`, `get_light_boxes` and `get_opendrive_id` for traffic lights. 2021-07-04 20:11:19 +02:00
Daniel Santos-Oliván 33c1109954 Improve vehicle physics tests 2021-07-02 10:26:00 +02:00
Daniel Santos-Oliván e9efa7677e Added Command: ApplyVehiclePhysicsControl 2021-07-02 10:26:00 +02:00
Axel b54d11d8f7 Fixed compilation bug. 2021-06-22 11:01:53 +02:00
Axel d93aaf7624 Updated optical flow documentation. Added OpticalFlowPixel class. 2021-06-22 11:01:53 +02:00
Axel 42735854e6 Removed xsd file dependencies. 2021-06-16 10:57:51 +02:00
Daniel Santos-Oliván 7468bbbf59 Temporariliy disable of physics and collision test 2021-06-16 10:57:38 +02:00
Daniel Santos-Oliván 8b99e62a37 Tests: Removed timeout from world methods
As we are using the client-defined timeout
in the world methods now, we do not need to
define custom timeouts.
2021-06-16 10:57:38 +02:00
Daniel Santos-Oliván 15be33e874 World: world methods will use same timeout as client
The world methods: tick, wait_for_tick and apply_settings
will use the timeout defined in the client but they still
allow to define a custom one.
2021-06-16 10:57:38 +02:00
Daniel Santos-Oliván af26ae35bf Added test for sync mode 2021-06-16 10:57:38 +02:00
Axel 6af207e476 Fixed color optical flow type. 2021-06-11 19:45:05 +02:00
Axel 7d637137b4 Removed numpy dependency 2021-06-11 19:45:05 +02:00
Axel1092 14a3e3dd89 Fixed linker errors with numpy in windows. 2021-06-11 19:45:05 +02:00
Axel1092 74380cdc23
Fixed existing features for Large Maps (#4293)
* Fixed child-parent when waking up dormant actors. Added profiling traces. Fixed transformation of debug shapes in large maps.

* WIP: renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Renaming FActorView to FCarlaActor. Changing calls related to FCarlaActor to acomodate new typing.

* Now traffic lights can be spawned without controllers inside junctions.

* Added functions to interface the FCarlaActor object with recorder. Started adapting recorder to new FCarlaActor object.

* Fixed missing includes.

* Updated CarlaRecorder and CarlaReplayer to use new FCarlaActor interface for vehicles, walkers and sensors.

* Fixed missing includes.

* Streaming level list now is persistant and can be saved for unreal to detect the dependencies.

* Enabled packages for large maps.

* Added Tiles to the MapPath.txt file. Removed debug warnings.

* Fixed traffic light trigger box placement in large maps.

* Fixed traffic light warning. Set speed limit for dormant actors to 30. Fixed semantic segmentation on streaming levels.

* Fixed Traffic Light issue with recorder and dormant state. Removed old ActorView files.

* Fixing line markings semantics

* Fixed recorder issues with traffic lights.

* Filter out the base large map as available map

* Added tile_stream_distance and actor_stream_distance to world settings.

* removed unused comments.

* Added IsActive functions. Dormant actors that cannot be respawned now remain dormant.

* Fixed missing includes.

* Fixed missing includes

* Review fixes. Missing includes.

* Fixed link errors.

Co-authored-by: bernat <bernatx@gmail.com>
2021-06-11 19:44:16 +02:00
Roel Algaba Brizuela 829664d8a3 Extended PythonAPI for weather 2021-06-11 14:31:49 +02:00
bernat 830c9a1f86 More time out for the smoke test 2021-06-10 09:53:52 +02:00
Daniel Santos-Oliván a996260984 Improved robustness of tests
- In the collision sensor test we have incrase the number of frames to
  run and also we run all the vehicles always and show all the ones
  that fail instead of only the first.
  - In vehicle physics tests, we have change all velocity/control setters to batch_sync
  version to avoid losing commands
2021-06-09 19:28:43 +02:00
Daniel Santos-Oliván cf4087971e Smoke: Fix name in smoke test list 2021-06-03 11:34:33 +02:00
Daniel Santos-Oliván 92105fe734 Remove print 2021-06-03 11:34:33 +02:00
Daniel Santos-Oliván 0508c25ca0 Disable three car collisions 2021-06-03 11:34:33 +02:00
Daniel Santos-Oliván e3760715b7 Updated vehicle physics tester script 2021-06-03 11:34:33 +02:00
Daniel Santos-Oliván 31ee9208ab Enable collision sensor and vehicle physics smoke tests 2021-06-03 11:34:33 +02:00
Daniel Santos-Oliván 770ed30fef Added test to check the sticky control 2021-06-03 11:34:33 +02:00
Daniel Santos-Olivan 4a39491970 Added compatibility to Python2 for the test 2021-06-03 11:34:33 +02:00
Daniel Santos-Olivan 1e4d8df35a Increased timeouts 2021-06-03 11:34:33 +02:00
Daniel Santos-Olivan 1d6ad1186d smoke_test: add collision determinism to list 2021-06-03 11:34:33 +02:00
Daniel Santos-Olivan 850a0bde54 Added smoke test for determinism 2021-06-03 11:34:33 +02:00
Axel 9417f2bd0a Fixed sensor tick time test. 2021-06-02 13:15:17 +02:00
Axel1092 28a044de99 Temporary fix for windows link errors. 2021-06-02 13:15:17 +02:00
Axel a706ab8b55 Added optical flow to rgb conversion for visualization. 2021-06-02 13:15:17 +02:00
Axel 2e76af9001 Fixed float texture format. Added method to convert optical flow to a color visualization. 2021-06-02 13:15:17 +02:00
Shashank Singh a087f2fb74 Going back to initial approach for uint16/float16 Optical Flow but need to do conversion on C++/Client side 2021-06-02 13:15:17 +02:00
Shashank Singh 6b6f639e15 removed unused code and added optical flow processing explanation+example to manual_control.py 2021-06-02 13:15:17 +02:00
Shashank Singh fa9f55a592 Optical Flow 2021-06-02 13:15:17 +02:00
Daniel Santos-Oliván 2621a9ad11 Disable camera smoke test 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan bc3e68a99e Temporally disabled the smoke tests of vehicle physics 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 2a5181bd61 Util/VehicleTester: Fix minor bug 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 365082c8e2 Added util script to test vehicle physics 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan fd2c3885d8 TestVehiclePhysics: Disabled wheel collision test 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan cf0cd184bb Add collision sensor test to list 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 7dc9e78331 TestVehiclePhysics: Update and enable all tests 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan d8c2342a3c CollisionSensorTest: Enable test and minor update 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 4090eb7fe3 Added smoke test for collision sensor 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 668303ef76 Added smoke to check the point count for Lidar and Semantic Lidar 2021-05-20 16:33:27 +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
Daniel Santos-Olivan 8b025b0018 Added test for apply control 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 3ee6a1c5d8 smoke.test_vehicle_physics: add filter for cars 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 5f4583bd14 test_determinism: Add more output when failing 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 88d732e899 Updated smoke.test_vehicle_physics
- Fix error in reload of world
 - New test about long stiff values
 - Minor fixes
2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan e3ba9e4940 Added tire stiffness forces to physics control 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 8c6288ea24 Added test for different friction values 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan a52d09286a smoke_vehicle_physics: Fix small bugs 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 0603acf708 Added smoke tests for vehicle physics 2021-05-20 16:33:27 +02:00
Daniel Santos-Olivan 3fbdd5b908 Added Abs method to carla vectors 2021-05-20 16:33:27 +02:00
Axel1092 c46c65ff4f
Large Maps (#4207)
* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Added LargeMapManager

* Added DVector Vector of doubles

* Declaration of interface

* Added AUncenteredPivotPointMesh

* Added map generation from assets folder

* Updates on FDVector

* Added tile load on demand

* Fixed load tile issues after rebasing origin

* Updated FDVector

* Added some auxiliary functions

* Added conversion and operator

* Added methods to check and configure the state

* Removed const and updated printed info

* Added macro to avoid logs

* Added info dump functions

* The asset spawn check was added to the tick

* LargeMapManager added to CarlaGM

* Moving to level load autocontrol

* Updated with new function name, AddNewClientToConsider

* Fixing forced tile load

* Added operator*(float)

* Disabled Localplayer

* Now the streaming is handled by us

* Fixed remove of considered actors

* Fixed typo

* Added MapOrigin to the Episode

* Added Vector3DInt to LibCarla

* Removed floats in Vector3DInt

* Added offset to client actor's location

* Fixed old cast warning

* Removed float

* Added explicit cast to avoid warning

* Fixed client actor transform

* Removed unnecessary code

* Added origin offset to spawn_actor

* Adding spawn points generation

* Added spawn points folder in editor

* Changed Spawnpoint for only Transforms

* World rebase is triggered directly

* Added offset when attaching actors

* Detecting hero vehicle

* Only hero vehicles are considered to stream tiles

* Little update on log macro

* Adding support for ghost actors

* Refactored LargeMap classes

* Refactored LargeMap classes

* Revert refactor

* Remove files

* Added dormant state to actors

* Fixed spawn+rebase on new OnActorSpawn

* Removed circular dependency warning

* Converted FActorView into an USTRUCT

* Added actor state conversion to dormant

* Removed ConvertActorDormant

* Added spawn and transition of dormants

* Ghost to Dormant working

* Replicated dormant actors

* Add substraction operators

* Added dormant to ghost conversion

* Fixed some issues in dormant to ghost conversion

* WIP! Attached actors not working properly

* WIP! Attached actors not working properly

* Added tiles loaded from umaps.

* Fixed Missing includes

* Added FActorData classes to save and restore actor state for dormant actors. Edited all client - server calls to recognize the dormant state. FActorView now can hold null AActor* when is dormant. Large Maps now load tiled umaps instead of assets.

* Fixed dormant check for attached actors

* Expanded FActorData classes. Added world observer aware of dormant actors.

* Extended FActorData classes with walker data.

* Fixed missing includes

* Removed some with editor macros.

* Added virtual destructor to FActorData.

* Adding includes

* Fixed warnings. Added UNoWorldOffsetSceneComponent to have unreal actors unnafected by rebase.

* Fixed tile alingment.

* Added sensor data to restore the comunication.

* Added parent hierarchy consideration to sleep/wakeup of ghost/dormant actors.

* Fixed crash for sensor destruction.

Co-authored-by: doterop <daniel.oterop@gmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
2021-05-20 16:09:43 +02:00
Roel Algaba Brizuela f953e8dba5 Revert "Disable determinism test temporally" 2021-05-17 20:56:46 +02:00
bernat a3df763a0a Disable determinism test temporally 2021-05-17 20:56:46 +02:00
Roel Algaba Brizuela 0f70fd66e9 Reset files back to default state 2021-05-17 20:56:46 +02:00
Roel Algaba Brizuela 8e540d60d0 First version - Wheel direction changes 2021-05-17 20:56:46 +02:00
bernat 9b05d44a0f Restore settings after smoke tests 2021-05-17 13:08:12 +02:00
Daniel Santos-Oliván d05d1f5e37 SmokeTest: Removed useless apply_settings in tearDown 2021-05-13 16:18:51 +02:00
Daniel Santos-Oliván 1b258f9e14 TestSync: Removed print 2021-05-13 16:18:51 +02:00
Daniel Santos-Oliván c49da25c99 TestSensorDeterminism: better frame check and optimized world reload 2021-05-13 16:18:51 +02:00
Roel Algaba Brizuela 1dc91fc7c0 Revert "Disable determinism test temporally" 2021-05-07 15:52:21 +02:00
bernat bf82f09a31 Disable determinism test temporally 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela a3b0f03e2e Reset files back to default state 2021-05-07 15:52:21 +02:00
Roel Algaba Brizuela c0188774c2 First version - Wheel direction changes 2021-05-07 15:52:21 +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
Axel e6a23ff101 Added traffic light generation functions. 2021-04-29 11:33:01 +02:00
glopezdiest 3360d27486
Improved agent vehicle detection (#3973)
* Improved agent vehicle detection

* Minor CHANGELOG error

Co-authored-by: Jacopo Bartiromo <32928804+jackbart94@users.noreply.github.com>
2021-04-27 15:02:18 +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
Daniel Santos-Oliván 55de002ef0 Increase sensor queue timeout for smoke test 2021-04-15 11:19:32 +02:00
Daniel Santos-Olivan 0ca1ae91e8 Fix test_lidar for Python 2.7 2021-04-14 23:30:03 +02:00
Daniel Santos-Olivan c97a7b0a8a Fixed format 2021-04-14 23:30:03 +02:00
Daniel Santos-Oliván 9edb7b2968 Added lidar smoke test
Test for checking that the lidar point count is correct in both lidar
and semantic lidar.
2021-04-14 23:30:03 +02:00
Daniel Santos-Oliván c87a584404 Add world variable to async tests also 2021-04-14 23:30:03 +02:00
Daniel Santos-Olivan e1938e13bd Updated manual control with new camera shots for pedestrians 2021-04-01 12:33:12 +02:00
Axel a0c15d9649 Edited changelog and documentation. 2021-04-01 12:32:30 +02:00
Axel ed6062e5dd Added new argument to recreate sensors in the replayer. 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
Roel Algaba Brizuela e9fc29898f
Added wheel control (#3868)
* First version - Wheel direction changes

* Updated CHANGELOG.md

* Fix DVSCamera include error

* Updated vehicle wheels direction commands

* Reset files back to default state

* Removed files from PR.

* Updated changelog
2021-03-15 15:42:33 +01:00
Axel 7d135da9c6 Added shut_down function to TM. 2021-03-08 13:31:28 +01:00
Axel 26f4bbec5b Changed wait method for next frame. Undone changes to determinsm smoke test. 2021-03-08 13:31:28 +01:00
Axel 57bee724f3 TM will stay in deterministic mode after the deterministic test. 2021-03-08 13:31:28 +01:00
Axel 33981f135b Fixed smoke test. 2021-03-08 13:31:28 +01:00
Guillermo 27ddb69d8d Improved local planner set_global_plan function 2021-03-05 14:08:19 +01:00
Daniel Santos-Olivan 8830de82d9 smoke_test: Change test order 2021-03-04 18:29:42 +01:00
Daniel Santos-Olivan 6b40b00a29 smoke_test: Reload the map after each test 2021-03-04 18:29:42 +01:00
Daniel Santos-Olivan 9ff93f1593 Smoke_test: Now the order of execution is predetermined 2021-03-04 18:29:42 +01:00
Axel1092 0989aae70b Added PROJ library dependencies in windows. Imrpoved PythonAPI compilation speed in windows. Disabled boost RTTI checks. 2021-03-04 16:16:42 +01:00
Axel d8bc438f6f Added proj string capabilities to OSM to OpenDRIVE conversor. 2021-03-04 16:16:42 +01:00
Axel ced1d5c88c Added OSM2ODR dependencies for projection capabilities (linux). 2021-03-04 16:16:42 +01:00
Axel 3fc6bce36c Added JSON ingestion for chrono vehicle definition 2021-03-04 12:48:57 +01:00
Jacopo Bartiromo eacda536b4 Added Ambulance and Firetruck as unsafe vehicles in spawn_npc.py 2021-03-02 13:01:58 +01:00
Daniel Santos-Olivan 6a879c89db manual_control: fix pedestrians 2021-03-02 12:57:31 +01:00
Daniel Santos-Olivan 49447d6ce9 manual_control: Minor modification to lateral camera. 2021-03-02 12:57:31 +01:00
Daniel Santos-Olivan fc88b8796f New script to visualize multiple sensors in a single window 2021-03-02 12:57:31 +01:00
Daniel Santos-Olivan e6e651952a check_lidar_bb: Added script used to check bounding boxes and lidar
This script compares that all the points that lidar measure are inside
the bounding boxes of all the cars.
This is useful to check that both lidar colliders and BB are ok.
2021-03-02 12:57:31 +01:00
Daniel Santos-Olivan 838e79ffca manual_control: Improve camera positions
Now the transforms of the cameras are compute taking
in account the size of the car.
2021-03-02 12:57:31 +01:00
doterop f379c63d43 Added functions to initialize is_alive from episode information 2021-03-02 12:56:21 +01:00
bernat d04a86b859 Changing 4.24.3 to 4.26.1 2021-02-25 16:48:15 +01:00
bernat 5079eb7474 Disable determinism test temporally 2021-02-25 16:48:15 +01:00
bernat 812508116e Changes for compiling UE 4.26 2021-02-25 16:48:15 +01:00
Axel bf8e160622 Added release compile mode for chrono library. 2021-02-18 10:04:35 +01:00
Axel f45e0d7c08 Added substep algorithm for chrono. Added initial UE4 terrain detection with raycast. 2021-02-18 10:04:35 +01:00
Axel 7c3367325f Added chrono library 2021-02-18 10:04:35 +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
Daniel Santos-Olivan 198fa38c9b Improve benchmark script:
- Added option for sync mode (on by default)
 - Added a warm-up time after spawning actors to not contaminate the results
 - Added option for no rendering mode (on by default)
 - Added two new cases for Lidar (100k and 1M points)
 - Allow to cancel the execution like other scripts
 - Added the option to benchmark only a sublist of maps, sensors and
types of weather
 - Added a parameter to show all the maps, sensors and types of weather possible
2021-01-29 09:59:45 +01:00
Guillermo 18f2558223 Fixed bug related to RoadOptions 2021-01-29 09:59:25 +01:00
doterop 35c35c0055 Fixed how fixed_delta_seconds is obtained 2021-01-25 17:03:29 +01:00
doterop 23bf0fb16a Removed comments 2021-01-25 17:03:29 +01:00
doterop fa2cde9ace Added smoke test for sensor_tick check 2021-01-25 17:03:29 +01:00
bernat 65720f04b2 Changing to 0.9.11 version 2020-12-22 16:26:04 +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
bernat c07857a8cc Update content 2020-12-18 20:27:55 +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
Daniel Santos-Olivan 78aa7cb1bc ApplySettings now check the episode settings
This method now check that the episode settings have
effect in the server as expected.
2020-12-17 19:03:20 +01:00
Daniel Santos-Olivan dde86b42bb Added all the settings to the Python out stream 2020-12-17 19:03:20 +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
Daniel Santos-Olivan efc7fb35bd Adapted smoke test for Python2 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 46691473ee Fix compatibility with Python2 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 12ae848a1d Temporarily removed the collision smoke test 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan c21ea546c4 Minor changes to test jenkins 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 462d8eaac4 Increased timeout to avoid Jenkins error 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan f2b1407c84 Small change to check jenkins execution 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan c53ca4d3bd We need to load Town03 for executing those tests 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 568cef9ec9 Added collision determinism tests 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan d8e66e33ad Correct import 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 080e96eb34 Minor improvements 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 046d78c091 Remove temporal files 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan ad3b02cf91 Minor improvements 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 75feb3d1a8 Add minor improvements 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan cffda1b8de Added smoke test for raycast sensor determinsm 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 9fb5aeb9c1 Minor fixes 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan fd4a7d54a5 Bugfixed and minor additions
The save_snapshots should be done after the sensor syncrononization,
if not, it cant be known what you are saving.
Also added the load of Town03 and fix a small bug in error print.
2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan acca36534e Minor update 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 12effc5d7d Updated raycast determinism script 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 2d36060e52 All the test are stored in a list now 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan e48f997358 Collision check script updated 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 5899fa9e6a Minor improvement in script 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan f46dac8aba Add support for multiple sensors in one scenario 2020-12-15 22:33:21 +01:00
Daniel Santos-Olivan 203b5f3160 test_determinism: change to reload the world in synchronous mode 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 76bb65d24d Temporarily disable the determinism test 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan d75b6e989b test_snapshopt: Remove tick to avoid touching the ground 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 5a3e1fdbb8 test_spawnpoints: Remove tick to avoid touching the ground 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 84ca97618a Minor PythonAPI fix 2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 8f6806be69 Added default arguments in PythonAPI for reset settings
Also exposed the reset_settings in the GenerateOpendriveWorld
2020-12-15 22:31:48 +01:00
Daniel Santos-Olivan 4aa97d09ef Added support for load/reload maps without disabling the synchronous mode
Now you can add the option of reset_settings=False for not returning
to default options when you load/reload maps.
By default, reset_settings=True so it does not change the current
behavior of the simulator.
2020-12-15 22:31:48 +01:00
Axel b1c9cfb529 Added deterministic pedestrians and carsim documentation. 2020-12-15 18:21:11 +01:00
Erasmus Cedernaes 6b39cc310b Fixing build for Python 3.9 (deprecation error)
- See https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads for info on thread initialization
2020-12-15 15:00:48 +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
Axel b0fc79a3a6 Updated CarSim API 2020-12-10 20:38:33 +01:00
Axel 802f941fae Added function to set custom carsim simfile. Added option to use ue4 carsim road definition or unreal callback method. 2020-12-10 20:38:33 +01:00
Axel 7739b5eb94 Added first CarSim integration to vehicle class. 2020-12-10 20:38:33 +01:00
doterop 30db7e21d4
Added culling control (#3656)
* Added culling configuration to settings

* Updated changelog
2020-12-09 15:22:20 +01:00
Guillermo ae36a62461 Added an offset to the local planner 2020-12-07 15:28:57 +01:00
Axel e936d83ad3 Fixed missing initialization variable. 2020-12-03 12:24:24 +01:00
Axel cba230bc0d Added toggle to select deterministic/physically based ragdoll animation. 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan 235cc8ffee Added wheel sweep by default in manual_control 2020-12-03 12:24:24 +01:00
Daniel Santos-Olivan 3835de9b0d Added sweep wheel option to VehiclePhysicsControl 2020-12-03 12:24:24 +01:00
Marc Garcia Puig 6ad2610d33 Fixed docs 2020-11-24 16:57:51 +01:00
doterop c98eb974c6 Added Any as a filter option instead of None 2020-11-24 10:30:35 +01:00
doterop a95d3d74a8 Added filter by type 2020-11-24 10:30:35 +01:00
doterop 42c4c15569 Fixed EnvironmentObject Python type 2020-11-24 10:30:35 +01:00
doterop c9fb00d8f2 Naming fix 2020-11-24 10:30:35 +01:00
doterop 6c85458b0e Added display initialization to avoid posible noise 2020-11-23 10:47:07 +01:00
doterop 42d67c2d28 Moved bounding_box to actor 2020-11-20 15:03:03 +01:00
Farzad 5ce501d079 Fixed bug "'World' object has no attribute 'player'" when using BehaviorAgent with an instance of carla.libcarla.World class. 2020-11-16 14:27:25 +01:00
Axel af0dbd00db Increased smoke test timeout. 2020-11-16 10:23:15 +01:00
Axel 238d93021a Small fixes. 2020-11-16 10:23:15 +01:00
Axel 06bd2a9bdd Added enhanced determinism flag. 2020-11-16 10:23:15 +01:00
Axel 77b5e0faf7 Added smoke test for tm determinism. 2020-11-16 10:23:15 +01:00
Marc Garcia Puig 993f440bb8 Fixed int to uint8_t 2020-11-12 13:57:26 +01:00
Marc Garcia Puig 8ffbf13fc7 Fixed carla.Actor semantic_tags 2020-11-12 13:57:26 +01:00
Daniel Santos-Olivan 3663d6f79f Add noise seeds to the determinism script 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan 1b12813071 Removed trailing white spaces 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan e72c0ddb13 Minor spelling fix 2020-11-11 11:17:52 +01:00
Daniel Santos-Olivan db64712a53 Added script for check sensor determinsm 2020-11-11 11:17:52 +01:00