Where to get the specific parameters of an object in a frame?
Closed this issue · 2 comments
Thank you for your work,
I am trying to get he specific parameter information of an object in a frame, like pose, rotation, object_id.
![截屏2024-01-11 12 00 18](https://private-user-images.githubusercontent.com/87565692/295787671-422a27f7-c9d7-4b51-bd96-a408310e58d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0NzYyMzIsIm5iZiI6MTcyNTQ3NTkzMiwicGF0aCI6Ii84NzU2NTY5Mi8yOTU3ODc2NzEtNDIyYTI3ZjctYzlkNy00YjUxLWJkOTYtYTQwODMxMGU1OGQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDE4NTIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNhMGJiNDYzZGUxODZhNmJiMGIwOGM5MjhiZGYzZjQ2NjZhNGQ2NGQ4YzdjYjEwMzgyMmNlYzQ0ZmFmYzNhMWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HLjEgOJPubL8uLIoIHXMIz3k9qE5mqWxzfTcgsRVrMU)
I noticed that the objects in the scene can be edited with the code above, but we don't know what the specific xyz, yaw, and object_id of each object are.
Could you give me some hints? Thanks a lot.
Hi! @RZkiller
Thanks for your reply.
The last dimension of the pose is object_id and dim. The code above means adding 0.5 in the z-direction to the vehicle with an object ID of 1. The positive direction of the z-axis is relative to the world coordinate.
@xBeho1der Thank you for your reply. Refer to issue #105, I know the meaning of each dimension of pose/rotation and how to edit an object that already exists in the scene.
The question is that when I want to add a new car in the scene, I need to set specific pose, rotation information. But I notice that in a frame, the shape of pose/rotation of an object is (375, 1242, 3) and (375, 1242) respectively.
![截屏2024-01-13 23 12 07](https://private-user-images.githubusercontent.com/87565692/296499640-b26dffc9-cea9-48b0-96a1-ed4777ef0746.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0NzYyMzIsIm5iZiI6MTcyNTQ3NTkzMiwicGF0aCI6Ii84NzU2NTY5Mi8yOTY0OTk2NDAtYjI2ZGZmYzktY2VhOS00OGIwLTk2YTEtZWQ0Nzc3ZWYwNzQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDE4NTIxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjYmQ5MjI0OGI2YjYzNGRjODkwMjRjNjdjMThiMDk3ZDEzNWRiMWE5NmYyNWUxMTQzMGU0MTk2MTFiOGM4NzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GuaajguZm0dJuD3gTEmfluhT6xq9Nmd_kpPN4yJQ92U)
Does this mean if I want to add a new car, I need to provide the pose/rotation of the car with shape of (375, 1242, 3)/(375, 1242)? P.S. looks like pixel level parameter?
If not, how can i get or set the specific pose/rotation values of a certain car in the scene?