Commit Graph

282 Commits

Author SHA1 Message Date
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
Daniel Santos-Oliván d88f2ddd82 Added telemetry for vehicles to manual_control 2021-07-23 10:34:54 +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
Axel 6af207e476 Fixed color optical flow type. 2021-06-11 19:45:05 +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
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
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
Daniel Santos-Olivan e1938e13bd Updated manual control with new camera shots for pedestrians 2021-04-01 12:33:12 +02:00
Axel ed6062e5dd Added new argument to recreate sensors in the replayer. 2021-04-01 12:32:30 +02: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 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
bernat c07857a8cc Update content 2020-12-18 20:27:55 +01:00
Daniel Santos-Olivan 235cc8ffee Added wheel sweep by default in manual_control 2020-12-03 12:24:24 +01:00
doterop 6c85458b0e Added display initialization to avoid posible noise 2020-11-23 10:47:07 +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
Daniel Santos-Olivan e72c0ddb13 Minor spelling fix 2020-11-11 11:17:52 +01:00
Praveen Kumar 50ed66ac2c Registration lock while frame re-allocation 2020-11-07 20:34:10 +01:00
Daniel Santos-Olivan 95d27a5dcc Moved test script 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan e481df0293 Minor name changes 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 0af41974bc Added more output to the repetition counter 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 1c69f2acc0 Added car-walker collision test 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan e3639a1591 Minor improvements 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 65ea83e96f Small error fixed 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 37d0075e35 Improved the check of the simulations 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 25175e1c46 Added a script to test collisions 2020-11-05 14:25:04 +01:00
doterop 8f1b401e49
Adding load control on sublevels (#3515)
* Added MapLayer enum

* Added Load/Unload layer functions

* Added calls to register and tag objects on map change

* Added missing file

* Updated MapLayer to support more layers

* Added calls to PythonAPI

* Added default value

* Moved CurrentMapLayer to GI

* Updated manual_control with maplayer handling

* Updated help

* Updated Changelog

* Fixed a missing `;`

* Fixed LoadWorld() API so it works with old code

* Added missing include for shipping builds

* Fixed base enum type of MapLayer

* Removed int number from layer output

* Renamed variables

* MapLayer converted to int32 and added generic enumToString function

* MapLayer back to uint16

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-11-02 11:22:49 +01:00
Marc Garcia Puig 6d20f7d374 Updated requirements.txt with Pillow 2020-10-27 17:22:02 +01:00
Marc Garcia Puig 311f509d11 Small example fixes 2020-10-27 17:22:02 +01:00
Marc Garcia Puig ad4fc6e0a9 Added lidar_to_camera.py 2020-10-27 17:22:02 +01:00
Pasch, Frederik fddf3c9b2e Update ad-rss-lib to 4.4.0 2020-10-20 14:41:19 +02:00
berndgassmann b91e1b5e0e
Merge pull request #3388 from carla-simulator/fix_rss_sensor 2020-10-08 11:29:25 +02:00
Jacopo Bartiromo e7ff12fa78 Changes default behavior for OSM parameter in TM 2020-09-23 20:43:30 +02:00
Daniel Santos-Olivan b0090775a1 Fix format tabs/newlines 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 8bc91527a7 VehiclePhysics: Small bug fixed 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan c1f88565d5 Improving the script 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 14fa890aa9 Added some clarificacion to the example script 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan ced3a6ab8e Added an script to test vehicle_physics 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan ad74bef0c3 Added Constant Velocity Mode to manual_control.py 2020-09-23 20:40:44 +02:00
Jacopo Bartiromo 7360436c9d
Determinism for Traffic Manager (#3333)
* Check for determinism

* Per-vehicle random device

* Parameterised random device seed.

* Changing next waypoint selection logic
to use bucketing random device sample.

Arranging next waypoint selections right to left.

* Change to numpy's random lib

* Sorting blueprints to ensure determinism

* New method for determinism

* ResetAllTrafficLight now works in sync mode.

* Moving recorder stuff to engine module

* Fixed recorder for traffic lights in standalone mode.

* Added check to prevent traffic light from updating during replay.

* Updating old traffic lights to use the traffic light component.

* Moved recorder to posttick.

* Small fix to elapse time function.

* Added reset group function to API.

* Merge with traffic_manager/determinism_check

* Changes in TL reset
Option to save to file for recorder script

* Added automatic signal match with OpenDRIVE.

* Fixed error that caused traffic light actors to be missing in client side.

* Added new frozen behavior.

* Updated documentation and changelog

* Updated ContentVersions.txt

* Review changes.

* fixes merge error

* fixes merge

* Update build_windows.md

Added info about command execution that toke me many time to find out

* Update build_windows.md

Updated as requested in pull request review

* Running Carla when choosing a) deb Carla install

This fixes a minor error in the documentation regarding running carla, if the deb installation was choosen.

* Fix for traffic manager freezing upon map change

* attempt to change sys clock to sim clock

* Remove manual unlock of mutex

* fixing merge error

* Changelog and review fixes

Co-authored-by: Praveen Kumar <pravinblaze@hotmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Axel1092 <axellopez92@outlook.com>
Co-authored-by: Axel1092 <35765780+Axel1092@users.noreply.github.com>
Co-authored-by: Néstor Sabater <web.nsabater@gmail.com>
Co-authored-by: ll7 <32880741+ll7@users.noreply.github.com>
2020-09-22 15:20:52 +02:00
Marc Garcia Puig 7e0546f9c8 Fixed open3d example name 2020-09-18 17:24:56 +02:00
Praveen Kumar f3d357d7d0 Implemented vehicle removal in OSM mode. 2020-09-18 14:55:14 +02:00
bernat b574ca57e8 Fix manual_control_steeringwheel.py memory leak 2020-09-09 23:07:34 +02:00
bernat 6de460466e Fix manual_control.py memory leak 2020-09-09 23:07:34 +02:00
Pasch, Frederik 251d2bbbb7 Remove switch to different default rss parameter, add new members 2020-09-03 16:15:54 +02:00
Marc Garcia Puig d75e1516b3 Fixed open3d name 2020-09-02 14:44:42 +02:00
Marc Garcia Puig aabde2182b Small color fix 2020-09-02 14:44:42 +02:00
Marc Garcia Puig 564a15989b Added sem seg water and changed Dynamic color 2020-09-02 14:44:42 +02:00
Marc Garcia Puig c6b6fe6d71 Added color tags in opend3d.py 2020-09-02 14:44:42 +02:00
Daniel Santos-Olivan 7a413c845a Added new semantic tags to open3d script 2020-07-31 20:19:40 +02:00
Daniel Santos-Olivan 66a123e2e3 Sensor Sincronization
Added script as an example to syncronize all gathering
of sensor data in the client.

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-07-31 16:39:06 +02:00
Daniel Santos-Olivan 96d0ae27e6 Refactor SemanticLidar in LibCarla and PythonAPI 2020-07-31 15:15:01 +02:00
Guillermo 8c1181ca00 Fixed global planner's RoadOptions 2020-07-30 16:13:17 +02:00
Daniel Santos-Olivan 245cd0abe9 Removed comment to avoid codacy error 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 573830453f Minor change to satisfy pylint 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan a67d9732f2 Added open3d and matplotlib to requirements.txt 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 378a526524 Minor modification in open3d script
Be careful with the sleep time, its correct value
may vary between machines
2020-07-30 15:16:42 +02:00
Marc Garcia Puig f94a9bad91 Added Open3D example script 2020-07-30 15:16:42 +02:00
Pasch, Frederik e70480c664 RSS: Fix calculation of steering angle
As ad-rss-lib is using a right-handed and CARLA left-handed coordinate system, the calculation of the steering angle must be inverted

+ remove obsolete openscenario
2020-07-23 12:59:37 +02:00
Pasch, Frederik baffc906be Fix egg inclusion 2020-07-14 17:53:28 +02:00
Pasch, Frederik 89443073bf Disable pylint check 2020-07-14 17:53:28 +02:00
Pasch, Frederik 05aac9c0fb Update pylintrc, fix vehicle lights on restricted vehicle control 2020-07-14 17:53:28 +02:00
Pasch, Frederik 805f7c2863 Pylint cleanup 2020-07-14 17:53:28 +02:00
Pasch, Frederik 2cb29ba938 Further cleanup 2020-07-14 17:53:28 +02:00
Pasch, Frederik bc898acdf9 Cleanup 2020-07-14 17:53:28 +02:00
Bernd Gassmann 0332185e6f Update PythonAPI docu
+ Codeformatting of RSS parts
2020-07-14 17:53:28 +02:00
Pasch, Frederik 88ae9d04ae Update to AD RSS Library 4.0.0
- Added support for unstructured scenes and pedestrians.
- Rework rss example folder structure
- Python based debug drawing
- Handle negative speeds
- Fixes #2871 by linking libproj statically.
- Fixes #2958 by using sequential colcon build
- Allow setting log level
- Add ActorConstellationCallback
- Move setting of RssDynamics to python code
2020-07-14 17:53:28 +02:00
Daniel Santos-Olivan 1d9bb78a8d Format changes to answer review 2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan da2e29f5ef Lidar Intensity: Added intensity to lidar's output
For now, only takes into account the intensity loss
due to the the atmosphere atenuation.
2020-07-08 11:44:23 +02:00
Marc Garcia Puig b695dbf2f5 Fixed numpy versions for requirements.txt 2020-06-29 17:40:39 +02:00
DSantosO baf43b07a6
Merge pull request #2951 from carla-simulator/dsantoso/lidar-impr
Raycast parallelization
2020-06-18 15:48:29 +02:00
Marc Garcia Puig 923960751f Added batch command SetVehicleLightState 2020-06-08 10:49:31 +02:00
Marc Garcia Puig 9f5f4b9a2e Moved ToImage() and added a use case in man_contr 2020-05-08 20:08:27 +02:00
Marc Garcia Puig 87ac3b9a6d Minor fixes and code style adaptation 2020-05-08 20:08:27 +02:00
Javier Hidalgo-Carrió c45614c983 DVS camera sensor implementation 2020-05-08 20:08:27 +02:00
Jacopo Bartiromo 3fcc90585e fixes destruction of actors in tutorial.py 2020-04-16 12:39:35 +02:00
Jacopo Bartiromo 0b0ca7ea4c fix flag from --tm_port to --tm-port (guideline) 2020-04-16 12:36:53 +02:00
doterop 5d177eb4bb set_autopilot now uses the TM port instead of the TM object 2020-04-16 12:36:53 +02:00
shiba24 af5bf9fb99 Fix variable definition
Before this commit, `synchronous_master` is defined inside
try-block so if any error happens and args.sync is true,
"ReferenceError: `synchronous_master` is not defined" is raised
in the finally-block.
2020-04-13 18:26:24 +02:00
doterop a108bf5b3b Updated default value for TM. Now should be retrocompatible. 2020-04-13 13:06:38 +02:00
doterop 2f6b8e048f Change to support default parameter to keep compatibility 2020-04-13 13:06:38 +02:00
doterop 64cc616938 Added changes to SetAutopilot BatchCommand 2020-04-13 13:06:38 +02:00
doterop f2f4b229d7 Updated set_autopilot to get tm as a parameter 2020-04-13 13:06:38 +02:00
bernat 5e7c6bb783
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-04-09 12:18:23 +02:00
Jacopo Bartiromo b839cf3419
Minor changes to Traffic Manager (#2708)
* removes vertical offset
changes in radius
radius increasing with higher velocity

* changes to collision detection policy

* introducing radius as parameter
removed radius increasing with velocity
2020-04-09 09:56:04 +02:00
Bernd Gassmann 64f7b7cda4 Adapt to separate documentation pull request
- remove docu from this request again
- Prefix RoadBoundariesMode and VisualizationMode under Python with
'Rss' for clarity
2020-04-02 16:50:34 +02:00
Bernd Gassmann a07077c0d8 Fix manual_control_rss empty item 2020-04-01 16:34:52 +02:00
Bernd Gassmann 179ec725fa Fix some robustness issues
Create RssCheck (again) when Listen is called to prevent from creating
loggers all the time someone lopps over the actor list and the
actor/sensor instances getting created.

Only traverse actor list in CreateWorldModel once.

tbb::parallel_for_each() gets already created actors and doesn't loop
itself over actor list (which blocks).

Finally changed code format of RSS to keep 120 chars per line.
2020-03-31 18:30:50 +02:00
berndgassmann dc6c80a820
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-03-31 10:28:35 +02:00
Jacopo Bartiromo 151e38ce8d
Hybrid mode for Traffic Manager (#2674)
* Improved braking, collision negotiation.

* Improved braking algorithm for smoother approach
to lead vehicle.

* Implemented smoother path boundary modification
to aid smoother braking.

* Re-worked collision negotiation algorithm.

* Improved collision candidate filtering.

* Added safe-guard in case of vehicle removal
in collision stage.

* Used local variable for heavily referenced object
in localization stage.

* Implemented vector relative velocities
for motion planner's collision consideration.

* Moved collision candidate sorting logic
from collision stage to localization stage.

* Sorting collision candidates using their ids
instead of shared pointers to avoid memory corruption.

* Improved conditions for collision consideration
for greater efficiency.

* Removed fps limit in async mode.

* Hybrid physics mode

* Introduced hybrid physics mode parameter
* Implemented physics independent velocity computation
* Modified localization stage to be physics agnostic

* Fixing velocity compute interval in sync and async mode.
Made motion planner stage work with internally computed velocities.

* Made collision stage agnostic to actor physics

* Sampling waypoint buffer for teleportation window

* WIP: Teleportation changes

* WIP2: Teleportation changes

* Fixes waypoint window and vehicle spawning

* hotfix to performance benchmark

* comment out debugs

* changelog

* fixes collision bug

* fixes package error and out_of_range bug

* changes after review

* Left & Right Transit of a lane: Waypoint mapping

Co-authored-by: Praveen Kumar <pravinblaze@hotmail.com>
Co-authored-by: Soumyadeep <soumyadeep.dhar@kpit.com>
2020-03-30 22:53:29 +02:00
Bernd Gassmann ba8c28975f Fixed pylint error 2020-03-26 17:03:14 +01:00