RobotLocomotion / spartan

A project repo for robotics research and applications using drake and director.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

batch_extract_all_scenes_and_fuse

peteflorence opened this issue · comments

Failed with file not found error on iiwa1 machine.

output_dir:  /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-09-58/processed
cmd:
cd /home/peteflo/spartan/src/tsdf-fusion && /home/peteflo/spartan/src/tsdf-fusion/demo /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-09-58/processed/images /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-09-58/processed/images/camera-intrinsics.txt 0.0025 240 320 280 0.4 -0.3 -0.2
Traceback (most recent call last):
  File "./batch_extract_and_fuse_all_scenes.py", line 64, in <module>
    tsdf_fusion.run_tsdf_fusion_cuda(images_dir)
  File "/home/peteflo/spartan/build/install/lib/python2.7/dist-packages/fusion_server/tsdf_fusion.py", line 113, in run_tsdf_fusion_cuda
    shutil.move(tsdf_bin, tsdf_bin_new)
  File "/usr/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-09-58/processed/images/tsdf.bin'

Another error, higher up, ... seems to be failing in this area:

preparing for tsdf_fusion for /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-21-57
{'timestamp': 1524586921113198511, 'depth_image_filename': '000000_depth.png', 'camera_to_world': {'quaternion': {'y': 0.676754850458626, 'x': -0.706987667013209, 'z': -0.16692686612021365, 'w': 0.1196107538611273}, 'translation': {'y': -0.00818085287825387, 'x': 0.29748259513796554, 'z': 0.8272255930673318}}, 'rgb_image_filename': '000000_rgb.png'}
000000_
000001_
000002_
000003_

...

003100_
003101_
003102_
running tsdf fusion
output_dir:  /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-21-57/processed
cmd:
cd /home/peteflo/spartan/src/tsdf-fusion && /home/peteflo/spartan/src/tsdf-fusion/demo /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-21-57/processed/images /home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-21-57/processed/images/camera-intrinsics.txt 0.0025 240 320 280 0.4 -0.3 -0.2
Traceback (most recent call last):
  File "./batch_extract_and_fuse_all_scenes.py", line 64, in <module>
    print "running tsdf fusion"
  File "/home/peteflo/spartan/build/install/lib/python2.7/dist-packages/fusion_server/tsdf_fusion.py", line 113, in run_tsdf_fusion_cuda
    shutil.move(tsdf_bin, tsdf_bin_new)
  File "/usr/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/usr/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/usr/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/peteflo/spartan/data_volume/pdc/logs_proto/2018-04-24-16-21-57/processed/images/tsdf.bin'

I think this is working fine now.