Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken links in adv_digital_twin.md by adding missing / #7050

Open
wants to merge 50 commits into
base: ue4-dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
58fc5be
Fix broken links in adv_digital_twin.md by adding missing /
matejm42 Jan 5, 2024
b841827
Merge branch 'dev' into patch-2
matejm42 Apr 23, 2024
4952c74
added cpp client build docs (#7942)
MattRoweEAIF Jul 11, 2024
5c2d297
fixed IMU units (#7960)
MattRoweEAIF Jul 17, 2024
29fbcce
Update README.md with new TinyURL links (#7988)
MattRoweEAIF Jul 25, 2024
eeb507e
Added inverse transform (#7999)
glopezdiest 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
9e94feb
navigation information is now loaded when changing maps
AreopagX Feb 29, 2024
9f6d68d
Merge branch 'dev' into patch-2
Blyron Sep 12, 2024
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
Improved get_waypoints and Literal type hints
Daraan authored and Blyron committed Aug 28, 2024
commit 26dc3867243ecbec3c6d2415d2b86628bc93ae5e
16 changes: 11 additions & 5 deletions PythonAPI/carla/source/carla/libcarla.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from enum import Enum, Flag, IntFlag
import sys
from typing import Callable, Iterable, Iterator, Union, Optional, overload, ClassVar, Any, Literal
from typing import Callable, Iterable, Iterator, Union, Optional, overload, ClassVar, Any

if sys.version_info >= (3, 11):
from typing import Self
else:
@@ -10,6 +11,11 @@ if sys.version_info >= (3, 9):
from typing import Annotated
else:
from typing_extensions import Annotated

if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal

class __CarlaEnum(Enum):
"""
@@ -2556,14 +2562,14 @@ class Map():
...

@overload
def get_waypoint(self, location: Location, project_to_road: Literal[True]=True, lane_type=LaneType.Driving) -> Waypoint:
def get_waypoint(self, location: Location, project_to_road: Literal[False], lane_type:LaneType=LaneType.Driving) -> Waypoint | None:
...

@overload
def get_waypoint(self, location: Location, project_to_road: Literal[False], lane_type=LaneType.Driving) -> Waypoint | None:
def get_waypoint(self, location: Location, project_to_road: Literal[True]=True, lane_type: Literal[LaneType.Driving]=LaneType.Driving) -> Waypoint:
...
def get_waypoint(self, location: Location, project_to_road=True, lane_type=LaneType.Driving):

def get_waypoint(self, location: Location, project_to_road:bool=True, lane_type: LaneType=LaneType.Driving) -> Waypoint | None:
"""Returns a waypoint that can be located in an exact location or translated to the center of the nearest lane. Said lane type can be defined using flags such as `LaneType.Driving & LaneType.Shoulder`.

The method will return `None` if the waypoint is not found, which may happen only when trying to retrieve a waypoint for an exact location. That eases checking if a point is inside a certain road, as otherwise, it will return the corresponding waypoint.