BVLC / raptor

Code basis for the Realtime adAPtative detecTOR (first published and referred to at IEEE ICRA 2014)
60 stars 56 forks source link

Image encodings - BGR8 vs. RGB8 #6

Open binary42 opened 9 years ago

binary42 commented 9 years ago

branch: indigo-devel os: ubuntu 14.04 platform: tegra k1 jetson armv7

Image encodings using yuyv from usb_cam in transfer_images.cpp. Line 176 enc::BGR8 kills process due to perceived encoding mismatch. When changed to enc::RGB8, code continues and outputs SendXA...

Error from enc::BGR8 usage:

[transfer_images-1] process has died [pid 15633, exit code -11, cmd /home/ubuntu/Dev/repos/ros_ws/devel/lib/raptor/transfer_images image_in:=/usb_cam/image_raw __name:=transfer_images __log:=/home/ubuntu/.ros/log/cb52e0a4-5386-11e5-8e33-00044b25c206/transfer_images-1.log]. log file: /home/ubuntu/.ros/log/cb52e0a4-5386-11e5-8e33-00044b25c206/transfer_images-1*.log

Nothing is log as well, which is bothersome.

binary42 commented 9 years ago

Additional issue believed to be of a related cause:

transfer_images_ffld.cpp has similar code which crashes. at line 136 enc::BGR8 or RGB8

binary42 commented 9 years ago

And another annoying note, code uses a few output type to display errors and general info. shouldn't use std::cerr to output general info and program progress. I'll refrain from a formal code review for now, LOL :)

binary42 commented 9 years ago

A realization is that this is nowhere near ready to use. No worries. I will wait. I hope development continues. If I choose to pursue it, I'll fork and do a pull request. Thanks though.