Commit Graph

32 Commits

Author SHA1 Message Date
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 c18c3bd39e Add support for walkers in manual_control.py 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 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
nsubiron 7ca171de9c Manual control: retry spawn if collision 2018-12-13 20:27:43 +01:00
nsubiron 8c01b53948 Allow changing gears from manual_control.py 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
nsubiron 4c9aec0764 Small fixes to manual_control.py 2018-11-15 20:22:28 +01:00
nsubiron 02be13d9e7 Improvements to manual_control.py 2018-11-15 16:45:35 +01:00
nsubiron f9293c80ed Use actor_get_display_name when possible 2018-11-15 16:29:57 +01:00
nsubiron 6103d59766 Implement lane detector only for points on same road section 2018-11-15 16:29:57 +01:00
nsubiron 503fedeb6b Merge branch 'master' into roads 2018-11-12 14:48:44 +01:00
nsubiron 2371246c5b Add HUD with info to manual_control.py 2018-11-09 11:15:27 +01:00
nsubiron db4f5082ee Add lidar to manual_control.py 2018-10-31 14:08:38 +01:00
nsubiron 92f8fe7fd6 Merge branch 'master' into roads 2018-10-28 11:35:42 +01:00
nsubiron 107b75c36b Add license and documentation to Python examples 2018-10-28 11:23:59 +01:00
nsubiron bb0c9ffdbc Change Python examples to use the recommended spawn points 2018-10-26 19:19:17 +02:00
nsubiron 571f9363e1 Update python_api.md 2018-10-22 14:51:22 +02:00
nsubiron a8505a2fb7 Fix None is a reserved keyword in Python 3 2018-10-22 14:17:24 +02:00
nsubiron 4b11973627 Improvements to manual control 2018-10-22 00:30:35 +02:00
nsubiron 994110047e Fix set actor transform broken for attached actors 2018-10-21 23:38:14 +02:00
nsubiron 313b11931c Add collision sensor 2018-10-20 20:33:37 +02:00
nsubiron 0ce245f679 Add all weather presets to manual_control.py 2018-10-18 00:16:59 +02:00
FPerez 711e04fc53 Capture Gamma set, Preset weathers fixed 2018-10-17 19:28:49 +02:00
FPerez 288a7b7ed0 Creeated Weather Presets 2018-10-15 13:12:09 +02:00
nsubiron f14d60e299 Allow changing weather from manual_control.py 2018-10-15 12:01:31 +02:00
nsubiron f8592fb98c Improve Python examples 2018-10-09 19:38:31 +02:00
iFuSiiOnzZ c3c3f29b4d Improve manual control steering 2018-10-08 13:46:43 +02:00
nsubiron b9a6ad659c Add timeout to manual_control.py 2018-09-30 17:45:47 +02:00
nsubiron 8805d0d79a Fix typos 2018-08-24 14:40:19 +02:00
nsubiron f40c90942f Add more examples 2018-07-29 23:59:22 +02:00