Commit Graph

1395 Commits

Author SHA1 Message Date
Daniel Santos-Olivan 9a81ecf045 CarlaServer: Open/Close door logic implemented in plugin 2021-09-16 11:28:46 +02:00
Joel Moriana 321a4495f6 fix bug reading junction and geodesic grid id from cached map 2021-09-15 11:28:55 +02:00
Guillermo f90c2c6123 Added ymls and Cross C++ function 2021-08-07 17:43:38 +02:00
Jacopo Bartiromo 32465c3ba8 Revert broken MP stage change 2021-08-02 16:37:39 +02:00
Joel Moriana c84747676e fix bug generating too near waypoints 2021-07-30 01:05:58 +02:00
Jacopo Bartiromo d74495c7ff Fixes issue with pedestrins in ALSM
Some changes in constants for approaching vehicles
2021-07-28 18:19:02 +02:00
Guillermo c611c1b464 Smoothed TM's PID 2021-07-28 18:19:02 +02:00
Axel 45d8e30c88 Fixed weather default parameters 2021-07-28 17:57:34 +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 c2b93b374a Removing unused variable 2021-07-26 12:57:10 +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 ec64374db6 Added ShowDebugTelemetry to API 2021-07-23 10:34:54 +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
bernat 76a51b9010 Removing spaces 2021-07-20 22:12:36 +02:00
bernat 71102a2336 Move implementation of class to .cpp 2021-07-20 22:12:36 +02:00
Roel Algaba Brizuela 5850bfcbdf Fix compilation error 2021-07-20 22:12:36 +02:00
Roel Algaba Brizuela 3c89b03c54 Updated file transfer system 2021-07-20 22:12:36 +02:00
Roel Algaba Brizuela 66cd52b7e8 Modified file transfer to avoid multiple downloads 2021-07-20 22:12:36 +02:00
bernat cd76952655 Fixing environment variable in windows 2021-07-20 22:12:36 +02:00
alejandroFraga 1a58b48564 OpenDrive .xodr file integrated with the required file system 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
Axel 9c2d8aef94 Added comments 2021-07-13 19:25:44 +02:00
Axel a34e12f4f4 Fixed excluded lanes 2021-07-13 19:25:44 +02:00
Axel 2f488b6efe Added lane check to landmark search 2021-07-13 19:25:44 +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 e9efa7677e Added Command: ApplyVehiclePhysicsControl 2021-07-02 10:26:00 +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 71682ee57f LibCarla::Client.h Fixed tick in apply batch 2021-06-16 10:57:38 +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
Daniel Santos-Oliván c88dc50052 Added missing header 2021-06-03 11:34:33 +02:00
Axel 68d75a9874 Fixed inacurate class description. Removed unused files. 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 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
Jacopo Bartiromo d3f8b58ae2 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.
2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 83f0a0097c Removed all debug helper functions 2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 0002f0b478 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
2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 5f0f95879e WIP: Fixing hybrid mode 2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 2ef69447e3 Fixing variable name 2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 252be2d881 Fixing variable name 2021-05-28 11:31:10 +02:00
Jacopo Bartiromo 341571c762 Changing several constant variables
Removing sorting in LocalizationStage.cpp
2021-05-28 11:31:10 +02:00
Daniel Santos-Olivan e3ba9e4940 Added tire stiffness forces to physics control 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
Axel 84b469b59e Added inertial position to parser. Updated osm2odr version. 2021-04-29 11:33:01 +02:00
Daniel Santos-Oliván 2eddbbcb39 Fix bug in lidar point count 2021-04-14 23:30:03 +02:00
Axel d7069ee098 Changed profiling macro fot static strings. 2021-04-07 12:34:05 +02:00
Axel 2584d884b9 Added trace profiler events for unreal insights. 2021-04-07 12:34:05 +02:00
doterop 86efe6f581 Added some UE isnights traces 2021-04-07 12:34:05 +02:00
Axel ed6062e5dd Added new argument to recreate sensors in the replayer. 2021-04-01 12:32:30 +02:00
bernat 7580c682f6 Disable the minimum size of a network packet to be sent 2021-03-31 10:00:24 +02: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
Daniel Santos-Olivan a0d8de23bc Fix bug in get_up_vector() 2021-03-15 12:37:15 +01:00
bernat 0ec6a45563 Ignore any error from socket when closing it 2021-03-08 14:48:22 +01:00
Axel 7d135da9c6 Added shut_down function to TM. 2021-03-08 13:31:28 +01:00
Axel c5fe20ab60 Compilation fix 2021-03-08 13:31:28 +01:00
Axel 081bb4191f Add small wait in TM for the next tick. 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 bb05155688 Added missing constant. 2021-03-08 13:31:28 +01:00
Axel 61542fa488 Fixed memory leak when activating TM in some maps in asynchronous mode 2021-03-08 13:31:28 +01:00
Axel 3fc6bce36c Added JSON ingestion for chrono vehicle definition 2021-03-04 12:48:57 +01:00
doterop 37ae251d1e Fixed IsAlive 2021-03-03 12:12:40 +01:00
Jacopo Bartiromo 8ae9090be2 Changes in constant values
Added new constants
2021-03-02 13:01:58 +01:00
doterop f379c63d43 Added functions to initialize is_alive from episode information 2021-03-02 12:56:21 +01:00
doterop 8604f81b0a destroy_actor now returns a bool 2021-03-02 12:56:21 +01:00
Axel f45e0d7c08 Added substep algorithm for chrono. Added initial UE4 terrain detection with raycast. 2021-02-18 10:04:35 +01:00
Axel1092 14a634aa29 Added chrono compilation support for windows. 2021-02-18 10:04:35 +01:00
Axel 7c3367325f Added chrono library 2021-02-18 10:04:35 +01:00
Axel 3bb3b0d3d5 Revert "Fixed tm loosing control of cars with low fps"
This reverts commit 30fc87a11a.
2020-12-22 20:19:50 +01:00
Axel 30fc87a11a Fixed tm loosing control of cars with low fps 2020-12-22 16:12:26 +01:00
Daniel Santos-Olivan 07d0f66c30 Simulator: We return to sync frame but with lower timeout 2020-12-21 23:04:07 +01:00
Daniel Santos-Olivan 14c22d9267 Fix Async - FixedDeltaTime mode
In ApplySettings we also need to check that the FixedDeltaTime
is correctly set when asynchronous mode.
2020-12-18 22:43:46 +01:00
Daniel Santos-Olivan 846b24cfac Removed synchronization causing timeout in apply_settings 2020-12-18 22:43:46 +01:00
Daniel Santos-Olivan 5d7a978527 Corrected type to avoid compilations issues in windows. 2020-12-17 19:03:20 +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
Jacopo Bartiromo 5170ca5880 Extends mutex to TM stages 2020-12-16 22:02:45 +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
Daniel Santos-Olivan fd18ad85a9 Fix problem with reload map in the new syncronous pipeline 2020-12-15 22:31:48 +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
Axel cba230bc0d Added toggle to select deterministic/physically based ragdoll animation. 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
Axel ad58149d17 Fixed distance > 0.0 bug for landmark search. 2020-12-03 10:07:44 +01:00
Axel 6189aa59f6 Changed the default value of lane change record to match OpenDRIVE specification. 2020-11-25 11:50:00 +01:00
Axel 2fbae920b9 Fixed conversion of std::string to FString. 2020-11-25 09:23:45 +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 ab16a64ffb Added type to EnvironmentObject 2020-11-24 10:30:35 +01:00
doterop 42d67c2d28 Moved bounding_box to actor 2020-11-20 15:03:03 +01:00
Daniel Santos-Olivan d3879a1c53 Removed warning in LibCarla 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
Axel c7ca5d1b2b Review fixes 2020-11-05 16:15:02 +01:00
Axel 5a56cb38d5 Small update to default lane validities. 2020-11-05 16:15:02 +01:00
Axel d7d79c3a63 Fixed bug in waypoint.get_landmarks(). Removed landmarks with lane validity [0,0]. 2020-11-05 16:15:02 +01:00
Daniel Santos-Olivan f6da3d1718 Minor formatting changes 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 301eb9032e Changed default substepping parameters 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan 1c08f651d4 Added warnings for substepping parameters. 2020-11-05 14:25:04 +01:00
Daniel Santos-Olivan bbd3f4df4f Added substepping options in world options
Now, we can modify the substepping in the client.
TODO: Remove Logs
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
adsim d1321419b2 drawbuffer:fix compile error on windows 2020-10-30 10:33:48 +01:00
adsim b1fe99b7df fix stuck in DrawBuffer at LocalizationStage 2020-10-30 10:33:48 +01:00
Marc Garcia Puig a53c697f69 Sync IMU transforms 2020-10-27 17:22:02 +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
Jacopo Bartiromo 52d706014b Remove TM's Traffic Light reset, and use the new one from World instead 2020-10-26 09:07:58 +01:00
Jacopo Bartiromo a66906d153 Removes debug prints 2020-10-21 11:47:23 +02:00
Jacopo Bartiromo 4052fa4be6 Fixes vehicle elimination algorithm 2020-10-21 11:47:23 +02:00
Praveen Kumar 7f6c2b3594 Adding null checks in LocalizationStage::ExtendAndFindSafeSpace 2020-10-21 11:47:03 +02:00
Axel 530f56e78b Changed LaneType enum from unsigned to signed type 2020-10-20 16:24:00 +02:00
Pasch, Frederik fddf3c9b2e Update ad-rss-lib to 4.4.0 2020-10-20 14:41:19 +02:00
doterop 2fbfda2f24 Renamed and added enable/disable call 2020-10-19 21:31:45 +02:00
doterop 8aedb57a97 Updated mesh with objectlabel 2020-10-19 21:31:45 +02:00
doterop df6e6eef65 Renamed object to mesh 2020-10-19 21:31:45 +02:00
doterop 374995b835 Added CarlaObject and objects function. 2020-10-19 21:31:45 +02:00
Jacopo Bartiromo 859dfffb5e Sorts vehicles by ID to avoid race condition in TM 2020-10-14 11:16:40 +02:00
berndgassmann b91e1b5e0e
Merge pull request #3388 from carla-simulator/fix_rss_sensor 2020-10-08 11:29:25 +02:00
bernat 76a1e95c6f Make function 'const' 2020-10-07 10:56:04 +02:00
bernat 4550573b5e Let skip messages in async, and block on sync mode 2020-10-07 10:56:04 +02:00
bernat 1d91e187c3 Avoid deadlock at high frame rate by race condition packets 2020-10-07 10:56:04 +02:00
Daniel Santos-Olivan 7bd1d6e920 SetEnableGravity fixed for pedestrians
Also removed some debug prints
2020-09-30 19:38:54 +02:00
Daniel Santos-Olivan 95abf25a10 Added EnableGravity and better SetSimulatePhysics 2020-09-30 19:38:54 +02:00
doterop e05b58c2a4
Retrieve BBs of level (#3360)
* Added new function to calculate BBs on SKM and SM

* Added BB calculation for an array of actors

* Added BB folliage calculation

* Added a call on the GM to get all the BBs of the level

* Fixed Folliage BB calculation.

* GM::GetAllBBsOfLevel now returns the array of BBs

* Added call on the server side to retrieve the BBs

* Removed debug draw calls

* Added call to the PythonAPI

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Added missing include

* Changed None to Any in PythonAPI

* Fixed Any enum

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Changed None to Any in PythonAPI

* Fixed Any enum

* Fixed rebase

* Fixing wrong BB on splines

* Fixed ISM transform to World

* Fixed duplication of RotateVector

* Added Rotation to BB output string

* Removed hidden components and procedural building

* Fixed string BB output

* Removed logs

* Fixed filter on pedestrians

* Fixed black debug lines in package

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-09-24 23:33:11 +02:00
Jacopo Bartiromo 7d91a14fae Fixes float conversion in TM 2020-09-24 16:18:20 +02:00
Jacopo Bartiromo a4799d5fa8 Minor change to warning message 2020-09-23 20:43:30 +02:00
Jacopo Bartiromo e7ff12fa78 Changes default behavior for OSM parameter in TM 2020-09-23 20:43:30 +02:00
Daniel Santos-Olivan ffabf4cf3e Added ApplyForce and ApplyTorque 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan a22bdc51cc Added commands for AddTorque and AddForce 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 30ba2b3323 Exposed AddForce and AddTorque 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 2edd5427cb Minor format changes 2020-09-23 20:40:44 +02:00
Daniel Santos-Olivan 4447661d66 First version of the Constant velocity mode
This mode can be enabled in the API and it will keep
a velocity constant.
For now, it needs to be disable automatically but this
can be improved in the future.
2020-09-23 20:40:44 +02:00
Jacopo Bartiromo 0c83622153
Support Off state for traffic lights in Traffic Manager (#3332)
* Support off state for traffic lights in Traffic Manager

* Removed off state workarround.

Co-authored-by: Axel <axellopez92@outlook.com>
2020-09-22 15:41:10 +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
Axel 4f5b66b0a0 Changed call type for traffic light syncronization. 2020-09-22 15:04:28 +02:00
Axel a75fc59eb0 Added reset all traffic lights function. 2020-09-22 15:04:28 +02:00
Daniel Santos-Olivan 9f5758577d SetVelocity -> SetTargetVelocity
Change the commands set_velocity to set_target_velocity
for both linear and angular velocities.
2020-09-22 12:00:22 +02:00
doterop cc7b1ea910
Retrieve BBs of all the elements of the level (#3301)
* Added new function to calculate BBs on SKM and SM

* Added BB calculation for an array of actors

* Added BB folliage calculation

* Added a call on the GM to get all the BBs of the level

* Fixed Folliage BB calculation.

* GM::GetAllBBsOfLevel now returns the array of BBs

* Added call on the server side to retrieve the BBs

* Removed debug draw calls

* Added call to the PythonAPI

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Added missing include

* Changed None to Any in PythonAPI

* Fixed Any enum

* Added check for empty folliage actors

* Added missing EOF

* Added new RotateVector function

* Added rotation to the BBs

* Update changelog

* Split BB calculation on more functions

* Add tag query and simplified Folliage actor BB calculation

* Look for ISM instead of HISM

* Cleaning comments

* Fixed BB duplication on BP_Procedural_Buildings

* Fixed BB duplication on vehicles BPs

* Added pedestrians case

* Added CityObjectLabel enum on PythonAPI

* Splitted logic in small functions

* Fixed uint8_t

* Merged BB of the lights in a TL

* Splitted work into more functions

* Added missing BB and rotation to TL

* Cleaned comments

* Changed None to Any in PythonAPI

* Fixed Any enum

* Fixed rebase
2020-09-21 18:22:03 +02:00
Praveen Kumar f3d357d7d0 Implemented vehicle removal in OSM mode. 2020-09-18 14:55:14 +02:00
Praveen Kumar bc5871330a Implemented parameter for OSM mode. 2020-09-18 14:55:14 +02:00
Axel 7bbb7f9c54 Fixed ugly z-fighting issue with OSM maps. Added AProceduralMeshActor for easier actor inspection in the editor. 2020-09-17 18:35:30 +02:00
Jacopo Bartiromo 14900e3bb7 fixes std::numeric_limits<float>::epsilon error 2020-09-17 15:51:21 +02:00
Jacopo Bartiromo 318681e276 fixes add entry issue 2020-09-17 15:49:07 +02:00
Marc Garcia Puig 0a837ff1a0 Fixed bad_weak_ptr + updated deprecated asio calls 2020-09-16 13:12:02 +02:00
Jacopo Bartiromo 4757ce4dcc
Fixes a map change error when TM is in synchronous mode (#3288)
* 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

* Remove manual unlock of mutex

Co-authored-by: Néstor Sabater <web.nsabater@gmail.com>
Co-authored-by: ll7 <32880741+ll7@users.noreply.github.com>
Co-authored-by: Praveen Kumar <pravinblaze@hotmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
2020-09-16 13:11:04 +02:00
doterop 5bdd65ca0e Added call to the PythonAPI 2020-09-10 15:48:22 +02:00
bernat e8f103c786 Remove unused .xodr parsing call 2020-09-09 23:07:34 +02:00
Axel 63ad110bf5 Fixed test compilation. 2020-09-03 19:27:53 +02:00
Axel 15f93a6862 Added libpng to linux setup. 2020-09-03 19:27:53 +02:00
Pasch, Frederik 5f67e28821 Update RSS library to 4.1.0
Add setMapLogLevel() to rss sensor API
2020-09-03 16:15:54 +02:00
Marc Garcia Puig b15f0d2d50 Added Terrain sem seg label 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 8cff64fd00 Added new semantic tags 2020-09-02 14:44:42 +02:00
bernat d23ce106bc Add stop for the replayer 2020-07-31 16:38:41 +02:00
Marc Garcia Puig 3d3e82f8ad Added Sky, Ground and Bridge 2020-07-31 15:16:06 +02:00
Daniel Santos-Olivan 96d0ae27e6 Refactor SemanticLidar in LibCarla and PythonAPI 2020-07-31 15:15:01 +02:00
Daniel Santos-Olivan e0430e66a1 Refactor SemanticLidar in server side. 2020-07-31 15:15:01 +02:00
Jacopo Bartiromo c2cc075d23 Changes in apply batch command for async mode 2020-07-31 15:14:14 +02:00
Daniel Santos-Olivan 0ea498f744 Indentation correction 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 53f54ee0b7 Fix minor header return. 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 92892ec8e9 Rewrite of RayCastLidar to inherit from RayCastRawLidar
to reuse code
2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 12cf111a45 Rewrite the RayCastRawLidar to store all info
- We needed to change completly the way we store and compute
  the data because for some reason we could access the actor
  information from the computation threads so we store all
  the FHitResult in the Sensor and then we compute the Detection
  information when we store in the LidarRawData structure.
2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 3c5f051f93 Changed data structures to data folder 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 3e1f17741c LidarRawData now inherits from LidarData to avoid repetion of code 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 08e97be923 Rename LidarData and prepare it for merge it with LidarRawData 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan a4a9197c20 Removed unused file 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan 4f2fec1f64 Addapted PointCloud to both Lidars 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan e93f9d328d Added needed Writing functions to old lidar 2020-07-30 15:16:42 +02:00
Daniel Santos-Olivan fdb3553b2c Added data/serializer structures for RayLidar 2020-07-30 15:16:42 +02:00
Daniel Santos-Oliván f26ae8f8ac RayCastRawLidar: First version, still in a very early stage. 2020-07-30 15:16:42 +02:00
Axel cb431f1015 Removed debug warning. 2020-07-30 12:31:19 +02:00
Axel1092 7b455ce92e Compensate traffic light displacement. 2020-07-28 09:28:17 +02:00
Axel1092 215ceff451 Added stops in the ground from roadrunner. 2020-07-28 09:28:17 +02:00
Axel1092 284f1e726f Ficed conversion from object record to signal. 2020-07-28 09:28:17 +02:00
Axel1092 cbd12ac056 Added detection of 'Speed_' object record from roadrunner to interpret it as a speed signal. 2020-07-28 09:28:17 +02:00
Pasch, Frederik d20e6ef7ca RSS: Cleanup
- Only calculate for new frames
- Return calculation result
2020-07-23 12:59:37 +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
Axel1092 64aa5b0396 Fixed road discretization for long geometries. 2020-07-17 20:04:58 +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
Axel1092 2d26512209 Added new frozen behavior. 2020-07-10 11:36:31 +02:00
Axel1092 07d016d318 Added reset group function to API. 2020-07-10 11:36:31 +02:00
Daniel Santos-Olivan 43e2809249 Added a warning when the SprintArm transformation
is ill formed.
2020-07-09 10:24:45 +02:00
Daniel Santos-Olivan 0d6a2ea184 Added default constructor for LidarDetection 2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan 1926b68e70 Change variable name to adapt to code standard and added
stream operator for LidarDetection
2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan 8e68cbdd8a Fix error in the serializer of LidarMeasurament. 2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan a3ba5ca8f0 Change from xyz to rpc::Location 2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan 1d9bb78a8d Format changes to answer review 2020-07-08 11:44:23 +02:00
Daniel Santos-Olivan 89da61292d Exposing the 4-matrix form of the transformation
to the client API
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
Daniel Santos-Olivan 62e8b4ec1e Fix error in the inverse 4-matrix transformation 2020-07-02 12:22:12 +02:00
Daniel Santos-Olivan 1aa286f6a9 Added a getter to the 4-matrix form of the
inverse transformation for the client
2020-07-02 12:22:12 +02:00
Daniel Santos-Olivan 7e2b57338b Exposing the 4-matrix form of the transformation
to the client API
2020-07-02 12:22:12 +02:00