You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using CARLA version 9.14 on Ubuntu, and I am working on labeling falling obstacles in my simulation. To achieve this, I recorded obstacles falling onto the road and developed a custom labeling tool to annotate the objects. This approach has worked perfectly until I began introducing actors with both pitch and roll.
In the following image, you can see a falling static.prop.box01 and its corresponding bounding box. There is a clear discrepancy in the position, rotation, and size of the bounding box when compared to the actual object.
I am labeling the actors' bounding boxes using the world coordinate system and also storing the point cloud data in the same system. The following code snippet is used to retrieve the bounding box of an actor:
# Actor bboxobj_bbox=obj.bounding_box# Get bbox sizebbox_size= [obj_bbox.extent.x, obj_bbox.extent.y, obj_bbox.extent.z]
# BBox coords in the object coordinate systemcords=create_bb_points(bbox_size)
bb_transform=carla.Transform(obj_bbox.location)
bb_obj_matrix=get_matrix(bb_transform)
# Object transform in world coordinate systemobj_transform=obj.get_transform()
obj_world_matrix=get_matrix(obj_transform)
bb_world_matrix=np.dot(obj_world_matrix, bb_obj_matrix)
# Vertices in the (left handed) world coordinate systemworld_cords=np.dot(rh2lf_mat_4x4, np.dot(bb_world_matrix, np.transpose(cords)))
This code is based on the function vehicle_to_world from the repo. Additionally, I use other functions from the same repository to help with the annotation process:
As mentioned, I had no issues with this method until I started testing scenes with objects that have roll and pitch. To help reproduce the issue, I have provided the CARLA recording:
I have also included the labeled data in OpenLABEL format. After weeks of testing and debugging, I suspect the error is related to how CARLA calculates bounding boxes, as well as the position and rotation of actors when roll and pitch are involved.
Any guidance or suggestions on resolving this issue would be greatly appreciated.
Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered:
Hello,
I am using CARLA version 9.14 on Ubuntu, and I am working on labeling falling obstacles in my simulation. To achieve this, I recorded obstacles falling onto the road and developed a custom labeling tool to annotate the objects. This approach has worked perfectly until I began introducing actors with both pitch and roll.
In the following image, you can see a falling
static.prop.box01
and its corresponding bounding box. There is a clear discrepancy in the position, rotation, and size of the bounding box when compared to the actual object.I am labeling the actors' bounding boxes using the world coordinate system and also storing the point cloud data in the same system. The following code snippet is used to retrieve the bounding box of an actor:
This code is based on the function vehicle_to_world from the repo. Additionally, I use other functions from the same repository to help with the annotation process:
As mentioned, I had no issues with this method until I started testing scenes with objects that have roll and pitch. To help reproduce the issue, I have provided the CARLA recording:
falling_obstacle.log
I have also included the labeled data in OpenLABEL format. After weeks of testing and debugging, I suspect the error is related to how CARLA calculates bounding boxes, as well as the position and rotation of actors when roll and pitch are involved.
Any guidance or suggestions on resolving this issue would be greatly appreciated.
Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered: