Commit Graph

277 Commits

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