uzh-rpg / rpg_esim

ESIM: an Open Event Camera Simulator
MIT License
565 stars 120 forks source link

Not able to rectify this error: F0212 12:20:05.095577 5250 camera_rig.cpp:106] Check failed: "fileExists(FLAGS_calib_filename) Camera file does not exist. " #86

Open Rishabh-Samra opened 3 years ago

Rishabh-Samra commented 3 years ago

I wanted to use ESim simulator to get events from a video. (https://github.com/uzh-rpg/rpg_esim/wiki/Simulating-events-from-a-video) But I am stuck in the mid and getting the error: "F0212 12:20:05.095577 5250 camera_rig.cpp:106] Check failed: fileExists(FLAGS_calib_filename) Camera file does not exist." I have followed @supitalp 's suggestion and have changed the address of the calib file in unrealcv.conf according to the location of the file in my system but I am still getting the same error. Please help me out as how this error can be rectified. CalibError

YuxuanSnow commented 3 years ago

Basically, you have to change the absolute path in .conf file. That means you have to change the "user" to your computer name.

Rishabh-Samra commented 3 years ago

Yes. I had done that before but still getting the same error. Attaching the screenshot of my .conf file too where I had changed the path in line 15. unrealCV

YuxuanSnow commented 3 years ago

i looked your command window again and found that you didn't use the .conf file. Actually you have all the arguments in the .conf file, you can just run roslaunch esim_ros esim.launch config:=cfg/unrealcv.conf to use the .conf file.
Do you want to run this example? https://github.com/uzh-rpg/rpg_esim/wiki/Photorealistic-Rendering-Engine-based-on-Unreal-Engine

Edit: Okay i see you are trying to convert video to events. Actually i don't think it needs any camera file. I ran the tutorial step by step and met no problem. Did you already download and convert video as in the tutorial?

Rishabh-Samra commented 3 years ago

Thanks for your reply. So shall I follow the instructions of preparation and then what you told from this link ( https://github.com/uzh-rpg/rpg_esim/wiki/Photorealistic-Rendering-Engine-based-on-Unreal-Engine) and then should simulate events with ESim as mentioned in this link: https://github.com/uzh-rpg/rpg_esim/wiki/Simulating-events-from-a-video ?

YuxuanSnow commented 3 years ago

No, the link i have attached is an another tutorial. If you only want to simulate events from videos, you don't need to do this. Actually, you don't need any camera file if you just want to simulate events from videos. Have you downloaded video and do the preprocessing just as the tutorial?

YuxuanSnow commented 3 years ago

Maybe it's caused by the wrong directory. Before you run "rosrun esim_ros esim_node", you have to change your directory by "roscd esim_ros". Then you are in directory "~/sim_ws/src/rpg_esim/event_camera_simulator/esim_ros/"

Rishabh-Samra commented 3 years ago

Yes I have downloaded that cheetah video and has done the preprocessing as mentioned in that tutorial to get a sequence of image frames. But then I am getting the error as posted in the issue when I am doing rosrun by running this command(path of data_folder,out_bag modified ) as follows: rosrun esim_ros esim_node \ --data_source=2 \ --path_to_output_bag=/tmp/cheetah_example/out.bag \ --path_to_data_folder=/tmp/cheetah_example/frames0 \ --ros_publisher_frame_rate=60 \ --exposure_time_ms=10.0 \ --use_log_image=1 \ --log_eps=0.1 \ --contrast_threshold_pos=0.15 --contrast_threshold_neg=0.15

What can be the problem with this?

On Sun, Apr 11, 2021 at 4:26 PM YuxuanSnow @.***> wrote:

No, the link i have attached is an another tutorial. If you only want to simulate events from videos, you don't need to do this. Actually, you don't need any camera file if you just want to simulate events from videos. Have you downloaded video and do the preprocessing just as the tutorial?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uzh-rpg/rpg_esim/issues/86#issuecomment-817287869, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIUUCJIMF6UJ2QAFF25CDT3TIF56ZANCNFSM4XQYI7LQ .

YuxuanSnow commented 3 years ago

Did you change the directory when you did "rosrun"?

Rishabh-Samra commented 3 years ago

I think it should not matter which directory I did rosrun. But then also I tried to run in sub-directories of the path ~/sim_ws/src/rpg_esim/event_camera_simulator but getting the same error as before of Check failed: fileExists(FLAGS_calib_filename) Camera file does not exist What can be done? @YuxuanSnow Can I get your email id to ask a few related things through email?