Compare commits

...

42 Commits

Author SHA1 Message Date
Daniel 53816ccd88
Fixed Vector arithmetic 2024-08-23 15:02:35 +02:00
Daniel 49562b7a15
Corrections and additions
more setters
missing, wrong types corrected
spelling
2024-08-15 22:45:03 +02:00
Daniel 3e828311d3
Improved Callable and callbacks signature 2024-08-08 15:04:31 +02:00
Daniel b04f41e429 Added Transform.inverse_transform and corrected signature
parameter is called in_point not in_vector
2024-08-08 14:57:59 +02:00
Daniel ba282546b0 Corrected [try_]spawn_actor keyword name 2024-08-08 14:57:59 +02:00
Daniel 9a77f5a054 Improved get_waypoints and Literal type hints 2024-08-08 14:57:59 +02:00
Daniel 17120e0609 Added setters for VehicleControl 2024-08-08 14:57:59 +02:00
Daniel 416206b8de Various fixes
- wrong signatures
- wrong names
2024-08-08 14:57:59 +02:00
Daniel 3b88788030 Added self parameter to property signatures 2024-08-08 14:57:59 +02:00
Daniel 6f9e126018 Fixes for wrong stubs
- OpendriveGenerationParameter had no init
- missing @property
- wrong signatures
2024-08-08 14:57:59 +02:00
Daniel ad4a777bb2 Fix: Enum values were tuples. Added Flag or Int to Enums 2024-08-08 14:57:59 +02:00
Daniel 00b0efbfdb Better usage of Enum if typing.Self is availiable
Using Self will not report an override / incompatible error.
2024-08-08 14:57:59 +02:00
Daniel 116cb5ccb1 Fix spelling mistakes 2024-08-08 14:57:59 +02:00
Daniel 224cae0108 Improved get_waypoint disambiguation
correctly added two overload function
2024-08-08 14:57:59 +02:00
Daniel 76a0fbd17f Corrected and more precise type-hints
- fixed carla.Waypoint.next_until_lane_end
2024-08-08 14:57:59 +02:00
Daniel 556c93c1f5 Added stubs for HUD drawing
Functions from #7168
2024-08-08 14:57:59 +02:00
Daniel abf1ee7492 Formatted some docstring to be shorter 2024-08-08 14:57:59 +02:00
Daniel b97909352a Fix missing @property 2024-08-08 14:57:59 +02:00
Daniel eb86391a88 Fix intendation shadowing methods 2024-08-08 14:57:59 +02:00
Daniel 3d820c6c54 Added type hints for `values` attribute on enums 2024-08-08 14:57:59 +02:00
Daniel adcf1069a0 Corrected Sensor.is_listening
Was changed to a function in 0.9.15. More info see: https://github.com/carla-simulator/carla/pull/7439
2024-08-08 14:57:59 +02:00
Daniel 34649f61b1 Added undocumented variables
FutureActor
laod_world_if_different
2024-08-08 14:57:59 +02:00
Daniel 4a84a52047 Disambiguated get_waypoint signature
Syntax fix (squased)
2024-08-08 14:57:59 +02:00
Daniel e0010b4272 Fixed CityObjectLabels 2024-08-08 14:57:59 +02:00
Daniel 1aed9bc6d6 ActorList.filter actually returns ActorList 2024-08-08 14:57:59 +02:00
Daniel 6095e728ff Filled in missing information and types. 2024-08-08 14:57:59 +02:00
Daniel 6b2afd4e18 FIX: added ApplyTransform, fixed ApplyTorque 2024-08-08 14:57:59 +02:00
Daniel c664716d9a FIX: __init__ methods do not return 2024-08-08 14:57:59 +02:00
Daniel 3f78f0f987 Added missing return value to reload_world 2024-08-08 14:57:59 +02:00
Daniel 4eba07e3ab Added missing -> World to load_world 2024-08-08 14:57:59 +02:00
Daniel 18674f70f2 Removed wrong unit indication 2024-08-08 14:57:59 +02:00
Daniel 5c332c3544 Fixed spelling misstakes 2024-08-08 14:57:59 +02:00
Daniel 5957832151 Added missing type for Labelled Point 2024-08-08 14:57:59 +02:00
Daniel 353e3ebece Added DSVEventArray iterator 2024-08-08 14:57:59 +02:00
Daniel 7a2b2e2771 Updated changelog
needs merge with dev version
2024-08-08 14:57:59 +02:00
Daniel 3a46c2324e Fixed missing return types 2024-08-08 14:57:59 +02:00
Daraan 9e79280549 Fixed Actor.parent
Can be None or an Actor
2024-08-08 14:57:59 +02:00
Daniel c886ba9dca Fixes and missing Iterators 2024-08-08 14:57:59 +02:00
Minokori 5f21dc7853 Add a `*.pyi` file for auto-completion & hints.
To enable auto-completion and hints in code editors such as VScode, create a `*.pyi` file. This feature is compatible with `python 3.9` and later versions.
2024-08-08 14:57:59 +02:00
MattRoweEAIF 1ef3f55c95
Docs/unit updates (#8007)
* fixed IMU units

* updated autitwheel version
2024-07-31 15:23:11 +02:00
Blyron f2695a17d1
Aaron/fixwheelchair (#8001)
* Fix OSM2ODR build

* Updated fix wheelchair default value
2024-07-31 13:10:11 +02:00
glopezdiest eeb507e585
Added inverse transform (#7999)
Co-authored-by: glopezdiest <glopez@cvc.uab.cat>
2024-07-31 10:37:32 +02:00
8 changed files with 5767 additions and 3 deletions

View File

@ -18,6 +18,7 @@
* PythonAPI `Sensor.is_listening` was defined twice (property and method), cleaned and clarified it as a method.
* Added V2X sensors for cooperative awareness message and custom user-defined messages to support vehicle-to-vehicle communication
* Added named tuples for BasicAgent.py's detection result to allow for type-hints and better semantics.
* Added type-hint support for the PythonAPI
## CARLA 0.9.15

View File

@ -129,7 +129,7 @@ pip3 install --user -Iv setuptools==47.3.1 &&
pip install --user distro &&
pip3 install --user distro &&
pip install --user wheel &&
pip3 install --user wheel auditwheel
pip3 install --user wheel auditwheel==4.0.0
```
---

File diff suppressed because it is too large Load Diff

View File

@ -237,6 +237,10 @@ void export_geom() {
self.TransformPoint(location);
return location;
}, arg("in_point"))
.def("inverse_transform", +[](const cg::Transform &self, cg::Vector3D &location) {
self.InverseTransformPoint(location);
return location;
}, arg("in_point"))
.def("transform_vector", +[](const cg::Transform &self, cg::Vector3D &vector) {
self.TransformVector(vector);
return vector;

View File

@ -279,8 +279,11 @@ def main():
for spawn_point in spawn_points:
walker_bp = random.choice(blueprintsWalkers)
# set as not invincible
probability = random.randint(0,100 + 1);
if walker_bp.has_attribute('is_invincible'):
walker_bp.set_attribute('is_invincible', 'false')
if walker_bp.has_attribute('can_use_wheelchair') and probability < 11:
walker_bp.set_attribute('use_wheelchair', 'true')
# set the max speed
if walker_bp.has_attribute('speed'):
if (random.random() > percentagePedestriansRunning):

View File

@ -1595,7 +1595,7 @@ void UActorBlueprintFunctionLibrary::MakePedestrianDefinition(
Definition.Attributes.Emplace(FActorAttribute{
TEXT("can_use_wheel_chair"),
TEXT("can_use_wheelchair"),
EActorAttributeType::Bool,
Parameters.bCanUseWheelChair ? TEXT("true") : TEXT("false") });
@ -1626,7 +1626,7 @@ void UActorBlueprintFunctionLibrary::MakePedestrianDefinition(
WheelChairVariation.Type = EActorAttributeType::Bool;
if(bCanUseWheelChair)
{
WheelChairVariation.RecommendedValues = { TEXT("true"), TEXT("false") };
WheelChairVariation.RecommendedValues = { TEXT("false"), TEXT("true") };
}
else
{

View File

@ -5,3 +5,9 @@
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "WalkerBase.h"
AWalkerBase::AWalkerBase(const FObjectInitializer &ObjectInitializer)
: Super(ObjectInitializer)
{
}

View File

@ -16,6 +16,7 @@ class CARLA_API AWalkerBase : public ACharacter
GENERATED_BODY()
AWalkerBase(const FObjectInitializer &ObjectInitializer);
public:
UPROPERTY(Category="Walker Base", BlueprintReadWrite, EditAnywhere)