Commit Graph

206 Commits

Author SHA1 Message Date
nsubiron 6bb2feb9b1 Fix #1272, allow changing the map from client-side 2019-03-01 00:15:58 +01:00
nsubiron 5b7098a67c Remove map_name from world 2019-03-01 00:15:58 +01:00
nsubiron 92f154649a Update Python API reference 2019-03-01 00:15:58 +01:00
nsubiron 6789783a17 Merge branch 'master' into bernatx/Recorder 2019-02-28 15:17:18 +01:00
nsubiron a4aa8ef5dd Update python_api.md 2019-02-27 18:54:03 +01:00
Manish 12fd0178e5 Improved test, removed inertia tensor scale, fixed bindings and center of mass 2019-02-24 19:47:35 +01:00
Manish 9ddafe8e0f Documentation of physics control params 2019-02-21 16:21:04 +01:00
bernatx bf693b71bf Added scripts for recording/replaying, and also add documentation. 2019-02-21 12:13:48 +01:00
bernatx 483b1c1f66 More Pull Request fixes 2019-02-12 12:06:35 +01:00
Néstor Subirón 0e8ca5064b
Merge branch 'master' into tl_api 2019-01-30 14:40:21 +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 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
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 aeecd3d6eb Rename get_vehicle_control to get_control to be consistent with walkers 2019-01-22 19:54:57 +01:00
nsubiron 5295261aca Add forward vector to rotations and transforms 2019-01-17 11:41:14 +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
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
nsubiron e9c75a9522 Update python_api.md 2018-11-15 20:22:28 +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 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 503fedeb6b Merge branch 'master' into roads 2018-11-12 14:48:44 +01:00
nsubiron b113b979ca Log vehicle control in world observer 2018-11-08 12:50:11 +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 89f30ee49c Add save OpenDrive to disk 2018-10-26 19:19:17 +02:00
nsubiron bf0685d115 Expose road maps to Python 2018-10-24 22:42:50 +02:00
nsubiron 571f9363e1 Update python_api.md 2018-10-22 14:51:22 +02:00
nsubiron 44710c760d Workaround bounding boxes only for vehicles 2018-10-22 14:17:25 +02:00
nsubiron a8505a2fb7 Fix None is a reserved keyword in Python 3 2018-10-22 14:17:24 +02:00
nsubiron c478eb039e Function to disable simulating physics on an actor 2018-10-21 23:39:58 +02:00
nsubiron cf8a758146 Add semantic tags to actors 2018-10-21 18:27:49 +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 a6dfef0cd6 Improve wildcard filtering of actors and blueprints 2018-10-18 21:09:54 +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 47d52992f9 Make actors get their dynamic state by looking at the episode state 2018-10-18 00:21:03 +02:00
nsubiron 524adc8f5f Update python_api.md 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 5bb425737c Expose weather to client API 2018-10-15 10:34:08 +02:00
nsubiron 2c53287dcf Make possible to unsubscribe from a sensor stream 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 2ad3ffedc5 Expose methods for saving and converting images in Python 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 84d48f7ed3 Expose lidar measurements to Python API 2018-10-02 15:03:58 +02:00
nsubiron 6e0abd3442 State client timeout accepts floats 2018-10-01 14:29:11 +02:00
nsubiron 0b38510f8f Change Python client timeout to float seconds 2018-09-30 17:45:47 +02:00
nsubiron 09f4ed7fd7 Allow iterating attributes of an actor blueprint 2018-09-03 11:44:37 +02:00
nsubiron 20fc5a38f8 Upgrade version 2018-07-30 14:28:51 +02:00
nsubiron 4f5044a495 Expose spectator pawn 2018-07-29 18:03:52 +02:00
nsubiron 78571e299f Minimal documentation of the new API 2018-07-28 20:11:42 +02:00