@@ -617,26 +617,6 @@ export function buildEgoVehicleRearAxleFrameTransform(
617617 } ;
618618}
619619
620- export function buildEgoVehicleRearAxisFrameTransform (
621- osiGroundTruth : DeepRequired < GroundTruth > ,
622- ) : FrameTransform {
623- const hostIdentifier = osiGroundTruth . host_vehicle_id . value ;
624- const hostObject = osiGroundTruth . moving_object . find ( ( obj ) => {
625- return obj . id . value === hostIdentifier ;
626- } ) ! ;
627- return {
628- timestamp : osiTimestampToTime ( osiGroundTruth . timestamp ) ,
629- parent_frame_id : "ego_vehicle_bb_center" ,
630- child_frame_id : "ego_vehicle_rear_axis" ,
631- translation : {
632- x : hostObject . vehicle_attributes . bbcenter_to_rear . x ,
633- y : hostObject . vehicle_attributes . bbcenter_to_rear . y ,
634- z : hostObject . vehicle_attributes . bbcenter_to_rear . z ,
635- } ,
636- rotation : eulerToQuaternion ( 0 , 0 , 0 ) ,
637- } ;
638- }
639-
640620function buildSensorDataSceneEntities (
641621 osiSensorData : DeepRequired < SensorData > ,
642622) : PartialSceneEntity [ ] {
@@ -1034,23 +1014,6 @@ export function activate(extensionContext: ExtensionContext): void {
10341014 "bbcenter_to_rear not found in ego vehicle attributes. Can not build rear axle FrameTransform." ,
10351015 ) ;
10361016 }
1037-
1038- // Add rear axis FrameTransform if bbcenter_to_rear is set in vehicle attributes of ego vehicle
1039- if (
1040- message . moving_object . some (
1041- ( obj ) =>
1042- obj . id ?. value === message . host_vehicle_id ?. value &&
1043- obj . vehicle_attributes ?. bbcenter_to_rear ,
1044- )
1045- ) {
1046- transforms . transforms . push (
1047- buildEgoVehicleRearAxisFrameTransform ( message as DeepRequired < GroundTruth > ) ,
1048- ) ;
1049- } else {
1050- console . warn (
1051- "bbcenter_to_rear not found in ego vehicle attributes. Can not build rear axis FrameTransform." ,
1052- ) ;
1053- }
10541017 } catch ( error ) {
10551018 console . error (
10561019 "Error during FrameTransform message conversion:\n%s\nSkipping message! (Input message not compatible?)" ,
0 commit comments