Commit Graph

729 Commits

Author SHA1 Message Date
nsubiron 5ef3dde552 Add C++ client example 2019-04-24 17:37:21 +02:00
bernatx 739142954d Renaming playback speed by playback time factor 2019-04-12 10:25:13 +02:00
bernatx c6ff4cb362 Added an optional parameter to show more details about a recorder file
Related to the show_recorder_file_info.py API
2019-04-12 10:25:13 +02:00
bernatx be37d22335 Added replayer speed (time factor for slow/fast motion) 2019-04-12 10:25:13 +02:00
nsubiron 24edc1de30 Add optional argument "actor_ids" to world.get_actors to request only the actors with the ids provided 2019-04-04 16:37:21 +02:00
nsubiron ec477c5514 Add method client.apply_batch_sync that waits for server response 2019-04-04 14:42:28 +02:00
nsubiron 476d587a7d Add carla.command to spawn actors in batch 2019-04-04 14:42:28 +02:00
Marc Garcia Puig b793f0f3d3 Deleted obsolete constructor 2019-04-02 16:41:46 +02:00
Marc Garcia Puig 819edd97ec Updated lane cross detector 2019-04-02 15:46:30 +02:00
Daniel ad427f60f2 OpenDriveActor with waypoints 2019-03-30 14:29:57 +01:00
nsubiron 367b22f68a Fix geo-reference parse double hanging forever when run inside Unreal Engine 2019-03-30 14:29:57 +01:00
nsubiron 6d62bec3c3 Rename WaypointInfoRoadMark to LaneMarking 2019-03-30 12:24:51 +01:00
nsubiron 3ac4f14900 Case insensitive string comparisons 2019-03-30 11:02:20 +01:00
nsubiron a6c96b8275 Uncrustify 2019-03-30 10:56:32 +01:00
nsubiron 79885329d1 Fix uninitialized members 2019-03-30 10:35:30 +01:00
nsubiron 664d6da784 Fix quite fail 2019-03-30 10:22:39 +01:00
Marc Garcia Puig 889b3b6a9f Fixed tests 2019-03-29 18:14:01 +01:00
Marc Garcia Puig 9f5194dace Now everything depends on s and not on sOffset 2019-03-29 18:13:33 +01:00
nsubiron bc6b80fe90 One more assert 2019-03-29 17:47:30 +01:00
nsubiron 95afd66579 Uncrustify 2019-03-29 17:42:41 +01:00
nsubiron 8206ac335c Fill MapBuilder with asserts 2019-03-29 17:41:55 +01:00
nsubiron adb3583511 Remove unnecessary const_cast 2019-03-29 17:31:45 +01:00
nsubiron 6aa79c8298 Remove unnecessary file 2019-03-29 17:26:57 +01:00
nsubiron 84fafd38b2 Fix comment 2019-03-29 17:19:55 +01:00
nsubiron d657297770 Remove unused stuff 2019-03-29 17:19:46 +01:00
nsubiron ff1322abb6 Fix ObstacleDetectionEvent 2019-03-29 16:26:04 +01:00
nsubiron db29652124 Convert floats to doubles and uncrustify 2019-03-29 16:15:35 +01:00
nsubiron f139babcbc Replace logging::log by log_debug 2019-03-29 15:56:44 +01:00
nsubiron d9a9310370 Slightly more efficient 2019-03-29 15:42:59 +01:00
nsubiron 8efd233ffd Fix comment 2019-03-29 15:42:10 +01:00
Manish e2d3795239 Improving lane markings no rendering mode + small fix 2019-03-28 15:37:53 +01:00
Marc Garcia Puig 7b97f11959 Fixed not returning valid RoadMarks 2019-03-28 15:37:53 +01:00
Marc Garcia Puig 37110043cd Now, WaypointInfoRoadMark can be None in Python 2019-03-28 15:37:53 +01:00
Manish a953834f5e roadmark binding in PythonAPI and adapted no rendering mode 2019-03-28 15:37:53 +01:00
Marc Garcia Puig a5f7261f27 Added support for lane mark info on waypoint core 2019-03-28 15:37:53 +01:00
nsubiron bad34f5fed Increase "epsilon" to shift waypoints away from begin and end of lane sections 2019-03-27 18:00:08 +01:00
nsubiron 560c124dab Merge branch 'master' into feature/new_opendrive_parser 2019-03-27 16:40:11 +01:00
nsubiron 19ce185c93 Move RoadInfoIterator to its own header 2019-03-27 15:00:53 +01:00
nsubiron 918109f010 Improve method documentation 2019-03-27 15:00:47 +01:00
nsubiron e8e13239c8 Organize CMakeLists.txt files 2019-03-27 15:00:41 +01:00
nsubiron 5e0dc03181 Parse geo-reference 2019-03-27 15:00:33 +01:00
Pasch, Frederik b3bac35fbe LaneInvasionSensor stabilization
- Fix naming: Use 'LaneInvasionSensor'/'lane_invasion' instead of mixture with 'LaneDetector'/'lane_detector'
 - Create server-side LaneInvasionSensor (to be able to access it via ROS bridge)
2019-03-27 11:05:19 +01:00
nsubiron d657c7551c Improve get_waypoint test 2019-03-26 17:29:40 +01:00
nsubiron b039388828 Fix location check 2019-03-26 17:27:36 +01:00
nsubiron da52ed0d0e Shift waypoints away from lane section edges 2019-03-26 17:26:52 +01:00
Johannes Quast 9c0317a749 Fix ActorList.Filter(...) method
- change return type to SharedPtr<ActorList>
 - this fixes tr1::bad_weak_ptr when using / iterating filtered list
2019-03-26 16:50:07 +01:00
nsubiron 7d0fa8bf41 Fix assert 2019-03-26 16:18:14 +01:00
nsubiron de7d8a1848 Remove commented out code 2019-03-26 16:18:14 +01:00
Marc Garcia Puig d8d399494e Merge branch 'marcgpuig/opendrive' into jenkins/opendrive 2019-03-26 14:35:19 +01:00
Marc Garcia Puig 5272abf37b Fixed Waypoint type search 2019-03-26 14:12:22 +01:00
nsubiron 93ef05ab2e Improve iterate waypoints test 2019-03-26 02:12:15 +01:00
nsubiron 09a855f1b2 Add asserts 2019-03-26 01:53:10 +01:00
nsubiron b8ccaf9651 Fix generate waypoints 2019-03-26 00:11:11 +01:00
nsubiron 515eba75ab Add distance check 2019-03-26 00:10:39 +01:00
Marc Garcia Puig dd4897faa4 Added lane types to API 2019-03-25 23:52:46 +01:00
nsubiron ec3f2330ae Improve iterate waypoints test 2019-03-25 23:18:25 +01:00
nsubiron 5d4dfca138 Make sure GetNext does not get zero distance 2019-03-25 23:18:25 +01:00
nsubiron 5acf722799 Allow creating a carla.Map from an XODR string 2019-03-25 23:18:25 +01:00
Marc Garcia Puig 5c9e317f04 Merge remote-tracking branch 'origin/opendrive_testing' into jenkins/opendrive 2019-03-25 18:12:33 +01:00
bernatx 448bbfc65f Exposing lane section id to client API 2019-03-25 17:56:02 +01:00
Marc Garcia Puig d8c72c1c18 Removed unnecessary function 2019-03-25 17:48:16 +01:00
Marc Garcia Puig 565d753505 Fixed Topology positive lanes 2019-03-25 17:39:18 +01:00
Marc Garcia Puig 9eebcefb3e Merge remote-tracking branch 'origin/opendrive_testing' into jenkins/opendrive 2019-03-25 14:57:51 +01:00
bernatx 0ccd3c5fbb Fixed the next section lane to go 2019-03-25 14:56:24 +01:00
Marc Garcia Puig 6cd3da7919 Fixed floating comparasion in assert 2019-03-25 13:44:04 +01:00
nsubiron 00d61d6a89 Add get waypoint test 2019-03-24 10:37:02 +01:00
Marc Garcia Puig 6c0f2a3405 Fixed tests 2019-03-23 22:30:01 +01:00
Marc Garcia Puig cc96c4b81b Fixed lane_id assert 2019-03-23 21:32:18 +01:00
Marc Garcia Puig a9c10f76c0 Debug commit 2019-03-23 16:47:38 +01:00
Marc Garcia Puig 4e1275ef4c backup with doubles 2019-03-22 23:50:45 +01:00
Marc Garcia Puig 9e3f69a00e backup 2019-03-22 20:54:30 +01:00
Marc Garcia Puig fa9828aced Merge remote-tracking branch 'origin/opendrive_testing' into marcgpuig/opendrive 2019-03-22 16:54:09 +01:00
Marc Garcia Puig a42ea2d8bf Now GetClosestWaypointOnRoad returns a valid s 2019-03-22 15:32:42 +01:00
bernatx 7f62ce5af8 Now road has vector of next and previous roads 2019-03-22 15:32:40 +01:00
Marc Garcia Puig 5599d78892 Fixed the tangents again 2019-03-22 15:14:33 +01:00
Marc Garcia Puig 61234b731f Merge remote-tracking branch 'origin/nsubiron/opendrive' into jenkins/opendrive 2019-03-22 13:21:37 +01:00
nsubiron b8f9772022 Refactor to use section id and return by ref when possible 2019-03-22 13:08:42 +01:00
nsubiron 6c0371e4a1 Add section_id to waypoints 2019-03-22 13:08:42 +01:00
nsubiron 7dcbdbefbe Add LaneSectionMap 2019-03-22 13:08:42 +01:00
nsubiron 5b9d6abc2a Add Lane::GetLength 2019-03-22 13:08:42 +01:00
Marc Garcia Puig 120a62ad0b Fixed an issue with DirectedPoint tangents 2019-03-22 13:08:37 +01:00
bernatx b8856d658b Add section.id to internal file 2019-03-22 12:50:22 +01:00
bernatx 122fc14470 Fixed previous lane pointers 2019-03-22 12:25:05 +01:00
Marc Garcia Puig f53d218e85 Merge branch 'marcgpuig/opendrive' into jenkins/opendrive 2019-03-22 12:13:22 +01:00
Marc Garcia Puig 76b9a606d2 GetNearestPoint & ComputeTransform work 2019-03-22 12:10:39 +01:00
nsubiron efa0bf632d Merge branch 'opendrive_testing' into jenkins/opendrive 2019-03-22 11:09:38 +01:00
Marc Garcia Puig 7d3dea5cbc Fixed inversed waypoints 2019-03-21 21:49:51 +01:00
Marc Garcia Puig f9dbee7ba6 Waypoints fixes, but still inverted for now 2019-03-21 21:13:00 +01:00
bernatx 17b3317bab Added Id to LaneSections 2019-03-21 19:58:17 +01:00
Marc Garcia Puig e9bd864426 Unreal's Y axis hack 2019-03-21 18:39:58 +01:00
bernatx 1d7250eed9 Minor changes 2019-03-21 18:30:02 +01:00
Manish 4d3698dcfa remove old junctions test function 2019-03-21 14:14:47 +01:00
bernatx f1c0e06593 Added road link test 2019-03-21 13:13:51 +01:00
Manish afd1d99cbb adding elevation and road mark parsing test 2019-03-21 12:52:11 +01:00
nsubiron 6de2406f3b Better output on test failure 2019-03-21 12:48:47 +01:00
Marc Garcia Puig 0d9f201702 Fixed few assert errors 2019-03-21 12:42:58 +01:00
Marc Garcia Puig ba04f0b9d7 Merge remote-tracking branch 'origin/marcgpuig/opendrive' into jenkins/opendrive 2019-03-21 12:11:54 +01:00
Marc Garcia Puig 8160d06b1e Added GetLaneWidth() and GetMarkRecord() 2019-03-21 12:08:53 +01:00
nsubiron 4b6e1ce8b3 Try fix GetLaneSectionsAt 2019-03-21 12:03:58 +01:00
nsubiron af436ef260 Increase version of test content 2019-03-21 12:03:58 +01:00
nsubiron 3ca71ec7d6 Add IsValid function for waypoints 2019-03-21 12:00:10 +01:00
nsubiron 47d8396d30 Making MapData only public in testing 2019-03-21 10:50:08 +01:00
nsubiron 547cb45e9c Add iterate waypoints test 2019-03-21 10:49:16 +01:00
Manish a8d6fb4b01 renamed file to test_opendrive 2019-03-21 10:12:44 +01:00
Marc Garcia Puig 22c26aed15 Merge remote-tracking branch 'origin/nsubiron/opendrive' into jenkins/opendrive 2019-03-20 21:37:32 +01:00
Marc Garcia Puig e75c3750dd Added informations to final data and fixed tests 2019-03-20 21:14:01 +01:00
Marc Garcia Puig 4ded71e4f3 Merge remote-tracking branch 'origin/opendrive_testing' into jenkins/opendrive 2019-03-20 20:29:32 +01:00
bernatx f407e2ca5a Add center lane 0 in parser 2019-03-20 20:27:43 +01:00
nsubiron 5f0c9c8ed2 Refactor RoadInfo classes 2019-03-20 19:09:11 +01:00
Marc Garcia Puig f21f7830f1 Merge remote-tracking branch 'origin/opendrive_testing' into jenkins/opendrive 2019-03-20 19:03:00 +01:00
Manish 4a5096699e Added Map getter for tests 2019-03-20 19:02:02 +01:00
Manish 38244345aa adding tests 2019-03-20 18:51:22 +01:00
bernatx 4e194a5a44 Fixes and Tests 2019-03-20 18:38:37 +01:00
Marc Garcia Puig feec92823c Added GaeWaypoint 2019-03-20 18:35:40 +01:00
Marc Garcia Puig 8eae0ae652 Merge branch 'marcgpuig/opendrive' into jenkins/opendrive 2019-03-20 12:58:00 +01:00
Marc Garcia Puig a4a53e7bd6 Added waypoint transform functions 2019-03-20 12:56:26 +01:00
nsubiron 093038f9c2 Add build options to CMake cache 2019-03-20 12:36:25 +01:00
nsubiron 424441d72c Add unit tests for xodr files 2019-03-19 22:41:42 +01:00
nsubiron 56fc5f97de Merge branch 'bernatx/opendrive2' into jenkins/opendrive 2019-03-19 20:49:28 +01:00
bernatx 650231707d Creating tests for opendrive 2019-03-19 20:48:55 +01:00
Marc Garcia Puig 16ebb59248 Merge remote-tracking branch 'origin/nsubiron/opendrive' into marcgpuig/opendrive 2019-03-19 18:52:31 +01:00
Marc Garcia Puig 02fc027647 Added GetNearestLane 2019-03-19 18:52:24 +01:00
nsubiron e7a4415394 Reorganize road::Map and implement some more functions 2019-03-19 17:56:11 +01:00
nsubiron dfe25de701 Implement CalculateCrossedLanes 2019-03-19 17:21:04 +01:00
nsubiron 5aa5161f40 Implement GetRight and GetLeft 2019-03-19 17:07:02 +01:00
nsubiron 72a8f84552 Pass Waypoints by value 2019-03-19 17:01:08 +01:00
bernatx dce1c9940f Half Fix merge 2019-03-19 16:26:07 +01:00
bernatx 96d4af98b2 Merge 2019-03-19 16:25:39 +01:00
nsubiron 633f7d7348 road::Map, throw exceptions instead of asserts 2019-03-19 16:19:02 +01:00
bernatx d27b6e8e3b Change doubles by float 2019-03-19 16:18:42 +01:00
Manish 27f274b9cd adding road elevation funcs in map builder and changed double to float 2019-03-19 16:11:19 +01:00
nsubiron 0b119a5186 Fix functor not perfect forwarded 2019-03-19 16:05:03 +01:00
bernatx cb2c16bdf2 Fix the merge 2019-03-19 15:47:35 +01:00
Marc Garcia Puig ec7101d9fb Added GetLanesAt 2019-03-19 15:46:21 +01:00
bernatx 0a17bc2ffa Merge 2019-03-19 15:23:47 +01:00
bernatx 882cb218c3 Compiling state, before testing 2019-03-19 14:32:36 +01:00
Marc Garcia Puig e3987ca546 Few code refactoring 2019-03-19 12:15:01 +01:00
nsubiron 35545f224a Merge branch 'master' into marcgpuig/opendrive 2019-03-19 11:42:02 +01:00
Aidan Clear 0c7a89552e Updating map builder add road mark type lane to parent list and making Road InfoIterator use unique pointers 2019-03-19 11:38:55 +01:00
Manish 516e4cb16a Added line and arc geometry to temporal road info 2019-03-19 11:30:41 +01:00
Marc Garcia Puig e88dc61779 Implemented more functions 2019-03-19 11:30:20 +01:00
nsubiron c6fe68e94b Comment out for now unused functions 2019-03-18 19:06:21 +01:00
nsubiron 39ccefddfa Implement GetNext 2019-03-18 18:57:42 +01:00
nsubiron 1cc4a7ed01 Implement GetSuccessors 2019-03-18 18:47:14 +01:00
nsubiron 171de59730 Implement GenerateWaypoints 2019-03-18 18:13:11 +01:00
nsubiron 6447d5dc1a Implement GetTopology with new API 2019-03-18 18:13:11 +01:00
nsubiron 9368891bb0 Add const versions of the methods at Iterator.h 2019-03-18 18:12:55 +01:00
Marc Garcia Puig 32d86e685d Added GetLanesOfType() 2019-03-18 17:14:49 +01:00
Marc Garcia Puig ecd5fb4b42 Added RoadInfoGeometry 2019-03-18 17:13:59 +01:00
Manish 9e4a638117 filling temporal map with lane information 2019-03-18 16:06:39 +01:00