Commit Graph

312 Commits

Author SHA1 Message Date
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