Comments (3)
Hi @MTeuberItemis,
Those attributes are declared in a C++ class.
First, you need to add your new variable to the Pedestrians structure.
Then, define it in ActorBlueprintsFunctionLibrary
from carla.
Thank you for that input, that already helps a lot.
But I still get some errors that I dont really understand.
There are two cases I tested with different outcomes: [everything in carla 0.9.13]
CASE 1:
I added following code:
PedestriansParameters.h: line 59 (bottom of the code)
...
UPROPERTY(EditAnywhere, BlueprintReadWrite)
bool on_wheelchair = false;
};
ActorBlueprintFunctionLibrary.cpp: line 1124:
Definition.Attributes.Emplace(FActorAttribute{
TEXT("on_wheelchair"),
EActorAttributeType::Bool,
GetWheelchair(Parameters.on_wheelchair)});
this resulted in a build error, when I tried to launch my locally built carla:
it stopped at module 5/8:
make: *** [CarlaUE4Editor] Fehler 6
CASE 2
inspired by: how "is_invincible" was added, i made no changes to original pedestrianparameters.h
and added following to
ActorBlueprintFunctionLibrary.cpp: line 1144:
FActorVariation OnWheelchair;
OnWheelchair.Id = TEXT("on_wheelchair");
OnWheelchair.Type = EActorAttributeType::Bool;
OnWheelchair.RecommendedValues = { TEXT("false") };
OnWheelchair.bRestrictToRecommended = false;
with this it was possible to build, but unfortunately when I tried to spawn walkers, it gave me following error:
Unknown error while trying to spawn actor
Interestingly, "on_wheelchair" also got added to the properties mentioned in my original question:
LogBlueprintUserMessages: [WalkerFactory_C_0] on_wheelchair
LogBlueprintUserMessages: [WalkerFactory_C_0] role_name
LogBlueprintUserMessages: [WalkerFactory_C_0] gender
LogBlueprintUserMessages: [WalkerFactory_C_0] speed
LogBlueprintUserMessages: [WalkerFactory_C_0] is_invincible
LogBlueprintUserMessages: [WalkerFactory_C_0] generation
LogBlueprintUserMessages: [WalkerFactory_C_0] age
from carla.
it was actually a problem in another part of the walkerFactory. the second approach works just fine. thank you
from carla.
Related Issues (20)
- Tool - Spawn assets following an spline
- Carla encountered an error loading xodr file (missing spiral segment) HOT 1
- Road Surface Appears Gray and Hazy After Importing from MATLAB RoadRunner HOT 4
- Traffic Light HOT 2
- windows11在make launch启动Carla0.9.15时加载到75%时提示fatal error HOT 2
- CarlaUE4.sh cannot launch HOT 5
- Crash when package branch ue5-dev on Ubuntu22.04 HOT 2
- Does DVS Event sensor relies on only rgb images or it uses depth as well? HOT 1
- ValueError: role_name: colors must have 3 channels (R,G,B) HOT 10
- Cmake issue what should i do?
- I want to keep my vehicle at 100m fom gound and then spawn on that height. when i start simulation i drops form that height and then runs on ground. HOT 1
- "Link [x64] UnrealEditor-WebBrowser.lib" build fail HOT 1
- Add texture to buildings HOT 7
- Confusion about recommended Ubuntu version (20 or 22?) to build CARLA with UE5 HOT 3
- Can not run Carla 0.9.15(precompiled/released) by ./CarlaUE4.sh HOT 7
- Abnormal Dark Areas on Imported Car Paint HOT 2
- Vehicle Physics in Carla HOT 2
- ERROR: Platform Linux is not a valid platform to build. Check that the SDK is installed properly. HOT 2
- make launch failed HOT 1
- cant launch scenario runner HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carla.