baidu / boteye

211 stars 72 forks source link

./app_tracking:can't save map.. #41

Closed zhoubonan closed 5 years ago

zhoubonan commented 5 years ago

when i run ......-record_map_only -record_path , it's not work..

./app_tracking -sensor_type XP2 -calib_file ~/boteye/XPIAC2SET182550007.yaml -record_map_only -record_path ~/boteye/room.pb Skip /dev/video0 name EasyCamera: EasyCamera Find a Baidu_Robotics_vision_XP2S dev at /dev/video1 ioctl(fd, VIDIOC_S_FMT, &format) failed. code -1 dev cannot be init VIDIOC_STREAMOFF failed. fd 5 E0312 15:04:59.215260 9247 app_tracking.cpp:508] !live::init_XP_sensor()

mingyux commented 5 years ago

Can you try to run app_tracking w/o recording a map? It seems the XP sensor cannot be initialized correctly, which has nothing to do with the map-related arguments.

zhoubonan commented 5 years ago

emm..appear same error ...

ioctl(fd, VIDIOC_S_FMT, &format) failed. code -1 dev cannot be init VIDIOC_STREAMOFF failed. fd 5 E0312 16:07:44.236905 11360 app_tracking.cpp:508] !live::init_XP_sensor()

zhouryGitHub commented 5 years ago

This problem is your usb cache problem possibly. Use dmesg command and show me the message. Somtimes reboot your computer will resolve it.

zhoubonan commented 5 years ago

运行dmesg /dev/video1后信息都打印出来了..其中有一段是关于相机连接usb口的,而且中间有不少重复都和这段一样

usb 2-2: USB disconnect, device number 3 [20479.461548] usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd [20479.482487] usb 2-2: LPM exit latency is zeroed, disabling LPM. [20479.482853] usb 2-2: Int endpoint with wBytesPerInterval of 1024 in config 1 interface 0 altsetting 0 ep 130: setting to 64 [20479.483330] usb 2-2: New USB device found, idVendor=04b4, idProduct=00f5 [20479.483340] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [20479.483347] usb 2-2: Product: Baidu_Robotics_vision_XP2S [20479.483353] usb 2-2: Manufacturer: Baidu [20479.483359] usb 2-2: SerialNumber: V0.9.9-8ea0bed-commit-XPIAC2SET182550007 [20479.484586] uvcvideo: Found UVC 1.00 device Baidu_Robotics_vision_XP2S (04b4:00f5) [20479.537464] uvcvideo 2-2:1.0: Entity type for entity Extension 3 was not initialized! [20479.537476] uvcvideo 2-2:1.0: Entity type for entity Processing 2 was not initialized! [20479.537484] uvcvideo 2-2:1.0: Entity type for entity Camera 1 was not initialized! [20479.537981] input: Baidu_Robotics_vision_XP2S as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/input/input32 [20521.197635] usb 2-2: USB disconnect, device number 4 [20974.096259] usb 1-3: USB disconnect, device number 20 [20974.096269] usb 1-3.2: USB disconnect, device number 21 [20983.637043] usb 2-2: new SuperSpeed USB device number 5 using xhci_hcd [20983.657943] usb 2-2: LPM exit latency is zeroed, disabling LPM. [20983.658311] usb 2-2: Int endpoint with wBytesPerInterval of 1024 in config 1 interface 0 altsetting 0 ep 130: setting to 64 [20983.658789] usb 2-2: New USB device found, idVendor=04b4, idProduct=00f5 [20983.658799] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [20983.658805] usb 2-2: Product: Baidu_Robotics_vision_XP2S [20983.658811] usb 2-2: Manufacturer: Baidu [20983.658817] usb 2-2: SerialNumber: V0.9.9-8ea0bed-commit-XPIAC2SET182550007 [20983.659774] uvcvideo: Found UVC 1.00 device Baidu_Robotics_vision_XP2S (04b4:00f5) [20983.712707] uvcvideo 2-2:1.0: Entity type for entity Extension 3 was not initialized! [20983.712716] uvcvideo 2-2:1.0: Entity type for entity Processing 2 was not initialized! [20983.712723] uvcvideo 2-2:1.0: Entity type for entity Camera 1 was not initialized! [20983.714637] input: Baidu_Robotics_vision_XP2S as /devices/pci0000:00/0000:00:14.0/usb2/2-2/2-2:1.0/input/input33 [21158.451366] show_signal_msg: 13 callbacks suppressed [21158.451370] app_tracking[13678]: segfault at 40 ip 00007f403c501ed4 sp 00007ffe076492d0 error 4 in libXP.so[7f403c163000+b4f

zhoubonan commented 5 years ago

i change this usb..and it's working maybe my usb is broken..thank u all