Commit Graph

376 Commits

Author SHA1 Message Date
Manish fc8fb552f7 hero mode's surface has circle shape and removed filter radius 2019-02-05 12:00:49 +01:00
Manish 70c65c61df Added autopilot 2019-02-05 10:19:15 +01:00
Manish 95e412e4bb Added manual control of hero vehicle 2019-02-05 10:14:10 +01:00
Praveen Palanisamy d2645ee24f Fixes #1217 to prevent crashes when run in no-rendering mode 2019-02-04 13:29:03 -05:00
Manish b1016cf7ae Fixed look forward area 2019-02-04 16:26:01 +01:00
Manish 59535a1dd0 Augmented default hero zoom and now we can visualize more area in forward direction 2019-02-04 15:27:20 +01:00
Manish c50fabbe10 changed colors following tango project palette 2019-02-04 12:33:23 +01:00
Manish b197e9bc58 Changing colors to Tango project palette color 2019-02-04 12:24:12 +01:00
Manish b9727568bd fixed vehicle blit position and added simulation time 2019-02-01 12:57:05 +01:00
Manish f5d9e4bd39 added default hero zoom 2019-02-01 12:38:21 +01:00
Manish 35adce94a2 Small optimization 2019-02-01 12:19:28 +01:00
Manish b365597cbd Optimized zoom and zoom in factor increased 2019-02-01 12:09:52 +01:00
nsubiron 9134973489 Upgrade version 2019-01-31 19:32:27 +01:00
nsubiron 66a81d9884 Make automatic_control.py executable 2019-01-31 19:32:27 +01:00
nsubiron d43c73f780 Fix NaN display for FPS 2019-01-31 19:32:27 +01:00
Néstor Subirón 40928db8e7
Merge branch 'master' into NoRenderingMode 2019-01-31 14:21:45 +01:00
Manish be1dc0800e huge refactor 2019-01-31 13:20:58 +01:00
nsubiron 2c5e115fe0 Fix FPS NaN 2019-01-31 12:58:39 +01:00
Praveen f7b44d1726 Modified basic agent:
* Using RoadOption from local planner
Modified local planner:
* Increased waypoint que max length
* Re organised buffering code
Modified misc:
* Added vector function
Modified global route planner:
* Using RoadOption from local_planner
2019-01-30 22:32:50 +01:00
Praveen d7a7e3cf55 Modified local planner
* Buffered waypoint queue to avoid path overlapping
2019-01-30 22:29:36 +01:00
Praveen 7e6b924dd4 Comments 2019-01-30 22:29:36 +01:00
Praveen be920463f2 - 2019-01-30 22:29:36 +01:00
Praveen 0acdd8f6a9 Integrated global router into Basic Agent
* Modified set_destination function to use GlobalRoutePlanner
2019-01-30 22:29:36 +01:00
Praveen b06e5080b6 * Fixed global router to handle round about turns
* Using local_planner.RoadOption to represent turns
2019-01-30 12:09:16 -08:00
Praveen fedf8b2fd6 Modified turn decision logic to solve round about turn problem 2019-01-30 12:05:55 -08:00
Praveen d85c20762a Modified route translation to ignore intersection
segments with only one possible path
2019-01-30 12:05:55 -08:00
Praveen f4219232a9 Fixed GlobalRoutePlanner:
* now using vector cross product for turn decisions.
2019-01-30 12:05:55 -08:00
Manish e8f82aa6bb Prettified file 2019-01-30 19:45:54 +01:00
Manish 5b04acde4e Traffic Light and speed limit affecting to hero info now displayed 2019-01-30 19:38:37 +01:00
Manish 2f49b7ab6e Merge branch 'master' into NoRenderingMode 2019-01-30 19:14:40 +01:00
Manish 07d87e8ee4 Fixed some pylint warnings and solved small roads bug 2019-01-30 19:09:30 +01:00
Néstor Subirón 0e8ca5064b
Merge branch 'master' into tl_api 2019-01-30 14:40:21 +01:00
Manish 7cbeacd8aa Refactoring 2019-01-30 14:37:02 +01:00
Daniel Novillo 5a026fd489
Merge master into pedestrian-collision-sensor 2019-01-30 13:49:57 +01:00
Manish e29950b60f Refactor + Bug fix: Blits surfaces 2019-01-30 12:15:24 +01:00
Aidan Clear faac288002 Prettyfying the files in response to review 2019-01-30 11:20:23 +01:00
Manish 23ef5d73cc Merge branch 'master' into NoRenderingMode 2019-01-30 10:49:15 +01:00
Manish 91f43c8d5d Changed Permissions and bug fix 2019-01-30 10:45:25 +01:00
Manish 25b31d6964 speed limit font quality improved 2019-01-29 18:44:29 +01:00
Manish c595e1cfc0 road lanes are now drawn correctly 2019-01-29 18:13:03 +01:00
Manish f1d1020bdc speed limits rotate base on hero front 2019-01-29 16:32:49 +01:00
Manish 6c784bca85 ids aligned to hero vehicle 2019-01-29 16:07:54 +01:00
Manish 13c0c7d6b6 Improved a lot performance in hero mode 2019-01-29 14:52:43 +01:00
Manish d0ae293303 Working on improving hero performance 2019-01-29 13:29:03 +01:00
Daniel Novillo Villarejo 5a31efe298 Obstacle detector for vehicles or everything 2019-01-29 12:44:22 +01:00
Daniel Novillo Villarejo e20d5d0de1 Added Changelog
Removed unnecesary files
2019-01-29 12:00:58 +01:00
Daniel Novillo Villarejo 0730688e48 Maps extraction tool without testing 2019-01-29 12:00:58 +01:00
Manish 7c8b3643a3 Added clip to rotated surface 2019-01-29 11:08:26 +01:00
Manish 35c9507ebc Improved framerate when scaling map, still work in progress for hero mode scaling 2019-01-28 20:21:52 +01:00
Aidan Clear acb590ca85 Adding python api support for changing a traffic light's state and timers and getting the traffic light and speed limit for a vehicle 2019-01-28 20:03:16 +01:00
Manish c24c38a2fd removed antialiasing, fixed speed, refactored 2019-01-28 17:24:29 +01:00
Manish 52f59b835b bounding boxes of pedestrians are drawn 2019-01-28 14:39:57 +01:00
Manish 4a3d3f4762 traffic lights are bounding boxes + refactor 2019-01-28 14:25:01 +01:00
Manish 30ce63fc49 using convert, blits and given forward vector of transform 2019-01-28 11:34:38 +01:00
Fabian Oboril 8a3e40ac6d
Merge branch 'master' into basicAgentUpdates 2019-01-25 22:31:27 +01:00
Fabian Oboril 9ff2afe1e3 Update changelog 2019-01-25 22:28:56 +01:00
Manish 2f8ed18b5c taking out blue background color 2019-01-25 19:25:08 +01:00
Manish e6b6d7dc6f Bug Fix: color before replacement error 2019-01-25 17:25:35 +01:00
Manish a359923d57 hero mode with map rotation working! :D 2019-01-25 17:16:38 +01:00
Manish 18455139ba Working on rotating map in hero mode 2019-01-25 16:39:26 +01:00
Manish 24068c969d some code refactoring 2019-01-25 11:26:20 +01:00
Manish d7826b9cc8 working on improving hero mode 2019-01-24 19:29:05 +01:00
bernatx 21bf92c5af Removed 'add_force' command, and little fixes. 2019-01-24 18:57:38 +01:00
bernatx eaf3392c66 Added methods to PythonAPI for managing some physics of an actor 2019-01-24 18:57:38 +01:00
Manish fbfc7827fd Scaling working in map and hero mode 2019-01-24 16:54:05 +01:00
Manish f82eb49bb7 Scaling finally working 2019-01-24 16:31:05 +01:00
Manish a892b8e666 Merge branch 'master' into NoRenderingMode 2019-01-24 14:44:01 +01:00
Manish a0ba435989 working on scaling map 2019-01-24 14:19:54 +01:00
nsubiron b57b56f6f3 Increase default time-out in world.wait_for_tick() 2019-01-24 12:03:01 +01:00
Manish 289678d702 refactoring 2019-01-23 20:10:56 +01:00
Manish a27994c0f7 Improved scaling of map and actors 2019-01-23 18:19:39 +01:00
Pasch, Frederik 89af74d967 Add support for a gnss sensor
An initial reference location is read from the header of the OpenDRIVE definition (/OpenDRIVE/header/geoReference)

The expected format is based on the Proj4 syntax:
+lat_0=<LATITUDE as double> +lon_0=<LONGITUDE as double)

Example (Town01):
<OpenDRIVE>
    <header revMajor="1" revMinor="4" name="" version="1" date="2018-10-26T12:17:35" north="2.0479999989271146e+1" south="-3.4888998413085938e+2" east="4.1446086126736287e+2" west="-2.0712774024007370e+1" vendor="VectorZero">
        <geoReference><![CDATA[+lat_0=4.9000000000000000e+1 +lon_0=8.0000000000000000e+0]]></geoReference>
    </header>
...
2019-01-23 17:49:01 +01:00
Manish a47cd513f3 improving map scaling 2019-01-23 17:08:27 +01:00
Manish 24bf11de98 working on map scaling 2019-01-23 16:57:24 +01:00
Manish 61a87c80b6 Added 1st version of scaling map functionality 2019-01-23 16:28:28 +01:00
Manish 2401f8f380 Added arrows for orientation and lane separation 2019-01-23 15:31:04 +01:00
Manish e5fde35cbd Adapted code to test server without rendering option, working on scaling 2019-01-23 12:50:54 +01:00
Fabian Oboril 67d1eba471 Updated BasicAgent: Allow setting target speed and updated traffic light behavior
Updated the BasicAgent to:
- Allow setting target speeds
- Fix the behavior on intersections with US-style traffic lights
2019-01-23 08:30:10 +01:00
nsubiron c18c3bd39e Add support for walkers in manual_control.py 2019-01-22 19:54:57 +01:00
nsubiron 4235da52a2 Add bounding box to pedestrians 2019-01-22 19:54:57 +01:00
nsubiron 4c68cdb345 Add jump to pedestrian control 2019-01-22 19:54:57 +01:00
nsubiron 4ab822bcce Add support for spawning and controlling walkers 2019-01-22 19:54:57 +01:00
nsubiron aeecd3d6eb Rename get_vehicle_control to get_control to be consistent with walkers 2019-01-22 19:54:57 +01:00
Manish 2b2b97d7ad Bug Fix: In hero mode, when deleting all vehicles the game would crash 2019-01-22 19:02:01 +01:00
Manish 1770e17ce2 Bug Fix: game crashed when selecting hero without vehicles spawned 2019-01-22 18:05:47 +01:00
Manish b2c6d8ae09 Refactor and setting waypoint length 2019-01-22 17:33:00 +01:00
Manish 32c82999bd Fixes of intersections and roads 2019-01-22 17:23:46 +01:00
Manish 780ada7fad Added first version of speed limits 2019-01-22 12:35:35 +01:00
Manish a9c0a93c3d Rendering intersection waypoints separately 2019-01-22 11:51:35 +01:00
Manish 775c2c86fe distance computation done well 2019-01-22 11:03:16 +01:00
Manish 8711fd0395 Hero actor is always in center of screen 2019-01-22 10:50:43 +01:00
Manish ddda6e6505 pedestrian are being visualized 2019-01-21 18:28:42 +01:00
Manish e9cc893918 Added vehicle front 2019-01-21 18:08:50 +01:00
Manish a7f24f6d49 no_rendering_mode.py 2019-01-21 16:41:43 +01:00
Manish c72b0797ac Added legend 2019-01-21 15:35:42 +01:00
Manish 312bcc79b9 Added support for rendering pedestrians 2019-01-21 14:27:21 +01:00
Manish 94a3ccea63 Code refactoring 2019-01-21 12:12:06 +01:00
Manish 1790bc0873 Merge branch 'master' into NoRenderingMode 2019-01-21 10:32:42 +01:00
manishthani 83237f0d46 solving bug 2019-01-21 10:02:02 +01:00
manishthani 3cf7b48b7b bounding box added to vehicle 2019-01-18 18:35:35 +01:00
manishthani 2ffd8ec839 Refactoring code 2019-01-18 10:32:32 +01:00
manishthani edeac67bef Improving performance and working on actor bounding box 2019-01-17 19:47:51 +01:00
manishthani 7f0b86f66a We can now select actors randomly 2019-01-17 15:46:46 +01:00
manishthani 822d9e7e5f Rendering radius of hero vehicle 2019-01-17 14:49:48 +01:00
manishthani f4b4baefbd Added hero speed and centered map 2019-01-17 12:39:16 +01:00
manishthani 1d29cca828 Hero mode id and type id is displayed 2019-01-17 11:51:53 +01:00
nsubiron 5295261aca Add forward vector to rotations and transforms 2019-01-17 11:41:14 +01:00
manishthani 292e0b055a Improved HUD managemente 2019-01-17 11:25:57 +01:00
manishthani 77e8deeda1 hero mode can be selected nowa nd actors get filtered by hero radius 2019-01-16 19:32:39 +01:00
manishthani d9e29f8be4 Added antialiasing option and traffic lights state + refactor 2019-01-16 17:54:50 +01:00
manishthani 140f654096 Improving performance in map waypoint generation 2019-01-16 12:25:29 +01:00
manishthani 21522bf79a Map waypoints are rendered correctly, antialising applied to actors and smoothscale when zooming 2019-01-16 11:27:03 +01:00
manishthani 5aba3df747 Map adjusts to screen size, and can be translated and scaled and refactored 2019-01-15 17:38:43 +01:00
manishthani 56194c3c8a Map rescales to screen size 2019-01-15 17:17:10 +01:00
manishthani 9bda5755fa working on scalating map 2019-01-15 15:45:31 +01:00
manishthani 13f04fdbff Adding translation and scale to world surface 2019-01-15 12:59:35 +01:00
manishthani 086d926690 Improved map rendering, world rendering in separate surface and map can be translated 2019-01-15 12:23:50 +01:00
manishthani 7343b7d74e Map is been rendered 2019-01-15 10:56:11 +01:00
manishthani 289d5d8bf3 Changing module names 2019-01-14 18:53:30 +01:00
manishthani d7f74c7d95 Refactoring code 2019-01-14 18:44:58 +01:00
manishthani c20e037b98 Integrating module based architecture 2019-01-14 11:49:29 +01:00
manishthani d106839922 Added Carla world and displaying server FPS 2019-01-11 17:31:18 +01:00
manishthani 823c19b8ac Added HUD and displaying client fps 2019-01-11 15:39:54 +01:00
nsubiron 5dbd53766f Minor corrections 2019-01-11 15:23:58 +01:00
manishthani 831aca1d49 Added Carla module and arguments parser 2019-01-11 14:06:02 +01:00
manishthani 93b83bad21 First setup 2019-01-11 12:08:04 +01:00
Firesuiry 7dad7ec413 support deepin when use make PythonAPI 2019-01-11 14:24:15 +08:00
manishthani b0984c5f0c fixing python tests 2019-01-09 18:20:04 +01:00
manishthani 3de574af36 Any type of point can be transformed 2019-01-09 17:41:01 +01:00
manishthani 7a163c2320 Extended functionality of point transforms 2019-01-08 11:19:12 +01:00
nsubiron d4f6c24c64 Update changelog and increase version 2018-12-21 22:52:33 +01:00
German Ros 8e1f45da1e requested changes: navigation code moved to Agent.py 2018-12-21 22:03:16 +01:00
German Ros 09a74db1fb added new version of basic_agent and agent base class 2018-12-21 22:03:16 +01:00
German Ros 466058b2ec debugging the global router for basic_agent 2018-12-21 22:03:16 +01:00
German Ros 1eada5f5e2 added basic_agent class 2018-12-21 22:03:16 +01:00
nsubiron 62cca3a697 Fix lidar range in manual control 2018-12-21 21:21:43 +01:00
nsubiron 10e9a53844 Fix manual_control choosing only Nissan Patrol 2018-12-21 19:44:43 +01:00
Praveen Kumar 061265f15f Moved navigation files to PythonAPI/agents/navigation 2018-12-20 18:39:22 +01:00
Praveen Kumar 62b603e593 * using enumeration for navigation decisions
* added detailed doc strings
* standards update for imports
2018-12-20 18:34:32 +01:00
Praveen Kumar d0689df5f2 * Added global_route_planner.py
* Added global_route_planner_dao.py
* Added test_global_route_planner.py
2018-12-20 18:34:32 +01:00
German Ros c1849d83ba removed one dependency 2018-12-19 11:19:52 -08:00
German Ros 4afcbf9e63 updated automatic_control to make it compatible with the manual control code 2018-12-19 11:18:28 -08:00
German Ros 90fdb53a38 New Navigation API to deal with both kind of TrafficLights 2018-12-19 12:34:05 +01:00
German Ros 9dd350f322 waypoint bug fixed: height 2018-12-19 12:33:58 +01:00
German Ros 1ca9e31ae8 new folder structure 2018-12-19 12:33:51 +01:00
German Ros 4c0a279cfa structure of the roamingAgent updated to cover the requested changes 2018-12-19 12:33:40 +01:00
German Ros 35327836f5 bug-fix: acos in -1,1; queue reloaded with more elements; lateral PID with derivative term to decrease overshooting 2018-12-19 12:32:41 +01:00
German Ros 7f52942529 lateral control jitter solvedgit add PythonAPI/source/carla/navigation/controller.py 2018-12-19 12:32:33 +01:00
German Ros d544c6515e files moved within source/carla 2018-12-19 12:32:26 +01:00
German Ros 67dda94529 New driving classes to perform vehicle control from CARLA clients 2018-12-19 12:32:07 +01:00