This commit is contained in:
liangyuxuan
2025-12-28 16:24:16 +08:00
parent 08319d9eba
commit eeedd4bfc6
2 changed files with 8 additions and 8 deletions

View File

@@ -1,18 +1,18 @@
{
"save_path": "collect_data",
"left": {
"color": "",
"depth": "",
"info": ""
},
"right": {
"color": "/camera/camera/color/image_raw",
"depth": "/camera/camera/aligned_depth_to_color/image_raw",
"info": "/camera/camera/color/camera_info"
},
"right": {
"head": {
"color": "/camera/color/image_raw",
"depth": "/camera/depth/image_raw",
"info": "/camera/color/camera_info"
},
"head": {
"color": "",
"depth": "",
"info": ""
}
}

View File

@@ -217,8 +217,8 @@ class CollectDataNode(Node):
if self.head_sign:
self.head_index = 0
os.mkdir(os.path.join(self.save_path, f"{self.index:06d}_head_depth_raw"))
self.head_depth_raw_file = open(
os.path.join(self.save_path, f"{self.index:06d}_head_depth_raw.raw"), 'ab')
# self.head_depth_raw_file = open(
# os.path.join(self.save_path, f"{self.index:06d}_head_depth_raw.raw"), 'ab')
self.head_timestamp_file = open(
os.path.join(self.save_path, f"{self.index:06d}_head_timestamp.txt"), 'a')
self.head_camera_info_file = open(