|
|
|
@ -6,6 +6,7 @@ import { Lidar } from "./lidar.js";
|
|
|
|
import { Annotation } from "./annotation.js";
|
|
|
|
import { Annotation } from "./annotation.js";
|
|
|
|
import { EgoPose } from "./ego_pose.js";
|
|
|
|
import { EgoPose } from "./ego_pose.js";
|
|
|
|
import { logger } from "./log.js";
|
|
|
|
import { logger } from "./log.js";
|
|
|
|
|
|
|
|
import request from "./request.js";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
euler_angle_to_rotate_matrix,
|
|
|
|
euler_angle_to_rotate_matrix,
|
|
|
|
euler_angle_to_rotate_matrix_3by3,
|
|
|
|
euler_angle_to_rotate_matrix_3by3,
|
|
|
|
@ -36,21 +37,21 @@ function FrameInfo(data, sceneMeta, sceneName, frame) {
|
|
|
|
|
|
|
|
|
|
|
|
(this.get_pcd_path = function () {
|
|
|
|
(this.get_pcd_path = function () {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
"data/" + this.scene + "/lidar/" + this.frame + this.sceneMeta.lidar_ext
|
|
|
|
request + "/data/" + this.scene + "/lidar/" + this.frame + this.sceneMeta.lidar_ext
|
|
|
|
);
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.get_radar_path = function (name) {
|
|
|
|
this.get_radar_path = function (name) {
|
|
|
|
return `data/${this.scene}/radar/${name}/${this.frame}${this.sceneMeta.radar_ext}`;
|
|
|
|
return `${request}/data/${this.scene}/radar/${name}/${this.frame}${this.sceneMeta.radar_ext}`;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.get_aux_lidar_path = function (name) {
|
|
|
|
this.get_aux_lidar_path = function (name) {
|
|
|
|
return `data/${this.scene}/aux_lidar/${name}/${this.frame}${this.sceneMeta.radar_ext}`;
|
|
|
|
return `${request}/data/${this.scene}/aux_lidar/${name}/${this.frame}${this.sceneMeta.radar_ext}`;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
this.get_anno_path = function () {
|
|
|
|
this.get_anno_path = function () {
|
|
|
|
if (this.annotation_format == "psr") {
|
|
|
|
if (this.annotation_format == "psr") {
|
|
|
|
return "data/" + this.scene + "/label/" + this.frame + ".json";
|
|
|
|
return request + "/data/" + this.scene + "/label/" + this.frame + ".json";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return "data/" + this.scene + "/bbox.xyz/" + this.frame + ".bbox.txt";
|
|
|
|
return request + "/data/" + this.scene + "/bbox.xyz/" + this.frame + ".bbox.txt";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|