Commit Graph

295 Commits

Author SHA1 Message Date
Axel 83180fe9a5 Python documentation. 2020-02-28 12:48:50 +01:00
Marc Garcia Puig c64a2f24ba Removed comments 2020-02-28 11:02:45 +01:00
Marc Garcia Puig 8767cfe85f Updated docs 2020-02-28 11:02:45 +01:00
sergi.e 06b5a3d97b
sergi/api index bug (#2363)
* PythonAPI reuploaded

* Second draft with some fixes

* New third iteration full Python API

* Fourth iteration on PythonAPI

* Bounding box and Vehiclecontrol fixes

* Index fixed, added map suggestions.

* Added a note regarding when a vehicle is considered to be at traffic light.
2020-02-24 13:58:54 +01:00
sergi-e 386011dd96 Weird spacing fixed 2020-02-13 10:20:16 +01:00
sergi-e a113793132 Added the python_api.md 2020-02-13 10:20:16 +01:00
sergi-e 2570a31da0 Bug fixed index API 2020-02-13 10:20:16 +01:00
Axel1092 49a09ff841
Axel1092/extend map api (#2380)
* Added GetPrevious function

* Added functions GetNextUntilLaneEnd and GetPreviousUntilLaneStart. Fixed GetPrevious issue.

* Added junction class.

* Added documentation for the python API. Fixed a bug regarding bounding box computation.

* Fixed formatting.

* Updated CHANGELOG.md.

* Fixed python format.

* Added GetPrevious function

* Added functions GetNextUntilLaneEnd and GetPreviousUntilLaneStart. Fixed GetPrevious issue.

* Added junction class.

* Added documentation for the python API. Fixed a bug regarding bounding box computation.

* Fixed formatting.

* Updated CHANGELOG.md.

* Fixed python format.

* Updated map API documentation

* updated mkdocs

* Prettified code.

* Removed nested carla repository

* Review fixes.

* Fixed small tab issues

* Improved code and comments.

* Small code fixes

* Small fix.

* Fixed until lane end and until lane start.

* Style fix

Co-authored-by: bernat <bernatx@gmail.com>
Co-authored-by: Marc Garcia Puig <marcgpuig@gmail.com>
2020-02-06 16:43:23 +01:00
Marc Garcia Puig 07c09fd93b Added missing docs 2020-02-04 10:39:01 +01:00
Marc Garcia Puig 2e656362c9 Updated docs and content version 2020-02-04 10:39:01 +01:00
Marc Garcia Puig a75da8f264 Updated PythonAPI docs 2020-02-03 16:03:57 +01:00
Marc Garcia Puig d617db030e Improved docs 2020-02-03 09:50:54 +01:00
victor.anton ab6cef2bc7 Updated bp_library.md and python_api.md 2020-02-03 09:50:54 +01:00
Ferdinand Mütsch 30a6367b80 Regenerate docs. 2019-12-10 18:03:29 +01:00
Ferdinand Mütsch e02520c835 Add method to check whether basic agent has reached its destination.
Modify local planner to use Carla-native methods.
Add undocumented methods and parameters to docs.
2019-12-10 18:03:29 +01:00
Marc Garcia Puig 140ad0f0b5 Added Radar docs & updated Changelog 2019-12-10 13:29:14 +01:00
Marc Garcia Puig 6187bf4916
New sensor: Inertial measurement unit (IMU) (#2220)
* Added IMU sensor to the client-server pipeline

* Fixed lane_explorer.py with the new debug API

* Changed compass output to standard compass degrees

* - Added accelerometer calculation to IMU.

* Added angular velocity to the IMU

* Changed IMU acceleration from world to local

* Updated changelog

* Updated accelerometer. Now uses vehicle movement component information instead of pawn information.

* Added docs regardings new sensors

* Fixed SI units in Lidar

* Fixed core dumped when using other python modules

* Explicitly deleted  Vec3D from FVec constructors

* Removed redundant DeltaTime calculation
2019-11-13 18:50:21 +01:00
Francesc Domene 7e7f989606 Fdomf/docs (#2049)
* Updated CARLA video link (README)

* Updated API reference - deleted overview

* Added css to docs

* Added documentation standard section

* Updated API docs

* Updated documentation following the standard

* Updated How to create map and import docs + documentation related standard + improvements

* Word change

* Updated importing assests from RR

* Fixes and new section for pedestrian navigation

* Changed image position

* Updated
2019-09-06 11:07:21 +02:00
Ferdinand Mütsch 4c1c34fd1f Add missing get_transform method to carla.Actor docs section. (#2031)
* Add missing get_transform method to carla.Actor docs section.

* Update contribution guide.
Update PythonAPI YAML docs.
2019-09-02 18:23:33 +02:00
Francesc Domene ecff54faf5 Fdomf/docs (#1981)
* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Updated jenkins file - master rebase

* Updated Jenkins - rebase

* Fixed doxygen link

* Waypoint tutorial extended and fixes

* Merge branch 'master' into fdomf/docs

* Fixes

* Merge branch 'fdomf/docs' of https://github.com/carla-simulator/carla into fdomf/docs

* Updated some python API class & methods

* Merge branch 'master' into fdomf/docs

* updated python api

* Updates

* Fixed broken link in camera&sensors doc

* Python API doc updated

* Added python api

* Added first lite version of python cookbook and docs related links

* Bp_doc_gen

* Merge branch 'master' into fdomf/docs

* merge master python api docs

* Updated doc

* make PythonApi.docs

* Merge branch 'master' into fdomf/docs

* Updated python API doc generator

* New debug recipe

* Docs fixes
2019-08-14 10:44:55 -07:00
Francesc Domene 3d812822be
Fdomf/docs (#1966)
* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Updated jenkins file - master rebase

* Fixed doxygen link

* Waypoint tutorial extended and fixes

* Fixes

* Updated some python API class & methods

* updated python api

* Updates
2019-08-02 20:15:14 +02:00
Francesc Domene 3d7d29315d Fdomf/docs (#1948)
* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Added c++ doc section, Updated bp_library,docs improvements

* Minor changes

* Docs updates

* Updated jenkins file - master rebase

* Fixed doxygen link

* Waypoint tutorial extended and fixes

* Fixes
2019-08-01 15:42:19 +02:00
Francesc Domene a91f0da4b4 Fdomf/docs (#1883)
* Updated documentation and improvements

* Bp doc generator

* Updated
2019-07-26 11:25:49 +02:00
Marc Garcia Puig e6e4b8c9d2 Deprecated persistent_lines in docs 2019-07-12 18:25:05 +02:00
Francesc Domene 6b68fe58a8 Fixes 2019-07-09 19:18:46 +02:00
Francesc Domene 8e8240e0ff Fixes 2019-07-09 19:18:46 +02:00
Francesc Domene b05722630d Updated world settings method 2019-07-09 19:18:46 +02:00
Francesc Domene 1eba6265b4 Added remove_on_tick method to documentation 2019-07-09 19:18:46 +02:00
Francesc Domene 5d58e1d149 Added new class and changes on others 2019-07-09 19:18:46 +02:00
Francesc Domene 2e54b7127e Updated some more links and fixes 2019-07-09 19:18:46 +02:00
Francesc Domene ad7447b3e7 Updated documentation 2019-07-09 19:18:46 +02:00
Francesc Domene a847f8ad4e Added new class walkerAIcontroller to docs and some fixes 2019-07-09 19:18:46 +02:00
Francesc Domene 1925425210 Added and fixed some classes information 2019-07-09 19:18:46 +02:00
Francesc Domene 515b6f44bb Updated links and information about sensors 2019-07-09 19:18:46 +02:00
Francesc Domene 5109d4a9f8 Fixed some documentation in py reference 2019-07-09 19:18:46 +02:00
Francesc Domene 0885ef7b32 Updated python api reference documentation 2019-07-09 19:18:46 +02:00
Francesc Domene 51e49f4063 Updated python API reference documentation 2019-07-09 19:18:46 +02:00
Francesc Domene f2ff8b4c1d Updated documentation 2019-07-09 19:18:46 +02:00
Francesc Domene f6da69cd30 Fixed some duplication errors 2019-07-09 19:18:46 +02:00
Francesc Domene 8fd58b03d3 Fix actor.yml 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 0db5148d4f Quick fix on weather docs 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 0ccf85a408 Added few information to control doc 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 0281b69dae Added inheritance in PythonAPI docs 2019-07-09 19:18:46 +02:00
Marc Garcia Puig a269f67447 Extended Map docs 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 789c45d1a6 Auto-generated doc hyperlinks 2019-07-09 19:18:46 +02:00
Marc Garcia Puig d6c955fd32 Better coloring 2019-07-09 19:18:46 +02:00
Marc Garcia Puig edd7286228 Now docs contain all classes, methods & variables 2019-07-09 19:18:46 +02:00
Marc Garcia Puig caf0a93ce3 Added geom and map docs for python 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 10ac217f8e Added more documentation 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 1d0e3f7790 Updated PythonAPI docs 2019-07-09 19:18:46 +02:00
Marc Garcia Puig 80ba00d032 Improved PythonAPI docs generation 2019-07-09 19:18:46 +02:00
nsubiron 8f2d5b089e Allow changing fixed frame rate at runtime 2019-07-09 18:46:09 +02:00
nsubiron 39f5c4da49 Allow removing on tick callbacks 2019-07-09 17:18:32 +02:00
bernatx c05ed8a0f2 Creating new batch command for walkers 2019-07-08 18:42:45 +02:00
Manish c3d160dfde Fixed walker shaking when moving by creating ApplyTransform2D batch command 2019-07-08 18:42:45 +02:00
nsubiron 01ed348875 Make 'tick' and 'apply_settings' wait until the new frame is received and return the frame id when the changes took effect 2019-07-06 00:14:53 +02:00
Johannes Quast 3d0ec717f7 Add transmission gears values access
- LibCarla and PythonAPI can read and write transmission values
   and the forward gear details
2019-07-05 20:06:26 +02:00
Johannes Quast 58e48b1acc Add access to vehicle physics brake values
- Make maximum brake and handbrake torque accessible
   to LibCarla.
2019-07-05 11:52:05 +02:00
nsubiron 915e35d435 Rename frame_count and frame_number as frame 2019-06-28 14:05:00 +02:00
Daniel Novillo d8145c8dba Control walker skeleton from Python API (#1719) 2019-06-27 22:16:17 +02:00
nsubiron 6baaf585ea Missing docs 2019-06-26 11:16:16 +02:00
nsubiron 9183ef9196 Missing method in docs 2019-06-25 16:08:57 +02:00
nsubiron e3e72206a2 Make on_tick and wait_for_tick pass WorldSnapshot instead of Timestamps 2019-06-20 18:06:13 +02:00
nsubiron bbb95c3a51 Expose snapshots to PythonAPI 2019-06-20 18:06:13 +02:00
Néstor Subirón 5d71e556f4
New weather defaults (#1753)
* Add default weather preset
* Update content link
2019-06-17 18:07:32 +02:00
nsubiron 84d4b7c5b9 PythonAPI: allow finding single actor by id 2019-06-13 16:56:56 +02:00
Manish f7b7ccd9d3 Removing is_steerable param and updating tests 2019-05-29 11:31:13 +02:00
Manish b4f7ecc5ea Added radius getter/setter to wheel physics control 2019-05-29 11:31:13 +02:00
Manish 17fe069890 renamed physics params 2019-05-29 11:31:13 +02:00
Néstor Subirón d05dc6c743
Allow attaching actors with a spring arm (#1682) 2019-05-27 18:07:03 +02:00
Marc Garcia Puig 424c32d2d4 Added waypoint's junction_id (#1509)
* Added waypoint's junction_id and is_junction
* Updated changelog
* Removed unnecessary const
2019-04-29 15:34:45 +02:00
nsubiron f045d357fb Add constructor of map to API reference 2019-04-17 18:11:13 +02:00
bernatx be37d22335 Added replayer speed (time factor for slow/fast motion) 2019-04-12 10:25:13 +02:00
nsubiron 4d1230e976 Update Python API reference 2019-04-05 12:11:56 +02:00
nsubiron 24edc1de30 Add optional argument "actor_ids" to world.get_actors to request only the actors with the ids provided 2019-04-04 16:37:21 +02:00
nsubiron 2ffb3196fa Update CHANGELOG and Python API reference 2019-04-04 14:42:28 +02:00
nsubiron 6d62bec3c3 Rename WaypointInfoRoadMark to LaneMarking 2019-03-30 12:24:51 +01:00
Marc Garcia Puig 293a4d7664 Updated Waypoint docs 2019-03-28 15:37:53 +01:00
nsubiron 78ddba6bf4 Add missing methods to Python API Reference 2019-03-26 19:33:59 +01:00
Pasch, Frederik a3e30b5f23 Documentation: Add missing attributes to VehicleControl 2019-03-20 15:27:48 +01:00
Pasch, Frederik 3d2e08611e Add time to SensorData 2019-03-13 16:07:31 +01:00
nsubiron 1a081e8f67 Add method to Map to transform Location to GeoLocation 2019-03-11 14:37:48 +01:00
nsubiron 772cc6d5c8 Fix missing methods in python_api.md 2019-03-01 19:55:22 +01:00
Marc Garcia Puig 6966d56c76 Changed right/left_lane() to get_right/left_lane() 2019-03-01 02:36:17 +01:00
Marc Garcia Puig 32b544b555 Mentioned the LaneChange enum in the documentation 2019-03-01 02:36:17 +01:00
Marc Garcia Puig 313914bdcc Updated docs 2019-03-01 02:36:17 +01:00
Marc Garcia Puig a66dff8669 Extended waypoint API core to accept lane changes 2019-03-01 02:36:17 +01:00
nsubiron 2696c9684e Fix #784, add methods for sending commands in batch 2019-03-01 00:15:58 +01:00
nsubiron 8fb6197a79 Add a method for getting the list of available maps in Python API 2019-03-01 00:15:58 +01:00
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