Commit Graph

911 Commits

Author SHA1 Message Date
Manish adb2f50158 Added wheels physics control 2019-02-18 20:54:24 +01:00
Manish f9255b9544 Working on wheel physics and changed call from world to each actor 2019-02-18 19:16:13 +01:00
Manish 0c8839ccb6 we can now set physics params of vehicles 2019-02-18 11:39:32 +01:00
Manish 6547535a71 Added constructor of VehiclePhysicsControl in PythonAPI 2019-02-18 10:53:29 +01:00
bernatx 12dd144400 Moved Recorder code from LibCarla to Unreal 2019-02-15 13:06:32 +01:00
Manish 89ed858cd9 Added vehicle engine setup params 2019-02-15 10:54:25 +01:00
Manish b882efe8e3 exposing torque curve of vehicle physics working 2019-02-14 19:33:24 +01:00
Marc Garcia Puig 4b511113e4 Fixed image test for Linux 2019-02-12 15:06:28 +01:00
Marc Garcia Puig 5ef2148e73 Win build now copies the headers and libs of the new dependencies 2019-02-12 15:06:27 +01:00
Marc Garcia Puig 1e5d87878e Added zlib and libpng to Win setup, PythonAPI now compiles on Win 2019-02-12 15:06:27 +01:00
bernatx 06d486f22a Some Pull Request fixes 2019-02-11 19:15:28 +01:00
bernatx 525293850a Fixing problem with dynamic Id of TrafficLights 2019-02-11 16:42:14 +01:00
bernatx 1985ab683f Adding traffic light state to recorder. Also other fixes. 2019-02-08 15:30:22 +01:00
bernatx cedf9c1bfa Fixing merge with master 2019-02-06 17:24:09 +01:00
bernatx 3824e4d616 Manual_control script with recording/replayer functionality 2019-02-06 12:40:35 +01:00
bernatx 41e53d528b Added parenting and negative times to start a time from the end 2019-02-06 12:18:30 +01:00
bernatx 561895280a Adding general info to the recorder file, and removing velocity data 2019-02-06 12:17:10 +01:00
bernatx 0a6ecf4349 Basic recording/replayer functionality 2019-02-06 12:14:22 +01:00
bernatx 7d9ccf8c18 Adding Replayer (but with callback problem) 2019-02-06 12:11:38 +01:00
bernatx 80ebdbf945 First version of recorder (logger), only capture. 2019-02-06 11:47:48 +01:00
nsubiron 7dfbe396d0 Conversions between Vector3D and Location in Python API 2019-02-05 18:29:41 +01:00
nsubiron 82d36872fc Do not try to destroy lane detector as it does not exist in the simulator 2019-01-31 14:18:56 +01:00
Néstor Subirón 0e8ca5064b
Merge branch 'master' into tl_api 2019-01-30 14:40:21 +01:00
Aidan Clear fc73946e73 Fixing indent issue 2019-01-30 11:48:40 +01:00
Aidan Clear faac288002 Prettyfying the files in response to review 2019-01-30 11:20:23 +01:00
Daniel 1334116a98 Optimization 2019-01-29 19:51:51 +01:00
Daniel 93a30cda52 Optimization of ObstacleDetectionEvent 2019-01-29 19:43:37 +01:00
Daniel 79b7e39196 Moved code from Sensor to ActorBlueprintFunctionLibrary
Added documentation
Minor code improvements
2019-01-29 19:21:34 +01:00
Aidan Clear cb6c57d24e
Merge branch 'master' into tl_api 2019-01-29 13:07:48 +00:00
Daniel Novillo Villarejo 5a31efe298 Obstacle detector for vehicles or everything 2019-01-29 12:44:22 +01:00
Daniel Novillo Villarejo 91e9ee8200 Basic sensor setup for ObstacleDetectionSensor 2019-01-29 12:44:22 +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
nsubiron 98a515537a Minor fixes 2019-01-28 19:13:56 +01:00
nsubiron 027362bb48 Refactor the server to always return a Response object, move some functionality to UCarlaEpisode 2019-01-27 13:34:57 +01:00
nsubiron 1683bd66a0 Split test rpc and msgpack 2019-01-26 18:45:26 +01:00
nsubiron 7a9b1f08d9 Remove throws from MsgPackAdaptors 2019-01-26 18:44:40 +01:00
nsubiron 1f34cf33b7 Add more info to actor view, including serialized data 2019-01-26 18:31:15 +01:00
nsubiron 4e70097c4b Add Response class 2019-01-26 18:31:15 +01:00
nsubiron 0371620a36 Replace Optional by boost::optional and add adaptors for serialization 2019-01-26 18:31:15 +01:00
nsubiron 8296b50aec Fix serialization of boost::variant 2019-01-26 18:31:15 +01:00
nsubiron 8778cd6a4a Adjust streaming benchmark, failing on laptop 2019-01-26 17:56:07 +01:00
nsubiron 3f29c40530 Add exceptions back to Buffer 2019-01-26 17:42:53 +01:00
nsubiron 6ff8784f16 Compile server pipeline with -fno-exceptions, split unit tests for client and server 2019-01-26 17:27:14 +01:00
nsubiron d0137fecc7 Replace uses of throw by carla::throw_exception 2019-01-26 16:10:52 +01:00
nsubiron 459d75568a Add carla::throw_exception function to re-route exceptions 2019-01-26 15:59:17 +01:00
nsubiron 8e6406cf78 Suppress deprecated header warning 2019-01-26 14:32:04 +01:00
nsubiron 81e41bbb2f Fix assert placed in wrong place 2019-01-26 14:31:35 +01:00
nsubiron e231d71f18 Clear expired streams 2019-01-26 14:31:35 +01:00
nsubiron bd398acf28 #1119 make sure streams are discarded when the sensor is destroyed 2019-01-26 14:31:35 +01:00
bernatx 21bf92c5af Removed 'add_force' command, and little fixes. 2019-01-24 18:57:38 +01:00
bernatx c360d1407b Adding conversion for meter / centimeter for Vector3D 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
Marc Garcia Puig 2b99e46954 Fixed OpenDriveActor bug on multiple lane junctions 2019-01-24 12:58:15 +01:00
nsubiron 6c8499c8c9 Upgrade to UE4.21 2019-01-23 18:57:26 +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
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
nsubiron 656aba71ec Rename apply_control_to_actor to apply_control_to_vehicle 2019-01-22 19:54:57 +01:00
nsubiron 25bc958e78 Upgrade Boost dependencies and image IO to Boost 1.69 2019-01-22 11:52:22 +01:00
nsubiron 5295261aca Add forward vector to rotations and transforms 2019-01-17 11:41:14 +01:00
nsubiron 0bcefc0ffd Clean up geom files 2019-01-17 11:36:56 +01:00
nsubiron 5714f69243 Minor print out fix 2019-01-10 16:49:04 +01:00
manishthani 4e341b2b9f Refactoring according to reviewable 2019-01-10 14:03:11 +01:00
manishthani 3de574af36 Any type of point can be transformed 2019-01-09 17:41:01 +01:00
manishthani 4e2b0b891d Removed useless function 2019-01-08 12:44:54 +01:00
manishthani 7a163c2320 Extended functionality of point transforms 2019-01-08 11:19:12 +01:00
nsubiron 4661c24899 Add find function to actor list 2018-12-16 00:05:15 +01:00
nsubiron e464913014 Update cameras and sensors documentation 2018-12-15 17:35:04 +01:00
marcgpuig f50c2f49f2 Added rotation to waypoints acordin to elevation 2018-12-13 19:31:37 +01:00
marcgpuig 52429a3e94 Now the waypoint elevation works within the Python API 2018-12-13 19:31:37 +01:00
marcgpuig a0cbf1dfb2 Added elevation in OpenDriveActor 2018-12-13 19:31:37 +01:00
nsubiron 56534e9569 Add option for manual gear shifting to VehicleControl 2018-12-13 18:32:59 +01:00
Bernd Gassmann bd710c339c Provide parent/attribute content of Actors via python interface
While creating the new carla ros bridge some extensions became necessary
within CARLA:

The parent property of an actor via python interface is not yet filled.
Therefore, the parent_id of Actors has to be transferred from the CARLA
server via rpc interface.

In addition, actor attributes are published via python interface.

Changes in detail:

carla/rpc/Actor.h:
- add parent_id field to the Actor class for rpc transport

TheNewCarlaServer.cpp:
- fill the parent_id field with the appropriate value

client/ActorList:
- added GetActor() function to get an actor by id

client/ActorVariant:
- added actor_list optional parameter to Get() and MakeActor() function
which allows to query for the parent actor in case the actor_list is
available

client/ActorAttribute:
- solved problem of independent rpc::ActorAttribute* classes by
introduction of ActorAttributeValueAccess class, to be able to reuse
most of the functions for both ActorAttribueValues and ActorAttributes

ActorBlueprintFunctionLibrary:
- extended actor attributes by attribute 'role_name' having {autopilot,
    scenario, ego_vehicle} as recommended values for vehicles or
    {front,back,...} for sensors to be able to distiguish the different
    actors in a meaningful way when transferring to ROS topic names
- extended vehicle attributes by not-modifiable attribute 'object_type'
to be defined at blueprint creation time to provide ground truth
object classification type

PythonAPI:
- libcarla: provide the actor attributes within python as dictionary
- make use of role_name attribute to provide information required for
ROS bridge to distinguish ego vehicle from others
2018-11-30 16:08:50 +01:00
Fabian Oboril f00f350ca3 Change cmake version from 3.9 to 3.5
No feature of cmake newer than 3.5 is used. Therefore, we can use
cmake 3.5, which is also standard in Ubuntu 16.04, whereas cmake 3.9
is non-standard.
2018-11-20 14:26:48 +01:00
nsubiron 3072fcb2be Add missing license notices 2018-11-15 16:49:40 +01:00
nsubiron 25099dc23f Missing pragma once 2018-11-15 16:49:40 +01:00
nsubiron 0be794736f Uncrustify 2018-11-15 16:49:40 +01:00
nsubiron 1340051b2d Fix #969, wrong CityScapes color for road lines 2018-11-15 16:49:40 +01:00
nsubiron 31f311c6f5 Ignore intersections for lane crossing 2018-11-15 16:45:35 +01:00
nsubiron 33ca4dbf0a Workaround for crash when destroying parent of lane detector 2018-11-15 16:45:35 +01:00
nsubiron 4a77755208 Add more attributes to waypoints 2018-11-15 16:45:35 +01:00
nsubiron e5c4f593d0 Expose map generate all waypoints in Python 2018-11-15 16:45:34 +01:00
nsubiron 4eed57fb87 Expose map topology in Python 2018-11-15 16:45:34 +01:00
nsubiron 04c76acd7a Rename Waypoint's GetTransform to ComputeTransform 2018-11-15 16:45:34 +01:00
nsubiron 13368d8d6d Add WaypointGenerator class 2018-11-15 16:45:34 +01:00
nsubiron a4fda4213b Refactor MapData 2018-11-15 16:45:34 +01:00
nsubiron 6103d59766 Implement lane detector only for points on same road section 2018-11-15 16:29:57 +01:00
nsubiron 9d1b2a12ef Add parent to actor state 2018-11-15 16:29:57 +01:00
nsubiron 03baf21df6 Add empty lane detector and split server side vs client side sensors 2018-11-15 16:29:57 +01:00
marcgpuig ddc4d79dc3 Fixed release test for Vector3D 2018-11-15 16:28:09 +01:00
marcgpuig 0d7e1d96f6 Little optimization on DistArcPoint 2018-11-15 16:01:41 +01:00
marcgpuig df48b68391 MakeUnitVector have an assert if the length is really small or 0 2018-11-15 15:55:20 +01:00
marcgpuig 8f7cecc6ca Added Math.cpp + small improvement on what return some of the functions 2018-11-15 15:03:59 +01:00
marcgpuig d24ebbe7be Small fix on Location's Distance() 2018-11-15 15:02:06 +01:00
Marc 903701979e Improved GetNearestLane function 2018-11-15 13:15:32 +01:00
Marc 73dee62089 Fixed bug caused by floating point error 2018-11-14 20:58:02 +01:00
Marc 49f495d946 Fixed DistArcPoint on negative curvatures 2018-11-14 14:48:09 +01:00
Marc 60c97c4c14 Added Location::Distance(Location) functionality to the PythonAPI 2018-11-14 13:00:53 +01:00
Marc b6a78cc810 Fixed of wrong distance function usage 2018-11-14 12:30:08 +01:00
Marc e93585f9a7 Fixed inverted Y on GetNearestLane 2018-11-14 11:49:22 +01:00
Marc 597cee0d19 GetWaypoint() function working + some unused printfs deleted 2018-11-13 15:26:36 +01:00
Marc 184ff3f55e Length spelling fix 2018-11-12 15:05:13 +01:00
nsubiron 503fedeb6b Merge branch 'master' into roads 2018-11-12 14:48:44 +01:00
TheNihilisticRobot 4ca95b7e88 Added clouds to "Clear" weather presets.
(cherry picked from commit ba18795626d444c4f92d6a72926699d313ab91fb)
2018-11-12 14:00:19 +01:00
iFuSiiOnzZ a08e7db963 Fix previous lane id 2018-11-09 16:22:36 +01:00
iFuSiiOnzZ fe476e8b2b Change destination ID when contact point is end for a junction 2018-11-09 12:07:49 +01:00
nsubiron b113b979ca Log vehicle control in world observer 2018-11-08 12:50:11 +01:00
iFuSiiOnzZ fb8410c7ff Update comment function for doxygen 2018-11-08 12:41:12 +01:00
iFuSiiOnzZ b2369cdc98 Fix wrong iterator comparation 2018-11-08 12:39:11 +01:00
iFuSiiOnzZ 5667505ec9 Merge branch 'geom_fixes' into fix_prev_next_lane 2018-11-08 12:22:36 +01:00
Marc 84f72b7565 GetNearestLane now uses precalculed lane offset + few comments 2018-11-08 12:11:26 +01:00
iFuSiiOnzZ 223ddb94ad Fix lane missing information 2018-11-07 19:10:01 +01:00
Marc 5015ab782b Precalculed lane offset from the center of the road 2018-11-05 18:35:24 +01:00
Marc a82b80eb30 Added LaneOffset to GetNearestPoint function + some explanation comments 2018-11-05 14:09:01 +01:00
iFuSiiOnzZ f2559e0ee2 Fix the next and previous lane link 2018-11-05 13:47:06 +01:00
nsubiron dca0bf86b0 First attempt at computing next waypoint 2018-11-03 12:26:19 +01:00
Marc 2b6e3057ea Added GetNearestLane 2018-11-02 17:40:45 +01:00
iFuSiiOnzZ ad91f1329d Process the junction infomation and add it as the next lane info 2018-11-01 12:12:01 +01:00
iFuSiiOnzZ 6f7e3cfcac Add information for next and prev lane 2018-11-01 10:17:56 +01:00
nsubiron 2a6e341434 Fix CMakeLists.txt source files 2018-10-31 19:30:00 +01:00
Marc f8626d0461 Fixed tests after changing the coordinates in Math 2018-10-31 13:52:08 +01:00
Marc 529172036f Removed test_map temporarily 2018-10-31 13:03:01 +01:00
Marc 2310fe1fd7 Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-31 12:05:43 +01:00
Marc 4380140c58 Changed coordinate system of Math's arc point distance 2018-10-31 12:05:15 +01:00
iFuSiiOnzZ ec14745050 Check for errors during opendrive parsing 2018-10-30 14:33:58 +01:00
iFuSiiOnzZ 00fc3e4b26 Return lanes ordered (from 1 to n and -1 to -n) 2018-10-29 15:42:59 +01:00
iFuSiiOnzZ 2b9480a772 Invert the heading the the 'y' to be in Unreal coordinates 2018-10-29 13:42:24 +01:00
nsubiron eff9fa2ea6 Fix PythonAPI build on Windows 2018-10-29 11:32:32 +01:00
nsubiron 5b2d4f9ed3 Fix Windows compilation 2018-10-29 11:04:44 +01:00
nsubiron 92f8fe7fd6 Merge branch 'master' into roads 2018-10-28 11:35:42 +01:00
nsubiron 6d1f3519ec Make possible to draw UE4 debug shapes from Python API 2018-10-28 10:19:30 +01:00
nsubiron 58150a65fe Fix cannot save files on this folder 2018-10-26 19:19:17 +02:00
nsubiron 41a5af110e Merge branch 'roads' into road_points_test 2018-10-26 19:18:00 +02:00
Marc ee1eebe0ce Improved Waypoint interface 2018-10-26 19:03:32 +02:00
nsubiron 5c4d01167c Merge branch 'roads' into road_points_test 2018-10-26 18:20:29 +02:00
nsubiron 4e075ca1f1 Merge branch 'master' into com 2018-10-26 17:29:59 +02:00
nsubiron c015a93558 Add missing includes 2018-10-26 15:14:26 +02:00
iFuSiiOnzZ 035c00bb1d Automatically load opendrife file 2018-10-26 13:01:38 +02:00
Marc ad2f6f1d52 Sorted includes 2018-10-25 14:45:03 +02:00
iFuSiiOnzZ e414eb8e98 Update cmake file 2018-10-25 13:50:25 +02:00
iFuSiiOnzZ 1ec41174e1 Route generates seemd to work
There is bug in the exported opendrive  where is missing some information in the junctions.
2018-10-25 12:55:13 +02:00
iFuSiiOnzZ 905ab57ac5 Remove unnecessary files 2018-10-25 12:50:31 +02:00
nsubiron 73826236e0 Fix wrong overload was called 2018-10-25 12:01:47 +02:00
nsubiron aeb04231c6 Correct map name if playing in editor 2018-10-25 12:01:19 +02:00
nsubiron bf0685d115 Expose road maps to Python 2018-10-24 22:42:50 +02:00
nsubiron 6b7ad14665 Add recommended start transforms to map info message 2018-10-24 21:59:23 +02:00
nsubiron 4f92ec758c Add MapInfo message and serialize OpenDrive file 2018-10-24 21:59:23 +02:00
Marc ffb4452acf Refactored interface 2018-10-24 21:58:42 +02:00
nsubiron f71f31f174 Fix Windows build 2018-10-24 11:22:41 +02:00
nsubiron 46d36435d4 Change testing port 2018-10-23 19:02:54 +02:00
nsubiron 99fc6fd103 Merge branch 'com' into roads 2018-10-23 16:01:15 +02:00
nsubiron 788e37c6ef Document C++ API 2018-10-23 15:24:33 +02:00
iFuSiiOnzZ af3e4ea03b Add lane offsets 2018-10-23 15:17:33 +02:00
Marc c60c729c64 Added point to arc distance 2018-10-23 14:29:36 +02:00
iFuSiiOnzZ 880a1e4562 Parse lane offset 2018-10-23 09:34:46 +02:00
nsubiron 0bf58e3bf8 Suppress exceptions in destructors 2018-10-22 17:58:20 +02:00
nsubiron 980f0e6a9b Suppress exceptions in Sensor's destructor
(cherry picked from commit bd15ef11ea)
2018-10-22 17:58:20 +02:00
nsubiron bd15ef11ea Suppress exceptions in Sensor's destructor 2018-10-22 15:59:43 +02:00
nsubiron c478eb039e Function to disable simulating physics on an actor 2018-10-21 23:39:58 +02:00
nsubiron d5392c7408 Add traffic lights and signs as actors 2018-10-21 23:35:24 +02:00
nsubiron cf8a758146 Add semantic tags to actors 2018-10-21 18:27:49 +02:00
nsubiron 07b22b5f2f Move episode state serialization into Unreal 2018-10-21 17:10:48 +02:00
nsubiron 26198adab3 Fix crash empty actor getting serialized 2018-10-21 16:50:28 +02:00
nsubiron b80f70b8b9 Add on_tick event 2018-10-21 16:49:43 +02:00
nsubiron aa83b8abf8 Add wait for tick function 2018-10-21 15:29:27 +02:00
nsubiron d7ed3e1f8c Add RecurrentSharedFuture class 2018-10-21 15:22:00 +02:00
nsubiron 313b11931c Add collision sensor 2018-10-20 20:33:37 +02:00
Marc 66326f7164 Starting waypoint's Python API 2018-10-20 20:24:43 +02:00
nsubiron 05c78aa2a1 Fix rpc::Actor not sending bounding box 2018-10-20 20:23:40 +02:00
nsubiron 60b02faa65 Add MsgPack class 2018-10-20 20:23:18 +02:00
nsubiron e9f1d30df6 More fixes to episode proxy 2018-10-20 16:59:31 +02:00
nsubiron 484fe9d949 Add ActorVariant class 2018-10-20 16:14:08 +02:00
nsubiron 0dd8c4e15d Add reference to world in sensor data 2018-10-20 15:18:08 +02:00
nsubiron 26c34f3d95 Fix episode proxy atomicity 2018-10-20 15:15:40 +02:00
Marc d0333f8767 Fixed bad practice using namespace 2018-10-19 19:31:12 +02:00
iFuSiiOnzZ 9cd7ee8c6f Add coonection point and if is junction 2018-10-19 16:42:33 +02:00
nsubiron 174e012ede Merge Location and Vector3D 2018-10-19 16:04:10 +02:00
nsubiron 81e7fbc12c Merge branch 'com' into roads 2018-10-19 15:14:35 +02:00
nsubiron b665fa122c Lower bar for travis tests (once more) 2018-10-19 13:30:24 +02:00
nsubiron ca7a2dcbc7 Try fix setup.py to link against libcarla_client (Linux only) 2018-10-19 12:16:04 +02:00
nsubiron 98a90496f6 Support for Python 3 on Linux 2018-10-19 11:23:33 +02:00
nsubiron 15ee43375c Add quality level enum serialization 2018-10-19 11:22:55 +02:00
iFuSiiOnzZ 659de82a6a Generating multilane waypoints 2018-10-19 10:57:05 +02:00
nsubiron a6dfef0cd6 Improve wildcard filtering of actors and blueprints 2018-10-18 21:09:54 +02:00
nsubiron 3c1f23a3fa Better logging when destroying actors 2018-10-18 20:38:14 +02:00
nsubiron 21800007b4 Add support for requesting the list of actors in the episode 2018-10-18 20:36:17 +02:00
nsubiron 4da71fc39f Add support for accessing and modifying sensor data Array elements 2018-10-18 20:32:13 +02:00
nsubiron 83f4ccad92 Lower the bar for travis streaming tests 2018-10-18 00:21:03 +02:00
nsubiron 47d52992f9 Make actors get their dynamic state by looking at the episode state 2018-10-18 00:21:03 +02:00
nsubiron d005074ce4 Define common actor_id_type 2018-10-18 00:21:03 +02:00
nsubiron 2168747991 Deserialize data from world observer 2018-10-18 00:21:03 +02:00
nsubiron 96ba571dfd Add bounding boxes to Python API 2018-10-18 00:21:03 +02:00
nsubiron d5f349cfff Add comparison operators to geom classes 2018-10-18 00:21:03 +02:00
nsubiron 817aac38dd Add world observer sensor 2018-10-18 00:21:03 +02:00
nsubiron 23470ad4fb Add bounding boxes to actors 2018-10-18 00:21:03 +02:00
nsubiron 050467e109 Add class Vector3D 2018-10-18 00:21:03 +02:00
nsubiron 16f4996e71 Move Rotation class to its own header 2018-10-18 00:21:03 +02:00
nsubiron d7d4dd4e1e Add episode info message 2018-10-18 00:21:03 +02:00
nsubiron 5d2ec3aad0 Remove ping call 2018-10-18 00:21:03 +02:00
nsubiron c7de4c0be7 Make Simulator class, leave Client to pure networking methods only 2018-10-18 00:21:03 +02:00
nsubiron 38b9822860 Make sure we don't subscribe twice to same stream 2018-10-18 00:21:03 +02:00
Marc 2e7ce9b2a7 No longer use of dynamic_cast because UE4 does not suports it :( 2018-10-17 21:32:25 +02:00
FPerez 711e04fc53 Capture Gamma set, Preset weathers fixed 2018-10-17 19:28:49 +02:00
Marc 8e2eafcf56 More includes to absolute path 2018-10-17 18:30:56 +02:00
iFuSiiOnzZ dddb128d27 Add contact point for road successor/predecessor 2018-10-17 15:05:27 +02:00
Marc e2378505cd Added support for the direction of the lane connection 2018-10-17 14:30:37 +02:00
Marc 90443b0152 Added PointInRectangle functionality 2018-10-17 14:16:22 +02:00
iFuSiiOnzZ 9718238df6 Add basic lane information 2018-10-17 12:18:40 +02:00
Marc db47f8a000 The path of Inclues are now absolute 2018-10-17 11:49:36 +02:00
Marc cfdc726477 geom::Math now uses std's max and min 2018-10-17 11:41:29 +02:00
Marc 01408a1df7 More functionalities in geom::Math + tests 2018-10-16 20:12:03 +02:00
Marc a018135b0f Fixed bug filling the MapBuilder 2018-10-16 14:32:32 +02:00
Marc 7236bfc2fe Fixed bug not moving RoadDefinition 2018-10-16 13:32:31 +02:00
iFuSiiOnzZ a6aedc3d1e Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-15 19:51:33 +02:00
iFuSiiOnzZ a04fc09b67 Avoid crash caused by moving a unique pointer 2018-10-15 19:49:55 +02:00
Marc 5e08fb4938 Now ids can be 0 2018-10-15 19:47:33 +02:00
iFuSiiOnzZ 4b191beb07 Copy missing header for building PythonAPI 2018-10-15 19:02:11 +02:00
iFuSiiOnzZ b6c36404a3 Generate points for the RoutePlanner 2018-10-15 18:09:37 +02:00
Marc 2efcc6fc2e Added GetAllIds in Map class 2018-10-15 17:07:27 +02:00
Marc 71415fa975 Waypoints can be generated by Lines and Arcs 2018-10-15 16:45:26 +02:00
Marc f4e9ecea4f Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-15 16:08:35 +02:00
nsubiron 27fbca5900 Better error message when a blueprint key is not found 2018-10-15 15:59:43 +02:00
iFuSiiOnzZ b8c76c67f8 Add missing installation files from carla server 2018-10-15 15:09:11 +02:00
FPerez 288a7b7ed0 Creeated Weather Presets 2018-10-15 13:12:09 +02:00
Marc 69ef01917d PosFromDist now works correctly 2018-10-15 12:19:10 +02:00
Marc 270f962d6d Fixed bug searching for negative values in GetDirectedPointIn() 2018-10-15 12:18:16 +02:00
nsubiron f45375c747 Add dummy weather presets 2018-10-15 11:57:57 +02:00
iFuSiiOnzZ e7af113233 Merge branch 'roads_win32_build_fix' into roads 2018-10-15 11:15:41 +02:00
nsubiron e19a5cb7b9 Fix compilation on Windows 2018-10-15 10:34:16 +02:00
nsubiron 5bb425737c Expose weather to client API 2018-10-15 10:34:08 +02:00
iFuSiiOnzZ 9e60649ba4 Move warning suppress pragma outside define block 2018-10-15 09:48:02 +02:00
Marc 6b4c364aed Getting a point on geometry 2018-10-14 18:26:10 +02:00
Marc b61e3dd2da Working GetInfo given a distance 2018-10-13 16:17:44 +02:00
iFuSiiOnzZ 604111ec4f Remove intrinsics functions errors by reodering the includes 2018-10-13 14:12:20 +02:00
iFuSiiOnzZ 5b611b84f3 Enable UE4 macros only if have been disabled 2018-10-13 11:29:48 +02:00
Marc b64e06b3b0 RoadInfo correctly working with the system 2018-10-13 11:29:05 +02:00
Marc c04cd5e416 Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-12 18:05:54 +02:00
Marc 8ff6448982 Road structure working with tests 2018-10-12 18:05:43 +02:00
iFuSiiOnzZ 950faa66fc Make CarlaLib compile in Windows 2018-10-12 11:27:32 +02:00
Marc 2dc4f1ae84 Now, Map is only movable 2018-10-11 17:43:41 +02:00
Marc 1a6bcf8d75 Added anoter road test 2018-10-11 16:47:50 +02:00
Marc 8735f750df Privatized Map constructor, only MapBuilder can create an instance of it 2018-10-11 16:46:43 +02:00
iFuSiiOnzZ 3a09b56ac4 Use Build function of MapBuilder to get the map 2018-10-11 16:12:12 +02:00
iFuSiiOnzZ ffb6d2e1d0 Compile opendrive for server and copy headers to Unreal depencies folder 2018-10-11 16:09:54 +02:00
Marc 92f36a1d2b Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-11 14:38:37 +02:00
Marc d42e2ba4bf Reorganized road namespace structure 2018-10-11 14:35:04 +02:00
iFuSiiOnzZ a955d6c8c6 Fix wrong variable assignation 2018-10-11 14:11:46 +02:00
Marc 43e63dd62e Renamed functions for consistency 2018-10-11 11:43:24 +02:00
iFuSiiOnzZ 018a3f8aff PythonAPI compilation fix 2018-10-11 11:34:38 +02:00
iFuSiiOnzZ 53c8cd3b59 Move row pointers to std::unique_ptr 2018-10-11 10:22:54 +02:00
iFuSiiOnzZ cbd528f9f8 Remove destructor from OpenDriveData 2018-10-11 09:28:10 +02:00
nsubiron 0f38aff8d5 Add MultiStream for streaming simultaneously to multiple clients 2018-10-11 00:28:29 +02:00
nsubiron 75cec0b615 Allow to deregister sessions when closed 2018-10-10 22:56:05 +02:00
Marc d6a696f261 Made a new file for Geometry class + some fixes 2018-10-10 20:10:18 +02:00
nsubiron 5de16e9eee Fix travis (as usual) 2018-10-10 19:25:28 +02:00
nsubiron c544129622 Add unit test for checking server shutdown 2018-10-10 18:10:33 +02:00
nsubiron 3d80d5e641 Merge streaming tests 2018-10-10 18:09:19 +02:00
nsubiron e3fbf63c42 Fix crash on server shutdown 2018-10-10 18:09:13 +02:00
Marc 3c84cd0813 Merge branch 'roads' of https://github.com/carla-simulator/carla into roads 2018-10-10 16:45:55 +02:00
iFuSiiOnzZ 0a8b0cb40d Remove allocated memory when OpenDriveData is destroyed 2018-10-10 16:44:13 +02:00
Marc 50eaddb62d Merge commit 2018-10-10 16:32:37 +02:00
Marc bd02ff7d9a Changed to use unique_ptr 2018-10-10 16:29:52 +02:00
iFuSiiOnzZ a0dd7a22ab Remove allocated memory when OpenDriveData is destroyed 2018-10-10 16:28:56 +02:00
iFuSiiOnzZ 7c8dc9907c Add geometry to road segment 2018-10-10 12:59:48 +02:00
Marc 627ccaf6c2 Better Geometry types and better MapBuilder API 2018-10-10 11:52:50 +02:00
iFuSiiOnzZ d2c8af25af Start to build the map 2018-10-09 15:36:45 +02:00
Marc b600888c90 Issue with undefined functions 2018-10-09 14:50:58 +02:00
nsubiron b3f8d4dc51 Add LifetimeProfiled to profile actor's lifetime 2018-10-09 14:23:07 +02:00
nsubiron 3f2787799e Fix issues related to the destruction of objects 2018-10-09 12:29:54 +02:00
Marc 62eefd9917 Fixed formating error in MapBuilder 2018-10-09 12:20:34 +02:00
Marc 1612a308ec New MapBuilder structure 2018-10-09 11:03:49 +02:00
nsubiron 27c378a88a Fix issues related to unsubscribing from a stream 2018-10-08 23:02:51 +02:00
nsubiron 1aa89af1a1 Add episode class 2018-10-08 19:23:32 +02:00
nsubiron 2c53287dcf Make possible to unsubscribe from a sensor stream 2018-10-08 13:47:10 +02:00
nsubiron 91aa984350 Fix Boost.Python not getting the right signature 2018-10-08 13:47:10 +02:00
nsubiron d56c17a166 Release Python GIL when possible 2018-10-08 13:47:10 +02:00
nsubiron 5965c3bdbe Refactor client-side code and its C++ API 2018-10-08 13:47:10 +02:00
nsubiron 3b12d31cc6 Fix travis build (again) 2018-10-08 13:20:05 +02:00
nsubiron 882992952c Small refactor of sensor data IO 2018-10-07 18:44:45 +02:00
nsubiron 2ad3ffedc5 Expose methods for saving and converting images in Python 2018-10-07 18:44:45 +02:00
nsubiron eeb72e7020 Fix image IO to handle any format based on file extension 2018-10-07 18:44:45 +02:00
nsubiron 2326345f9e Add functionality for IO images, and conversion for depth and semseg 2018-10-07 18:44:45 +02:00
nsubiron 23499b41bb More generic and complete StringUtil 2018-10-07 18:44:45 +02:00
nsubiron 4ad2095c92 Add methods for saving point clouds in ply format 2018-10-07 18:44:45 +02:00
nsubiron d02d9ced3c Add OutputFile class 2018-10-07 18:44:45 +02:00
nsubiron 0f16fedb4d Reduce benchmark speed and acceptance threshold 2018-10-07 18:42:41 +02:00
nsubiron fa19f0296e Close #815, discard message if the connection is too slow 2018-10-07 13:24:44 +02:00
iFuSiiOnzZ 2bc1ac507d Add OpenDrive points generator 2018-10-05 13:00:21 +02:00
iFuSiiOnzZ 4a5995c6ef Add OpenDrive parser 2018-10-05 11:08:21 +02:00
nsubiron dd0de88fbd Add namespaces for road classes and opendrive 2018-10-03 11:33:18 +02:00
nsubiron db9d6a781d Small refactoring and documentation 2018-10-02 18:00:16 +02:00
nsubiron f1a20eee8e Tiny fix 2018-10-02 15:03:58 +02:00
nsubiron 84d48f7ed3 Expose lidar measurements to Python API 2018-10-02 15:03:58 +02:00
nsubiron 11167181f2 Port lidar to new sensor system 2018-10-02 15:03:58 +02:00
nsubiron c84eb298e7 Check sizeof sensor header 2018-10-02 15:03:58 +02:00
nsubiron 93809422bd Retrieve sensor definition from static function 2018-10-02 15:03:58 +02:00
nsubiron 367a6b51eb Allow each scene capture sensor have its own serializer 2018-10-02 15:03:58 +02:00
nsubiron ff9ae37b79 Fix buffer pool needs to be dynamically allocated 2018-10-02 15:03:58 +02:00
nsubiron d0629c9381 Image serialization complete pipeline 2018-10-02 15:03:58 +02:00
nsubiron 396894f10b Migrate deprecated ASceneCaptureCamera to the new ASceneCaptureSensor 2018-10-02 15:03:58 +02:00
nsubiron f4b386eb9d Fix Buffer issue with TArrays 2018-10-02 15:03:58 +02:00
nsubiron c68c3e9e4c Basis for SensorRegistry and ASensor class 2018-10-02 15:03:58 +02:00
nsubiron a69dd143bf Compile-time dispatcher for sensors and serializers 2018-10-02 15:03:58 +02:00
nsubiron 3177c52e9b Add Optional class 2018-10-02 15:03:58 +02:00
nsubiron b99d9c2b49 Add copy with offset to Buffer and document class 2018-10-02 15:03:58 +02:00
nsubiron 3bd67d2fdf Allow including LibCarla headers multiple times in UE4 2018-10-02 15:03:58 +02:00
nsubiron 13b9723c46 Make ThreadGroup inherit NonCopyable 2018-10-02 15:03:03 +02:00
nsubiron 6752ea12c2 Fix unit test 2018-10-02 15:03:03 +02:00
nsubiron f55cbfea4f Fix compilation in Visual Studio 2018-10-02 15:03:03 +02:00
nsubiron f217e5e61c Reuse buffer based on capacity instead of size 2018-10-02 15:03:03 +02:00
nsubiron fbe0d678e5 Reuse allocated memory for sensor data in the client-side 2018-10-02 15:03:03 +02:00
nsubiron fb2691e326 Add buffer pool to reuse allocated memory 2018-10-02 15:03:03 +02:00
nsubiron 2ab8a0cb42 Make access to stream session atomic 2018-10-02 15:03:03 +02:00
nsubiron a869424185 User buffer as much as possible to avoid a couple of dynamic allocations 2018-10-02 15:03:03 +02:00
nsubiron 930a3cf9bc Add generic buffer class to replace streaming message 2018-10-02 15:03:03 +02:00
nsubiron 0b38510f8f Change Python client timeout to float seconds 2018-09-30 17:45:47 +02:00
nsubiron 64b1b27315 Remove unnecessary includes 2018-09-10 11:54:31 +02:00
nsubiron 2beedaf4f1 Fix again #761, add more flexibility to the info that goes into a stream token 2018-09-07 17:28:33 +02:00
nsubiron 1f1f24dad6 Fix #761 streaming client fails to connect in Windows 2018-09-06 17:09:41 +02:00
nsubiron 09f4ed7fd7 Allow iterating attributes of an actor blueprint 2018-09-03 11:44:37 +02:00
Andrei Jianu e7291e2ce4
Merge branch 'master' into 0.9-win32 2018-08-27 17:40:29 +02:00
iFuSiiOnzZ 42048c06df Remove boost include path as is LibCarla tests are not compiled in Windows 2018-08-27 17:40:01 +02:00
nsubiron 8805d0d79a Fix typos 2018-08-24 14:40:19 +02:00
iFuSiiOnzZ 4de394eb9b Wrong var name, it sould be BOOST_LIB_PATH instead of BOOST_LIBRARY_PATH 2018-08-23 18:44:21 +02:00
iFuSiiOnzZ e908ff20c9 Dissable/Enable macros for clang compiler 2018-07-30 18:57:36 +02:00
iFuSiiOnzZ f0971ab2d6 Merge branch 'carla-0.9' into 0.9-win32 2018-07-30 13:43:29 +02:00
nsubiron 3b3bb1868a Fix the build 2018-07-30 12:37:28 +02:00
iFuSiiOnzZ 4a56c81ee9 Fix cmake boost lib path for LibCarla server
For the server the boost lib path was define as BOOST_LIBRARY_PATH and for the client as BOOT_LIB_PATH. To keep it uniform between linux and windows, the variable was rename as BOOST_LIB_PATH.
2018-07-30 09:34:11 +02:00
nsubiron e34a5891b1 Add addition and subtraction operators to locations 2018-07-29 18:04:57 +02:00
nsubiron 4f5044a495 Expose spectator pawn 2018-07-29 18:03:52 +02:00
nsubiron 12243aa84e Add functions to get actor location and transform 2018-07-28 17:46:26 +02:00
nsubiron 7d1f51e9cc Add functions to set actor location and transform 2018-07-28 15:23:57 +02:00
nsubiron 2253877405 Name some arguments for Python 2018-07-28 13:59:31 +02:00
nsubiron f9b7578d6c Allow destroying actors from Python 2018-07-28 13:04:59 +02:00
nsubiron c4c15cbb41 Add function to enable autopilot from Python 2018-07-27 19:56:00 +02:00
nsubiron ad876a282f Better validation of actor descriptions 2018-07-27 18:43:27 +02:00
nsubiron eb2cbc7839 Expose recommended attribute values in Python 2018-07-27 18:42:49 +02:00
nsubiron 167cef21a0 Fix try spawn actor catching too general exception 2018-07-27 18:42:00 +02:00
iFuSiiOnzZ 756646020d Merge branch 'carla-0.9' into 0.9-win32 2018-07-27 16:30:40 +02:00
nsubiron 81ba9782cb Helpers to convert actor attribute values 2018-07-27 14:51:30 +02:00
nsubiron 2e71467ff5 Add find function to blueprint library 2018-07-27 12:59:38 +02:00
iFuSiiOnzZ 4ed2b34a1e Create carla client library 2018-07-27 09:11:44 +02:00
nsubiron d543c3812e Add function to apply control to vehicles 2018-07-26 22:08:39 +02:00
nsubiron f89f728871 Add function to spawn actor attached to another actor 2018-07-26 20:37:15 +02:00
nsubiron 4f9299c2b5 Compile all client code with setup.py and custom boost version 2018-07-26 19:07:05 +02:00
nsubiron ab431e3847 Exposing cameras in Python API 2018-07-26 18:25:57 +02:00
iFuSiiOnzZ 83464900b9 Make Carla build for Windows
Add missing libs
Enable exceptions
Enble/Disable some UE4 macros
2018-07-26 15:01:54 +02:00
iFuSiiOnzZ 3384d0fd6e Building libcarla without tests 2018-07-26 12:41:20 +02:00
nsubiron 8ae2770e1a Improvements to actor spawners 2018-07-25 17:16:28 +02:00
nsubiron 60d866d5b6 Access Python blueprints with bounds checking 2018-07-25 11:45:16 +02:00
nsubiron a1158c6ca8 Fix some compilation errors on Windows 2018-07-24 18:05:53 +02:00
nsubiron a1663c6e03 Attach description to actor instance 2018-07-24 12:41:44 +02:00
nsubiron 0f636e84fd Full pipeline for spawning actors from Python 2018-07-23 20:40:59 +02:00
nsubiron 03c5ccc9d2 Add game mode for new RPC server 2018-07-23 17:43:23 +02:00
nsubiron 45f661ff9e Expose actor definitions and attributes on client side 2018-07-19 12:19:39 +02:00
nsubiron 82de324b0f Suppress clang warning 2018-07-15 18:52:17 +02:00
nsubiron b7a13d08d6 Refactor streaming library 2018-07-13 11:54:12 +02:00
nsubiron 90b58429bb Update Jenkins pipeline 2018-07-06 18:04:50 +02:00
nsubiron 084fe6c0f6 Add LibCarla module 2018-07-04 11:11:49 +02:00