Skip to content
Draft

Dev #8252

Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
4952c74
added cpp client build docs (#7942)
MattRoweEAIF Jul 11, 2024
5c2d297
fixed IMU units (#7960)
MattRoweEAIF Jul 17, 2024
32f97ea
Merge branch 'dev' of https://github.com/carla-simulator/carla into dev
Blyron Jul 19, 2024
29fbcce
Update README.md with new TinyURL links (#7988)
MattRoweEAIF Jul 25, 2024
eeb507e
Added inverse transform (#7999)
glopezdiest Jul 31, 2024
e83b79b
Merge branch 'dev' of https://github.com/carla-simulator/carla into dev
Blyron Jul 31, 2024
f2695a1
Aaron/fixwheelchair (#8001)
Blyron Jul 31, 2024
1ef3f55
Docs/unit updates (#8007)
MattRoweEAIF Jul 31, 2024
fd44ea0
Add a `*.pyi` file for auto-completion & hints.
Minokori Dec 16, 2023
951fcc4
Fixes and missing Iterators
Daraan Feb 15, 2024
be8735f
Fixed Actor.parent
Daraan Feb 19, 2024
bc6e7cd
Fixed missing return types
Daraan Feb 29, 2024
251b293
Updated changelog
Daraan Feb 29, 2024
7b2c1db
Added DSVEventArray iterator
Daraan Feb 29, 2024
f275e47
Added missing type for Labelled Point
Daraan Feb 29, 2024
4c1104d
Fixed spelling misstakes
Daraan Feb 29, 2024
755c0d8
Removed wrong unit indication
Daraan Mar 14, 2024
232cb8c
Added missing -> World to load_world
Daraan Mar 14, 2024
a0cff71
Added missing return value to reload_world
Daraan Mar 14, 2024
de33210
FIX: __init__ methods do not return
Daraan Mar 14, 2024
0197e0a
FIX: added ApplyTransform, fixed ApplyTorque
Daraan Apr 2, 2024
1d4450b
Filled in missing information and types.
Daraan Apr 3, 2024
4c086ad
ActorList.filter actually returns ActorList
Daraan Apr 3, 2024
caac503
Fixed CityObjectLabels
Daraan Apr 12, 2024
df1eb25
Disambiguated get_waypoint signature
Daraan Apr 12, 2024
e765559
Added undocumented variables
Daraan Apr 12, 2024
ddb5834
Corrected Sensor.is_listening
Daraan Jun 14, 2024
2935897
Added type hints for `values` attribute on enums
Daraan Jul 23, 2024
8df99c0
Fix intendation shadowing methods
Daraan Jul 24, 2024
19b892f
Fix missing @property
Daraan Jul 24, 2024
a089c3b
Formatted some docstring to be shorter
Daraan Jul 24, 2024
d9c217e
Added stubs for HUD drawing
Daraan Jul 24, 2024
41e595c
Corrected and more precise type-hints
Daraan Jul 24, 2024
f797e15
Improved get_waypoint disambiguation
Daraan Jul 24, 2024
b061f9e
Fix spelling mistakes
Daraan Jul 24, 2024
a959577
Better usage of Enum if typing.Self is availiable
Daraan Jul 29, 2024
453ceca
Fix: Enum values were tuples. Added Flag or Int to Enums
Daraan Jul 29, 2024
da80757
Fixes for wrong stubs
Daraan Jul 29, 2024
ca81e35
Added self parameter to property signatures
Daraan Jul 29, 2024
77856f4
Various fixes
Daraan Jul 29, 2024
798c9e1
Added setters for VehicleControl
Daraan Jul 29, 2024
26dc386
Improved get_waypoints and Literal type hints
Daraan Jul 29, 2024
58e0374
Corrected [try_]spawn_actor keyword name
Daraan Aug 1, 2024
aec0b26
Added Transform.inverse_transform and corrected signature
Daraan Aug 1, 2024
2b465bc
Improved Callable and callbacks signature
Daraan Aug 8, 2024
7633334
Corrections and additions
Daraan Aug 15, 2024
334740a
Fixed Vector arithmetic
Daraan Aug 23, 2024
c097d7a
added digital twins video (#8090)
MattRoweEAIF Aug 29, 2024
00df447
Merge branch 'dev' of https://github.com/carla-simulator/carla into dev
Blyron Sep 2, 2024
9e94feb
navigation information is now loaded when changing maps
AreopagX Feb 29, 2024
4d09f0a
Porting the changes done to UE5 to fix the recording leak to UE4
jorge-kabuto Sep 12, 2024
c733936
Fixed typo in CityScapes palette (#8137)
sergiopaniego Sep 13, 2024
92a6e71
Correcting makefile typo to avoid override warning for target "downlo…
Ylmdrin Sep 20, 2024
4feeb77
Merge branch 'dev' of https://github.com/carla-simulator/carla into dev
Blyron Sep 25, 2024
f7ed6c2
fix typo in title (#8225)
MattRoweEAIF Sep 30, 2024
2a2cc5f
added unreal coord system, fixed v2x (#8251)
MattRoweEAIF Oct 7, 2024
cb9fe83
fix: update README.md (#7959)
yukkysaito May 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatted some docstring to be shorter
  • Loading branch information
Daraan authored and Blyron committed Aug 28, 2024
commit a089c3b800b175116e038d20e23ce7e57ce83c29
69 changes: 56 additions & 13 deletions PythonAPI/carla/source/carla/libcarla.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -602,27 +602,48 @@ class ActorState(__CarlaEnum):


class AttachmentType(__CarlaEnum):
"""Class that defines attachment options between an actor and its parent. When spawning actors, these can be attached to another actor so their position changes accordingly. This is specially useful for sensors. The snippet in `carla.World.spawn_actor` shows some sensors being attached to a car when spawned.
"""
Class that defines attachment options between an actor and its parent.
When spawning actors, these can be attached to another actor so their
position changes accordingly. This is specially useful for sensors.
The snippet in `carla.World.spawn_actor` shows some sensors being
attached to a car when spawned.

+ Note that the attachment type is declared as an enum within the class."""

# region Instance Variables
Rigid = 0,
"""With this fixed attachment the object follow its parent position strictly. This is the recommended attachment to retrieve precise data from the simulation."""
"""With this fixed attachment the object follow its parent position strictly.
This is the recommended attachment to retrieve precise data from the simulation."""

SpringArm = 1,
"""An attachment that expands or retracts the position of the actor, depending on its parent. This attachment is only recommended to record videos from the simulation where a smooth movement is needed. SpringArms are an Unreal Engine component so check the UE docs to learn more about them.
"""
An attachment that expands or retracts the position of the actor,
depending on its parent. This attachment is only recommended to record
videos from the simulation where a smooth movement is needed. SpringArms
are an Unreal Engine component so check the UE docs to learn more about
them.

https://docs.unrealengine.com/5.3/en-US/using-spring-arm-components-in-unreal-engine/

+ Warning: The `SpringArm` attachment presents weird behaviors when an actor is spawned with a relative translation in the Z-axis (e.g. `child_location = Location(0,0,2)`).
"""
+ Warning: The `SpringArm` attachment presents weird behaviors when an
actor is spawned with a relative translation in the Z-axis (e.g. `child_location = Location(0,0,2)`).
"""

SpringArmGhost = 2,
"""An attachment like the previous one but that does not make the collision test, and that means that it does not expands or retracts the position of the actor. The term ghost is because then the camera can cross walls and other geometries. This attachment is only recommended to record videos from the simulation where a smooth movement is needed. SpringArms are an Unreal Engine component so check the UE docs to learn more about them.
"""
An attachment like the previous one but that does not make the collision test,
and that means that it does not expands or retracts the position of the actor.
The term ghost is because then the camera can cross walls and other geometries.
This attachment is only recommended to record videos from the simulation where
a smooth movement is needed. SpringArms are an Unreal Engine component so
check the UE docs to learn more about them.

https://docs.unrealengine.com/5.3/en-US/using-spring-arm-components-in-unreal-engine/

+ Warning: The `SpringArm` attachment presents weird behaviors when an actor is spawned with a relative translation in the Z-axis (e.g. `child_location = Location(0,0,2)`)."""
+ Warning: The `SpringArm` attachment presents weird behaviors when an actor is
spawned with a relative translation in the Z-axis (e.g. `child_location = Location(0,0,2)`).
"""
# endregion


Expand Down Expand Up @@ -1091,7 +1112,12 @@ class Color():


class ColorConverter(__CarlaEnum):
"""Class that defines conversion patterns that can be applied to a `carla.Image` in order to show information provided by `carla.Sensor`. Depth conversions cause a loss of accuracy, as sensors detect depth as float that is then converted to a grayscale value between 0 and 255. Take a look at the snippet in `carla.Sensor.listen` to see an example of how to create and save image data for `sensor.camera.semantic_segmentation`.
"""
Class that defines conversion patterns that can be applied to a `carla.Image` in order to show
information provided by `carla.Sensor`. Depth conversions cause a loss of accuracy, as sensors
detect depth as float that is then converted to a grayscale value between 0 and 255. Take a look
at the snippet in `carla.Sensor.listen` to see an example of how to create and save image data
for `sensor.camera.semantic_segmentation`.
"""

# region Instance Variables
Expand Down Expand Up @@ -3014,7 +3040,12 @@ class Sensor(Actor):


class SensorData():
"""Base class for all the objects containing data generated by a `carla.Sensor`. This objects should be the argument of the function said sensor is listening to, in order to work with them. Each of these sensors needs for a specific type of sensor data. Hereunder is a list of the sensors and their corresponding data.
"""
Base class for all the objects containing data generated by a `carla.Sensor`.
This objects should be the argument of the function said sensor is listening to,
in order to work with them. Each of these sensors needs for a specific type of
sensor data. Hereunder is a list of the sensors and their corresponding data.

- Cameras (RGB, depth and semantic segmentation): `carla.Image`.
- Collision detector: `carla.CollisionEvent`.
- GNSS sensor: `carla.GnssMeasurement`.
Expand Down Expand Up @@ -3044,7 +3075,9 @@ class SensorData():


class TextureColor():
"""Class representing a texture object to be uploaded to the server. Pixel format is RGBA, uint8 per channel.
"""
Class representing a texture object to be uploaded to the server.
Pixel format is RGBA, uint8 per channel.
"""
# region Instance Variables
@property
Expand Down Expand Up @@ -3082,7 +3115,10 @@ class TextureColor():


class TextureFloatColor():
"""Class representing a texture object to be uploaded to the server. Pixel format is RGBA, float per channel."""
"""
Class representing a texture object to be uploaded to the server.
Pixel format is RGBA, float per channel.
"""

# region Instance Variables
@property
Expand All @@ -3109,7 +3145,11 @@ class TextureFloatColor():


class Timestamp():
"""Class that contains time information for simulated data. This information is automatically retrieved as part of the `carla.WorldSnapshot` the client gets on every frame, but might also be used in many other situations such as a `carla.Sensor` retrieving data."""
"""
Class that contains time information for simulated data. This information is automatically
retrieved as part of the `carla.WorldSnapshot` the client gets on every frame, but might also
be used in many other situations such as a `carla.Sensor` retrieving data.
"""

# region Instance Variables
@property
Expand Down Expand Up @@ -4993,7 +5033,10 @@ class WorldSettings():


class WorldSnapshot():
"""This snapshot comprises all the information for every actor on scene at a certain moment of time. It creates and gives acces to a data structure containing a series of `carla.ActorSnapshot`. The client recieves a new snapshot on every tick that cannot be stored."""
"""
This snapshot comprises all the information for every actor on scene at a certain moment of time.
It creates and gives acces to a data structure containing a series of `carla.ActorSnapshot`.
The client recieves a new snapshot on every tick that cannot be stored."""
pass

# region Instance Variables
Expand Down