Commit Graph

1023 Commits

Author SHA1 Message Date
sergi.e 09945c9a8c
Fix force lane change right/left (#2872) 2020-05-20 14:47:37 +02:00
bernat 09ec923c87 Removed the temporal workarounds 2020-05-14 14:22:30 +02:00
bernat a93ddab26a Fixing Pylint errors 2020-05-14 14:22:30 +02:00
bernat 74981af663 Added a test in smoke tests to check all spawnpoints in all maps 2020-05-14 14:22:30 +02:00
doterop 1c7306f982 Fix use of reserved keyword in python 2020-05-11 14:44:54 +02:00
Marc Garcia Puig 4eb6714e04 Removed unnecessary PythonAPI classes 2020-05-08 20:08:27 +02:00
sergi-e d305afa2fa DVS docs reviewed 2020-05-08 20:08:27 +02:00
Javier Hidalgo-Carrió 38432de658 python api: move logic in sensor data methods to DVSEventArray 2020-05-08 20:08:27 +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
sergi-e fd88d61aa7 Deleted links to CARLA versions after fixes to doc states 2020-05-08 13:51:04 +02:00
sergi-e f95feddbb7 Fixed typo on TM 2020-05-08 13:51:04 +02:00
sergi-e bfec9d099e Little change in header text 2020-05-08 13:51:04 +02:00
sergi-e 361372d496 Changed links to docs build 2020-05-08 13:51:04 +02:00
sergi-e 564b7b9408 First iteration with getters, setters and previous APIs 2020-05-08 13:51:04 +02:00
sergi-e 0124a47bc9 Docs updated 2020-05-05 11:16:23 +02:00
bernat 4dc6eba755 New API function to add angular impulse to an actor 2020-05-05 11:16:23 +02:00
kbu9299 bcf542f579 Fix typos 2020-05-04 10:05:18 +02:00
bernat 1a2c2ea76a Changing to version 0.9.9 2020-04-23 15:52:28 +02:00
sergi.e cd35196d20
sergi-e/p099-updates (#2751)
* First draft TM updates

* Idle iteration

* Different updates

* Python API weather fix

* Added RSS sensor

* Added nightly builds

* Added texture mention to Town10

* Updated TM

* Updated contact mail

* New update on B,Jo,Ja comments

* Last fixes on Ja comments
2020-04-23 12:40:28 +02:00
bernat 19627ac094 Smoke test fix, and windows clean fix 2020-04-22 12:24:28 +02:00
doterop 4384e386c2
Light API (#2756)
* Added CarlaLight class.

* Added get and set for carla light type.

* Added LightManager, Light and LightState

* Fixed unapplied changes

* Fixed LM::GetAllLights

* Fixed Python getter

* Added LightManager, Light and LightState. Python bindings included.

* Completed LightManager communication and LightSubsystem on server

* Fixed concurrency and color conversion

* Added check for null case on RegisterLight and UnregisterLight

* Fixed map change crash in editor.

* Added client syncronization.

* Updated Python docs.

* Fixed client sync

* Added CarlaLight class.

* Added get and set for carla light type.

* Added LightManager, Light and LightState

* Fixed unapplied changes

* Fixed LM::GetAllLights

* Fixed Python getter

* Added LightManager, Light and LightState. Python bindings included.

* Completed LightManager communication and LightSubsystem on server

* Fixed concurrency and color conversion

* Added check for null case on RegisterLight and UnregisterLight

* Fixed map change crash in editor.

* Added client syncronization.

* Updated Python docs.

* Fixed client sync

* Updated changelog

* New iteration on lights docs

* Fixed docs

* Content version updated

* Removed NonCopyable

* Compilation fix.

Co-authored-by: Axel1092 <axellopez92@outlook.com>
Co-authored-by: sergi-e <rigesklaine@gmail.com>
Co-authored-by: bernat <bernatx@gmail.com>
2020-04-17 12:29:54 +02:00
sergi-e 9d3d97377b New draft with parameters. Pending questions. 2020-04-16 12:41:06 +02:00
Marc Garcia Puig d2a16e9a47 Improved PythonAPI map generation params docs 2020-04-16 12:41:06 +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 e7a23ea941 Delete wrongly referenced .value attribute 2020-04-15 18:33:56 +02:00
Marc Garcia Puig 7b8dc6aaf8 Added an OpenDRIVE sample 2020-04-14 21:00:04 +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
Marc Garcia Puig 3443a64db2 Fixed GetCornerPositions 2020-04-13 16:50:32 +02:00
Marc Garcia Puig 731743e79c Fixed doc spaces 2020-04-13 16:50:32 +02:00
Axel1092 f2130d1ef4 Updated changelog. Updated Python documentation. 2020-04-13 16:50:32 +02:00
Axel1092 d5c57e8903 Added parameter to enable/disable junction smooting. Moved config file variables to CarlaGameInstace for opendrive generation parameters. 2020-04-13 16:50:32 +02:00
Marc Garcia Puig e2c0349ef6 Exposed max chunk size to the PythonAPI 2020-04-13 16:50:32 +02:00
Axel1092 5ddb97a58e Added parameter to disable rendering meshes generated from OpenDRIVE. 2020-04-13 16:50:32 +02:00
sergi-e 9cb8f19c72 Added method to set radius in hybrid mode. 2020-04-13 13:06:38 +02:00
sergi-e 88148eb3de Python API updated. 2020-04-13 13:06:38 +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 79d6298395 Cleaned logs 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 711738b1b9 Fix PythonAPI linking to libstdc++ (fix pyTorch) 2020-04-09 17:33:22 +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
berndgassmann bcd852e72a
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-04-06 13:04:57 +02:00
glopezdiest fdf0e39e7f
Fixed RoadOptions calculus at the global route planner 2020-04-06 09:14:07 +02:00
Bernd Gassmann f3930a8f0f Ensure make package always package the correct version
Add postfix to libcarla_client{_rss}{_debug}.a in RSS variant.
make package target always rebuilds the final python shared library and
so cannot package wrong version.
Put LGPL lisence in python egg if RSS is linked.
2020-04-03 19:57:44 +02:00
berndgassmann c310d66b3e
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-04-03 13:58:22 +02:00
sergi.e 29e8e14cc1
Sergi e/rss docs (#2686)
* RSS first add

* RSS docs first draft.·

* Second draft.

* Codacy fixes

* Readme update
2020-04-03 13:57:11 +02:00
berndgassmann 07fafaea67
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-04-02 19:59:17 +02:00
Axel1092 bdd0aaaac9 Added function to retrieve landmarks in the same group. 2020-04-02 19:01:31 +02:00
sergi-e 4b31d0fb40 Docs update 2020-04-02 19:01:31 +02:00
Axel1092 69e5e8bbf6 Fixed missing documentation for get_junction function. Updated changelog. 2020-04-02 19:01:31 +02:00
Axel1092 e24bcebfbf Added get landmarks functions from map. 2020-04-02 19:01:31 +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 938c4516ae Added detailed documentation of RSSSensor 2020-04-01 11:51:33 +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 849a6c54c5
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-03-31 18:28:22 +02:00
Marc Garcia Puig 0eed245e34 Review fixes 2020-03-31 12:11:39 +02:00
Marc Garcia Puig 5520f31d0a Exposed road mesh generation params to PythonAPI 2020-03-31 12:11:39 +02:00
berndgassmann dc6c80a820
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-03-31 10:28:35 +02:00
sergi.e e8332e362f
sergi-e/links-world-methods (#2677)
* links fixed

* Added O methods
2020-03-31 01:39:50 +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
doterop 081de023ce Added methods to get trafficlights and trafficsigns from landmarks 2020-03-30 19:44:46 +02:00
Bernd Gassmann d913938f1f Integrate ad-rss without find_package to cope with cmake 3.5 and newer boost version 2020-03-30 17:52:37 +02:00
berndgassmann dfe175c8bb
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-03-30 14:03:47 +02:00
sergi.e 239c4c5acd
sergi-e/p098-api (#2638)
* Python API iteration p098

* New order enum

* Fixed order getters setters

* New python api md

* New iteration, dunder coded

* PythonAPI/docs/doc_gen.py

* fix method_name
2020-03-30 10:18:13 +01:00
berndgassmann 7d351b721d
Merge branch 'master' into feature/integrate_rss_3.0.0 2020-03-27 14:45:53 +01:00
Bernd Gassmann ba8c28975f Fixed pylint error 2020-03-26 17:03:14 +01:00
Bernd Gassmann 950ed3716a Extend and cleaned manual_control_rss.py example
By the usage of ego_dynmics parameters and routing targets.
2020-03-26 14:59:47 +01:00
glopezdiest a0c88b7ba6
Minor changes to local_planner + some bug fixes (#2653)
* Max values are parameters + max_brake error + print changes

* Removed debug
2020-03-26 11:14:32 +01:00
Bernd Gassmann 7d80260764 Formatted manual_control_rss.py using codeformat.py 2020-03-25 18:44:03 +01:00
Bernd Gassmann 67b17ee42a Code format according to google style
and tried to spot the remaining CamelStyle variable names and changed to
snake_style

Added code formatting script and clang-format slightly changed from
google format:
AccessModifierOffset: -1 -> -2
AllowShortFunctionsOnASingleLine: All -> Empty
ConstructorInitializerIndentWidth: 4 -> 2
2020-03-25 18:34:29 +01:00
Bernd Gassmann 9139af555a Revert not required setup.py modifications 2020-03-24 19:17:20 +01:00
Bernd Gassmann eea805de10 Fix pylint warnings 2020-03-24 19:02:48 +01:00
Bernd Gassmann 20e61ef747 Try to comply with codacy output 2020-03-24 18:28:42 +01:00
Bernd Gassmann c64472b40f Fix python3 2020-03-24 14:49:46 +01:00
Bernd Gassmann eea9359527 Integrate AD RSS v3.0.0
Move carla::client::Timestamp ostream operator to Timestamp.h to enable
reuse in log messages

Use of generated python interfaces of ad::physics, ad::map and ad::rss
types

RssSensor (and therefore also the RssRestrictor) now work globally on
the whole road network.

RssCheck: object conversion done in parallel using tbb
2020-03-24 13:46:54 +01:00
Axel1092 6acecb2579 Added spawn of traffic signals. 2020-03-23 13:36:12 +01:00
sergi-e 2ae7902714 Fixed landmarks 2020-03-18 20:49:37 +01:00
sergi-e 78a191edfe Added return for recorder methods 2020-03-18 14:21:46 +01:00
Jacopo Bartiromo 4bc53a7f6c
New behavior agent + small changes to manual and automatic control. (#2508)
* pr agent behaviors

* pr agent behaviors

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* limits for steering

* Add files via upload

* pylint formatting

* pylint formatting

* seed flag for repeatability

* seed flag for repeatability

* Add files via upload

* Add files via upload

* first pr review corrections

* Add files via upload

* Add files via upload

* Delete parameters.py

* Add files via upload

* Add files via upload

* Add files via upload

* Add files via upload

* start of pedestrian avoidance + minor fixes

* start of pedestrian avoidance + minor fixes

* get_map check

* get_map check

* get_map check.

* Delete basic_agent.py

* Delete roaming_agent.py

* pylint final changes

* Pylint final check

* more pylint

* minor fix

* minor changes

* Add files via upload

* changes in PID + old models

* trying to stabilize waypoint distance

* fixed step in sampling radius

* folder structure change and more stuff

* pylint fix

* re-introducing pedestrian avoidance

* minor things

* deleted unused folder

* restore basic folder

* resurrected behavior agent

* set debug to false

* remove prints + open PR

* changelog

* setting behavior agent as default in auto_control
changing manual_control to have slower increasing braking too

* Requested modifications PR

The vehicle can now accelerate and brake at the same time again.
Removed unnecessary  variable.

* Fix frame rate display for the client

* removing unnecessary duplication
reordering folders
code cleanup for codacity

* unused import

* codacity and travis changes

Co-authored-by: Joel Moriana <joel.moriana@gmail.com>
2020-03-17 11:31:05 +01:00
sergi.e 80708b9daa
Sergi e/p098 core (#2583)
* Style fixes and iteration

* Mid iteration for rebase

* Finished core + town slider

* First fix waiting for Reviewable

* Iteration on G comments

* Added spectator example

* Fixed typo

* Added minor change to generate opendrive world
2020-03-17 09:24:43 +01:00
Rowan McAllister b8bc2ba43e Correcting PID controller issue 2544. 2020-03-16 17:05:01 +01:00
Rowan McAllister 77ed7e7ca1 Correcting PID controller issue 2544. 2020-03-16 17:05:01 +01:00
Guillermo 5404807db4 Removed unused import 2020-03-13 18:04:20 +01:00
Guillermo a4bd6a13b8 Remade red traffic light detection 2020-03-13 18:04:20 +01:00
Axel 75495b62c6 Fixed docs. 2020-03-11 12:09:02 +01:00
sergi-e c4cb43d023 Documentation second draft 2020-03-11 12:09:02 +01:00
Axel 6284d202fd Python documentation. 2020-03-11 12:09:02 +01:00
Praveen Kumar e32e6bff93 Removing debug statements 2020-03-09 16:35:24 +01:00
Praveen Kumar e55d5750e9 Sychronous mode bug resolution 2020-03-09 16:35:24 +01:00
Praveen Kumar 4f21f94ac0 Synchronous mode bug demonstration 2020-03-09 16:35:24 +01:00
sergi-e cfdbe8fb5e Fixed vehicle lights 2020-03-09 16:23:27 +01:00
bernatx 7509e9d8de Changing version to 0.9.8 2020-03-06 16:11:51 +01:00
Praveen Kumar 48fb019be6 Added parameter set_percentage_keep_right_rule 2020-03-06 16:06:34 +01:00
Sekhar Barua 6f892cff57 Changes to add Global distance to Leading Vehicle 2020-03-06 16:06:34 +01:00
doterop 94affd9b79
Added timeout to World Tick (#2556)
* Added timeout to World Tick

* Updated Changelog

* Fixed timeout on SetEpisodeSettings

Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Jacopo Bartiromo <32928804+jackbart94@users.noreply.github.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-03-06 13:04:04 +01:00
sergi-e db0e95cc1e New iteration on Jacopo comments. 2020-03-06 12:56:44 +01:00
sergi-e 807c20d3df brief iteration before rebase 2020-03-06 12:56:44 +01:00
adas-user f5e58f5305 Traffic manager second draft 2020-03-06 12:56:44 +01:00
adas-user 2d23b37f5a Fixed first draft traffic manager 2020-03-06 12:56:44 +01:00
germanros1987 9c70de31b1
Taking account of the very last waypoint buffer (#2407)
* Taking account for the very last waypoint buffer

* Update CHANGELOG.md

* Removing unused variables (Travis)

* Update CHANGELOG.md

Co-authored-by: Praveen Kumar <35625166+pravinblaze@users.noreply.github.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-03-05 08:10:17 -08:00
Guillermo 4c60aeca69 Back to 35 2020-03-05 14:35:47 +01:00
Guillermo 706136a709 Down to 33 2020-03-05 14:35:47 +01:00
Guillermo 7167c83d4a Increased to 35 2020-03-05 14:35:47 +01:00
Guillermo 88f82081fc Added constant at local_planner 2020-03-05 14:35:47 +01:00
Guillermo 6db23f2d4e Ups 2020-03-05 14:35:47 +01:00
Guillermo 34e9290950 Increase the range of RoadOptions.STRAIGHT 2020-03-05 14:35:47 +01:00
Marc Garcia Puig 90284dc91e
Modifying pipeline for use AWS cloud (#2504)
Build success


Added package


Remove delete workspace for testing


Clean workspace after build


Add deploy for testing


Relocation of Unreal Engine


Using absolute path for UnrealEngine


Execute shell


Test without remove at end


Using bash instead of shell


New jenkins file for testing nodes

new tag

modified

modify 'test' stage


all in GPU


tags


all in 'build' and 'gpu'


Adjust some scripts to run smooth on GPU slave


force deploy always


Disable docker push


Remove all on slaves at end


add some locks


add some parallel stages


Fix windows package, now it copies all required files


Add 7zip option to compress package for windows


Add 'make CarlaUE4Editor' to windows


Fix the program files path for windows 64


More jobs on parallel


Add Update.bat to windows pipeline


Fixing make CarlaUE4Editor


Commenting stages in windows


Enable again download of content and fix artifact


Build only Ubuntu


Enable deploy of Docker


Make packaging of additional maps


Enabling windows build again


Adding Deploy for windows


Change URL to the new S3 buckets


Changed the Jenkins public IP


Fixes from Codacy


Disable Windows build


Add more time to smoke tests for connecting


Add 'run' option of examples without compilation


Enabled delete all after job


Adds a lock for the packaging


Removing all locks


Update the Doxygen step in Ubuntu


Fix nodes to use
2020-03-05 13:16:18 +01:00
Joel Moriana 4131cff859 Add default values for accelerometer and gyroscope.
Default values for accelerometer and gyroscope to avoid manual_control
crash in sync mode.
2020-03-04 12:31:54 +01:00
bernatx 640d57abd7 Fix 'Yield' reserved word in Windows 2020-03-03 16:57:29 +01:00
sergi-e 48247f1ad9 Final draft 2020-03-03 10:23:34 +01:00
sergi.e eae903e908
sergi-e/sidebar-bug (#2529)
* Fix indexes for all the documentation.

* Added instructions for development assets in linux build

* Table bottom-margin workaround
2020-03-02 09:40:34 +01:00
doterop 85b192530d
Doterop/traffic manager (#2468)
* Initial implementation of t.m. performance script

* Remove redundant getLocation() calls

* Demo for inter-client communication via Carla server

* WIP: To do: For client usage needed to be changed.

* Instead or client instance episodeProxy is passed to TM

* Instead or client instance episodeProxy is passed to TM

* parmeter improvements (walkers,cars,signs,lights)

* adding section id to map setup

* fix manual_control to reload car with autopilot on

* Instead of client instance episodeProxy is passed to TM.

* WIP: Only added vehicle register via RPC server / client call in TM to
local instance from remote instance. Similarly other APIs we need to
added.

* Added all TM APIs

* carla client now can provide TM instance if required.

* While getting TM instance if server given data is not valid new TM
instace is created. Need to decide what to do with earlier registed
vehicle with previous TM.

* Updated with HealthCheckRemoteTM() function to check TM server status
instead of ResetAllTrafficLights() for any new user client.

* Dynamic port selection added to TM server instace (in case of multiple
TM serve run, it required).

* Fixed change map error

* If registered TM at carla server is not present then remote TM should be
freed and new local TM instance is created.

* Created Process for Local TM.
It cheaks with total registered vehicles in it, if no register vehicles
for 5 sec, it closes it self.

In python spawn_npc.py Client Timeout set to 10 sec. as creating Process
is system dependent call and takes time.

User has to unregister vehicle before destroying it (if activated with
TM). Also neet to check TM unregister function to remove vehicles from
register list.

* Fix for collision ignore bug

* Update TM exit function check to compare registered vehicles with world
actors that if any valid vehicle present cointinue to run the TM else
stop.

* Print removal

* Splited work of main for loop in ApplyBatchCommandsSync

* WIP! Trying to get client directly

* WIP! Trying to access episode properly without getting it from TM ctr

* Changes to BatchControlStage for Sync Mode
Changes to Parameters for Synch Mode

* Added port support for TM. Multiclient MultiTM

* Added additions for RPC Synchronous Tick to TM.
Error handeling and code organization.

* Exposed API for Sync Mode

* TMServer notifies Server that it is gonna be destroyed

* Exposed Python API for Sync Mode

* Add TM as separate process and synchronous tick calls

* SetSynchronousModeTimeOutInMiliSecond method added

* TM shutsdown and informs to the connected clients

* WIP! Map change issues again

* Updated Traffic Manager for:
1) Multi-client, Multi-TM (as required) can be reistered to server.
2) TM is not a PROCESS separated from the user-client.
3) TM will exit if user-client exit.
4) If server closed, TM also get closed by catching runtime err.

* Server side changes ...

* Fixed possible stall on TM destruction

* fixing collision stage + cybertruck not safe

* Merge branch 'master' into 'soumyadeep/traffic_manager'

* WIP! Disconnection of server has to be properly handled by clients

* format update

* Fix bug unsignalized junctions

* # WARNING: head commit changed in the meantime

Merge branch 'doterop/traffic_manager' into soumyadeep/traffic_manager
Updates for Syncronized Tick.

* Updated runtime exception in Episode for smooth exit if TN server closed
for any other user client.

* Better Exception handeling

* Merged with jackbart94/tm_reduce_getloc_calls

* Merged soumyadeep/traffic_manager.
Removed World getter and recovered Episode as a parameter of TM ctr.
Fixed syntax errors.

* Initial implementation of t.m. performance script

* Remove redundant getLocation() calls

* Demo for inter-client communication via Carla server

* WIP: To do: For client usage needed to be changed.

* Instead or client instance episodeProxy is passed to TM

* Instead or client instance episodeProxy is passed to TM

* parmeter improvements (walkers,cars,signs,lights)

* fix manual_control to reload car with autopilot on

* Instead of client instance episodeProxy is passed to TM.

* WIP: Only added vehicle register via RPC server / client call in TM to
local instance from remote instance. Similarly other APIs we need to
added.

* Added all TM APIs

* carla client now can provide TM instance if required.

* While getting TM instance if server given data is not valid new TM
instace is created. Need to decide what to do with earlier registed
vehicle with previous TM.

* Updated with HealthCheckRemoteTM() function to check TM server status
instead of ResetAllTrafficLights() for any new user client.

* Dynamic port selection added to TM server instace (in case of multiple
TM serve run, it required).

* Fixed change map error

* If registered TM at carla server is not present then remote TM should be
freed and new local TM instance is created.

* Created Process for Local TM.
It cheaks with total registered vehicles in it, if no register vehicles
for 5 sec, it closes it self.

In python spawn_npc.py Client Timeout set to 10 sec. as creating Process
is system dependent call and takes time.

User has to unregister vehicle before destroying it (if activated with
TM). Also neet to check TM unregister function to remove vehicles from
register list.

* Fix for collision ignore bug

* Update TM exit function check to compare registered vehicles with world
actors that if any valid vehicle present cointinue to run the TM else
stop.

* Splited work of main for loop in ApplyBatchCommandsSync

* WIP! Trying to get client directly

* WIP! Trying to access episode properly without getting it from TM ctr

* Changes to BatchControlStage for Sync Mode
Changes to Parameters for Synch Mode

* Added port support for TM. Multiclient MultiTM

* Added additions for RPC Synchronous Tick to TM.
Error handeling and code organization.

* Exposed API for Sync Mode

* TMServer notifies Server that it is gonna be destroyed

* Exposed Python API for Sync Mode

* Add TM as separate process and synchronous tick calls

* SetSynchronousModeTimeOutInMiliSecond method added

* TM shutsdown and informs to the connected clients

* WIP! Map change issues again

* Updated Traffic Manager for:
1) Multi-client, Multi-TM (as required) can be reistered to server.
2) TM is not a PROCESS separated from the user-client.
3) TM will exit if user-client exit.
4) If server closed, TM also get closed by catching runtime err.

* Fixed possible stall on TM destruction

* fixing collision stage + cybertruck not safe

* Merge branch 'master' into 'soumyadeep/traffic_manager'

* WIP! Disconnection of server has to be properly handled by clients

* format update

* Fix bug unsignalized junctions

* # WARNING: head commit changed in the meantime

Merge branch 'doterop/traffic_manager' into soumyadeep/traffic_manager
Updates for Syncronized Tick.

* Updated runtime exception in Episode for smooth exit if TN server closed
for any other user client.

* Better Exception handeling

* Merged with jackbart94/tm_reduce_getloc_calls

* Merged soumyadeep/traffic_manager.
Removed World getter and recovered Episode as a parameter of TM ctr.
Fixed syntax errors.

* Rebased with master

* Changes after rebase

* Solving tab errors

* Updated Changelog

* Removing Destroyed vehicle's from TM Server

* Fixed uint compatibility with Windows

* Merged soumyadeep/traffic_manager. Discarded destroyed actors

* -Removed unnecessary files

* restoring docs from rebase

* Fix windows compilation

* refactoring stage-related code

* more code refactoring

* When map change the simulation doesn't throw exception anymore

* Fixed incorrect episode

* Fixed map change and TM remote detached thread destruction

* Syntax and comments fixes

* Missed change on previous commit

* Fixed compile minor compile issue

* Cleaned and fixed some issues after merge

* fix to sync localization bugs
modified PID parameters
revamping spawn_npc

* deleted tm_spawn_npc

* fixes spawn error in sync mode

* Redoing TM sync logic

* finished performance benchmark for tm

* deprecated wrapped methods:
register_vehicle
unregister_vehicle

* New TM management

* Fixed sync mode on TM

* Cleaned TM of prints and unussed functions

* collision stage checks for (0,0,0) to ignore.
in memory map has an # between keys to avoid possible mixup.
fixed spawn_npc with new sync mode

* changelog

* added more connection retries

* fixed changelog + comments (see reviewable)

* Moved socket include's to single header

* Added missing line at the end of the file

* Fixed syntax errors

* final commit

* Minor correction in comment

* update copyright year to 2020 + removed break

* restoring unwanted changes

* patch for smoke test error

* Removed "todo" for pylint

Co-authored-by: Jacopo Bartiromo <32928804+jackbart94@users.noreply.github.com>
Co-authored-by: Praveen Kumar <35625166+pravinblaze@users.noreply.github.com>
Co-authored-by: Soumyadeep <soumyadeep.dhar@kpit.com>
Co-authored-by: joel-mb <joel.moriana@gmail.com>
Co-authored-by: Sekhar Barua <58979936+sekhar2912@users.noreply.github.com>
Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-02-28 19:58:13 +01:00
Axel 08f5da35c4 Fixed documentation link. 2020-02-28 12:48:50 +01:00
sergi-e fea4866979 Documentation second draft 2020-02-28 12:48:50 +01:00
Axel 83180fe9a5 Python documentation. 2020-02-28 12:48:50 +01:00
Axel 3a27e7e5b5 Added signal parsing and queries. 2020-02-28 12:48:50 +01:00
Axel e9e2015674 Added Landmark class. 2020-02-28 12:48:50 +01:00
Marc Garcia Puig 8767cfe85f Updated docs 2020-02-28 11:02:45 +01:00
Marc Garcia Puig b5c32aa8d2 Fixed PR issues 2020-02-28 11:02:45 +01:00
Marc Garcia Puig 13432ef578 Extended util/config.py with custom xodr maps 2020-02-28 11:02:45 +01:00
Marc Garcia Puig a8aa5afa0a Added basic support for the client using custom xodr on server 2020-02-28 11:02:45 +01:00
bernatx 336559d993 Changes from PR (adjusting parameter names) 2020-02-27 10:10:21 +01:00
bernatx 85619ea31e Adding Ignore Hero to Replayer (Issue 1769) 2020-02-27 10:10:21 +01:00
Madecu 36f6920fee
Changed weather presets and manual_control.py fixed (#2455)
* Added more weather attributes

* Upload client_test.py as weather in utils
Activate mesh distance fields

* weather.py --> Added wetness, changed "cloudyness" , fixed some functions
Weather.cpp --> Skip weather
Weather.h --> Added "SetWeather" Function

* Changed ASCII characters in weather.py

* Finished weather script without dynamic weather

* Added missing end of file line.

* Fixed the initial state of weather.py

* Updated changelog & fix dynamic weather altitude

* New default values for weather presets
Temporal fix in manual_control.py to refresh weather when it opens the pygame windows or it changes the camera (Tab)

* Fixed walkers spawn in manual_control

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
Co-authored-by: doterop <daniel.oterop@gmail.com>
2020-02-25 12:18:37 +01:00
sergi.e 06b5a3d97b
sergi/api index bug (#2363)
* PythonAPI reuploaded

* Second draft with some fixes

* New third iteration full Python API

* Fourth iteration on PythonAPI

* Bounding box and Vehiclecontrol fixes

* Index fixed, added map suggestions.

* Added a note regarding when a vehicle is considered to be at traffic light.
2020-02-24 13:58:54 +01:00
sergi-e 386011dd96 Weird spacing fixed 2020-02-13 10:20:16 +01:00
sergi-e 22fc0c4be2 Added fix for index order 2020-02-13 10:20:16 +01:00
sergi-e 2570a31da0 Bug fixed index API 2020-02-13 10:20:16 +01:00
cassfalg 3f6021dff3
Add german / international keyboard support to manual_control.py (#1984)
* changed next sensor key from backquote to n

* fixed typo in spawn_npc.py

* reenabled backquote to switch sensor

Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-02-07 17:17:18 +01:00
Marc Garcia Puig aa381d05f9 Removed map_viewer 2020-02-07 17:16:48 +01:00
Axel 8bdf3f54d1 Fixed Python format. Removed unecessary include. 2020-02-07 17:16:48 +01:00
Axel 32756d511b Improved map_viewer performance. 2020-02-07 17:16:48 +01:00
Axel f43da77019 Added paramPoly3. Changed python map variable in map_viewer.py 2020-02-07 17:16:48 +01:00
Axel aa78942489 Added support for nearest neighbour for all geometries. Added geometry poly3. 2020-02-07 17:16:48 +01:00
Axel ae2ae92bf1 Added spirals and splines to opendrive parser. 2020-02-07 17:16:48 +01:00
Axel1092 49a09ff841
Axel1092/extend map api (#2380)
* Added GetPrevious function

* Added functions GetNextUntilLaneEnd and GetPreviousUntilLaneStart. Fixed GetPrevious issue.

* Added junction class.

* Added documentation for the python API. Fixed a bug regarding bounding box computation.

* Fixed formatting.

* Updated CHANGELOG.md.

* Fixed python format.

* Added GetPrevious function

* Added functions GetNextUntilLaneEnd and GetPreviousUntilLaneStart. Fixed GetPrevious issue.

* Added junction class.

* Added documentation for the python API. Fixed a bug regarding bounding box computation.

* Fixed formatting.

* Updated CHANGELOG.md.

* Fixed python format.

* Updated map API documentation

* updated mkdocs

* Prettified code.

* Removed nested carla repository

* Review fixes.

* Fixed small tab issues

* Improved code and comments.

* Small code fixes

* Small fix.

* Fixed until lane end and until lane start.

* Style fix

Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-02-06 16:43:23 +01:00
Marc Garcia Puig 07c09fd93b Added missing docs 2020-02-04 10:39:01 +01:00
Marc Garcia Puig 2e656362c9 Updated docs and content version 2020-02-04 10:39:01 +01:00
Marc Garcia Puig 7e57ec068d Allow manual_control to change vehicle lights 2020-02-04 10:39:01 +01:00
Marc Garcia Puig 3746fa3a75 Updated weather scripts 2020-02-04 10:39:01 +01:00
Marc Garcia Puig 459581b09f Exposed car lights to the client 2020-02-04 10:39:01 +01:00
bernatx 9e4eaf3e47 Updating the docs 2020-02-03 16:03:57 +01:00
bernatx 923a794bb6 Adding new way of getting waypoints from parameters from openDRIVE 2020-02-03 16:03:57 +01:00
Marc Garcia Puig d617db030e Improved docs 2020-02-03 09:50:54 +01:00
victor.anton 86c4411b88 Using CALL_RETURNING_LIST instead of custom function 2020-02-03 09:50:54 +01:00
victor.anton 34f993a7c9 Added Contains and Get(World/Local)Vertices to BoundingBox 2020-02-03 09:50:54 +01:00
Fabian Oboril 1f7669e4b3 Fixed agent crashes due to API changes in is_within_distance_ahead (#2386)
* Fixed agent crashes due to API changes in is_within_distance_ahead
2020-01-22 17:10:02 -08:00
Marc Garcia Puig 7bd95e49b6 Updated ContentVersion.txt 2020-01-20 20:53:58 +01:00
Marc Garcia Puig f270aa5949 Updated changelog & fix dynamic weather altitude 2020-01-20 20:53:58 +01:00
Marc Garcia Puig f57aaef687 Fixed the initial state of weather.py 2020-01-20 20:53:58 +01:00
marcos909 f866fa47d9 Finished weather script without dynamic weather 2020-01-20 20:53:58 +01:00
Marcos Delgado Cuevas 86e46f1a63 Changed ASCII characters in weather.py 2020-01-20 20:53:58 +01:00
marcos909 77fbadbf65 weather.py --> Added wetness, changed "cloudyness" , fixed some functions
Weather.cpp --> Skip weather
Weather.h --> Added "SetWeather" Function
2020-01-20 20:53:58 +01:00
marcos909 c3a89b5a57 Upload client_test.py as weather in utils
Activate mesh distance fields
2020-01-20 20:53:58 +01:00
Marc Garcia Puig a41bf95afd Added more weather attributes 2020-01-20 20:53:58 +01:00
bernat b9fbbf7fd0 Release candiadate (#2310) 2019-12-21 04:59:22 +01:00
Marc Garcia Puig 1d71ecb9a8 Fixed NumLock error automatic_control.py (#2306)
* Fixed NumLock error aut_cntrl.py

* Updated Chaneglog & reduced unused imports
2019-12-17 10:40:27 -08:00
bernatx c9358be60c Refreshing tm_spawn_npc script 2019-12-13 15:29:38 +01:00
Jacopo Bartiromo 6f3c4e261c Namespaces fix 2019-12-13 15:29:38 +01:00
bernatx 47a2d82738 Release Linux 0.9.7 2019-12-11 18:17:36 +01:00
dotero e9a2935a5a Fixing code formatting 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo f794f939f6 Higher min_junct_lookahead for traffic lights
pylint fix
2019-12-11 16:31:51 +01:00
Jacopo Bartiromo 02f292795a Increased min lane change distance
Rename tm_demo to _tm_spawn_npc
Add walker spawn
Remove tm_set_autopilot_test
2019-12-11 16:31:51 +01:00
Jacopo Bartiromo fc955bdcb7 PID Changes + WIP Collision Stage bug fix 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo 34a030f5bd Integrated changes regarding PID values.
New parameters to ignore actors or traffic light.
More WIP for killing vehicles.
2019-12-11 16:31:51 +01:00
Jacopo Bartiromo e36a0c8f13 WIP: unblocking by killing 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo 2428615934 traffic light reset demo working + other stuff 2019-12-11 16:31:51 +01:00
Praveen Kumar d3b35d7953 Modified cc::Vehicle::SetAutopilot to use TrafficManager 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo a7068d2f45 traffic light debugger, no junctions, lane marking 2019-12-11 16:31:51 +01:00
Praveen Kumar dd19da3af0 Implemented Parameters class
Integrated Parameters class with stages
2019-12-11 16:31:51 +01:00
Praveen Kumar 2b48d1c340 Smaller map sampling implemented
Distance based lane change point
Grid localized waypoint localization implemented
2019-12-11 16:31:51 +01:00
Praveen Kumar 901745599e Implemented TrafficManager::SetDistanceToLeadingVehicle 2019-12-11 16:31:51 +01:00
Praveen Kumar 63523a38aa Implemented singleton lifecycle management for TrafficManager 2019-12-11 16:31:51 +01:00
Praveen Kumar d99ae94864 Implemented forced lane change
Implemented auto lane change enable/disable
2019-12-11 16:31:51 +01:00
Praveen Kumar 16b80a01ba Exposed set_collision_detection in traffic managers python wrapper
Code asthetic changes
2019-12-11 16:31:51 +01:00
Praveen Kumar 3fc4a88da7 Implemented selective collision and forced lane change 2019-12-11 16:31:51 +01:00
Praveen Kumar eca99c9c98 Implemented vehicle specific target velocities 2019-12-11 16:31:51 +01:00
Praveen Kumar 9d3db35a98 Renamed Pipeline class to TrafficManager
Changed exposed class names in python wrapper
Adapted tm_demo.py for new changes
Removed redundant TrafficManager files from carla/TrafficManager
2019-12-11 16:31:51 +01:00
Jacopo Bartiromo 69142bfe75 tm_demo rework 2019-12-11 16:31:51 +01:00
Praveen Kumar 63c7ffa2f8 TrafficManager integrated to libcarla's python API 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo a22d9c09ae new .cpp for wrapper and update libcarla.cpp 2019-12-11 16:31:51 +01:00
Jacopo Bartiromo e02ee7daad more folder organization 2019-12-11 16:31:51 +01:00
bernatx 039e6be501 Fix font name for windows 2019-12-11 15:29:32 +01:00
Marc Garcia Puig a937f268ee Fixed few issues in manual_control.py 2019-12-11 13:37:35 +01:00
Marc Garcia Puig 9e931f2c01 Added IMU and Radar visualization to manual_control.py 2019-12-11 13:37:35 +01:00
bernatx 4738f734de Fixed IMU compass, and windows compilation 2019-12-11 12:07:59 +01:00
bernatx 780f0b0b75 Fixes from PR. Added distance to check for vehicles. 2019-12-11 12:07:59 +01:00
bernatx 41f47ed8a9 Fixes from Pull Request review 2019-12-11 12:07:59 +01:00
bernatx 51a7bf8588 Adding 'cross' zones for the pedestrians 2019-12-11 12:07:59 +01:00
bernatx 0ee3dd0305 Unblocking walkers when they are blocked by something 2019-12-11 12:07:59 +01:00
bernatx 5b7fcbd689 Controlling how many pedestrians can cross the road 2019-12-11 12:07:59 +01:00
bernatx e6fc38a980 Parse 'crosswalks' on openDRIVE 2019-12-11 02:54:21 +01:00
Manish 8c53ddce2b Added more documentation and refactor on no rendering mode 2019-12-10 19:43:10 +01:00