victorprad / InfiniTAM

A Framework for the Volumetric Integration of Depth Images
http://www.infinitam.org
Other
918 stars 351 forks source link

11020 bus error (core dumped) when using realsense #115

Closed AIBluefisher closed 5 years ago

AIBluefisher commented 5 years ago

Hi, @sgolodetz I configured the librealsense and librealsense sdk2, and connected realsense camera D415 on my PC. But when I run infiniTAM, errors occured:

initialising ...
using calibration file: /home/chenyu/图片/realsense/calib.txt
trying OpenNI device: <OpenNI default device> - calibration: from file
compiled without OpenNI support
trying UVC device
compiled without LibUVC support
trying RealSense device
There are 0 connected RealSense devices.
trying RealSense device with SDK 2.X (librealsense2)
There are 1 connected RealSense devices.
Device information: 
  Name                 : Intel RealSense D415
  Serial Number        : 821212062626
  Firmware Version     : 05.09.02.00
  Recommended Firmware Version : 05.10.03.00
  Physical Port        : /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/video4linux/video1
  Debug Op Code        : 15
  Advanced Mode        : YES
  Product Id           : 0AD3
  Camera Locked        : N/A
  Usb Type Descriptor  : N/A
Device consists of 2 sensors:
Scale factor for depth sensor is: 0
basic_string::_M_construct null not valid
[1]    11020 bus error (core dumped)  Apps/InfiniTAM/InfiniTAM /home/chenyu/图片/realsense/calib.txt

I don't know what's wrong. Can you help me?

Moreover, when I compile InfiniTAM with librealsense2, errors occured in InputSource/RealSense2Engine.h, as if you want to use std::unique_ptr, the header file #include <memory> should be added, and the other error occured on line 153 and 154 in InputSource/RealSense2Engine.cpp, as you should not add std:: in front of memcpy. I have fixed these bugs. Do I need to make a pull request?