Carla: Transform

Created on 3 Jul 2018  路  7Comments  路  Source: carla-simulator/carla

hello,
i find the function get_unreal_transform in

~/PythoClient/carla/sensor.py

but cannot understand the values in _to_unreal_transform = Transform(Rotation(roll=-90, yaw=90), Scale(x=-1))_, such as -90,-1

besides, i find in #56 :

Given a 2D point p2d = [u,v,1], your world point position P = [X,Y,Z] will be:
P = ( inv(K) * p2d ) * depth

In my understanding, it gives the Transform from Pixel coordinate to Camera coordinate
so if i want to get results in World coordinate , i need the extrinsic matrix of my camera.
Is it correct?
thanks!

python question stale

Most helpful comment

@Archiewyq Sorry for the late response.

Your thoughts are correct.
As you can see in the point_cloud_example.py on 0.8.X, we use this function to get the _camera to car_ transform:

to_unreal_transform

Cheers!

All 7 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Archiewyq Sorry for the late response.

Your thoughts are correct.
As you can see in the point_cloud_example.py on 0.8.X, we use this function to get the _camera to car_ transform:

to_unreal_transform

Cheers!

@Archiewyq Sorry for the late response.

Your thoughts are correct.
As you can see in the point_cloud_example.py on 0.8.X, we use this function to get the _camera to car_ transform:

to_unreal_transform

Cheers!

@marcgpuig Does this still work for carla 0.9.1 ?

Hi @zrfreya, sorry for the late response.

Does this still work for carla 0.9.1 ?

Yes, it does still the same :)

Hi @zrfreya, sorry for the late response.

Does this still work for carla 0.9.1 ?

Yes, it does still the same :)

Does this still work for carla 0.9.5?

Hi.
This graph is great. Would it be possible to add one section about transformations and axis system in the documentation, and include this graph ? I think every newcomer to Carla spends some time initially to figure it out by going through github issues. Would be really helpful to have it in one place. :)

Thanks !

Hi @jnd77, I quickly made it a long time ago :grinning:
I'm sure that @sergi-e, our super docs guy, can do something better to add in our official docs.
Cheers!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mallela picture mallela  路  3Comments

chankim picture chankim  路  3Comments

mhusseinsh picture mhusseinsh  路  3Comments

metaluga145 picture metaluga145  路  4Comments

kk2491 picture kk2491  路  3Comments