Open jemishGhoghari opened 1 year ago
Hello, first, you have to understand that bikes/two wheeled vehicles in carla works as something simillar to cars. Make sure that you rig the wheels to the correct bone, RearWheelGeo and FrontWheelGeo, also, make sure to place the bones in its correct position. Have a look at this photo, you can see which bones have the mesh rigged.
The Wheel_X_X need to be placed near the wheel, in a position somehow like this: Those bones are only for support the main bones.
You can even rig the handler of the bike in order to have it turning left or right when steering it, you can use any method to rig it as you like
After that you can import the model into unreal engine, make sure you select 4WheeledBike skeleton, import windows should look something like this:
You can ignore this physical asset because when you use the skelleton I said, it will inherit it from its parents.
The easiest way to configure your new vehicle, is to copy an already working bike, for example, the yamaha, and change the skeletal mesh to yours. Then you can configure the rest of the vehicle (wheels, rotations, etc).
I hope this help. Cheers.
Hi @gsmario , I was trying to do the same (Adding 2-Wheeler in Carla). I am able add the 2-wheeler and able to spawn in manual control. But the vehicle is acting unusual. (You can refer to the image below.)
Do you know what is the reason for this issue?
hi @jemishGhoghari, any update in this issue?
Hi @kshitiz-deloitte, Could you share the image of the PhysicsAsset of your Scooter? Maybe it's a problem with the Wheel Bone Setup!
Hi @kshitiz-deloitte, Could you share the image of the PhysicsAsset of your Scooter? Maybe it's a problem with the Wheel Bone Setup! Here is the screenshot of the physics assets of the bike.
@jemishGhoghari , This is how it looks after spawning the bike It is showing collision with road.
Can you send me any fbx of 2-wheeler you are using if possible?
@jemishGhoghari I mistakenly uploaded the assets for bike, here is the physics asset for moped.
Hi @gsmario , I was trying to do the same (Adding 2-Wheeler in Carla).
I am able add the 2-wheeler and able to spawn in manual control.
But the vehicle is acting unusual. (You can refer to the image below.)
Do you know what is the reason for this issue?
@kshitiz-deloitte I had the similar issues with Bike rider. But, Since, I am using it for VR purpose. My application did not required a Rider. So, I just removed it.
May be you can try to increase the sitting position of the rider.
Hi,
I am facing a problem while adding a 2-wheeler. I am following the documentation provided by Carla. In the documentation, a reference skeleton is provided. So, I am confused about the binding of the bones. In the skeleton, We have a lot of bones.
So, My Question is, Which bones should be bonded with the 3D model of the 2-wheeler? Additionally, There are 4 extra bones Wheel_FR, Wheel_FL, Wheel_RR, Wheel_RL. Should I bind these bones to the front wheel and rear wheel?
Furthermore, I don't find "General2WheeledVehicleSkeleton" physics asset when importing the FBX model as written in the documentation. So, There, I am choosing "4WheeledBike" physics asset. In addition, After Importing, The Physics Asset looks like in the Images below.
Should It look like this? Because there is nothing in the Skeleton Tree. For other bikes which are already available in the Carla, like Harley, Vespa, etc., their skeleton tree structure looks like Bike_Rig, Wheel_FR, Wheel_FL, Wheel_RR, and Wheel_RL as bones added.
After All, was done, I registered the 2-wheeler blueprint as a vehicle in VehicleFactory blueprint. Then, I am trying to spawn my own 2-wheeler with Python Script "manual_control.py --filter myVehicle." It does spawn the Vehicle, but the Vehicle does not move at all.
In conclusion, What could be the clear solution to the Problem?
Regards