rjdmoore / fictrac

FicTrac: A webcam-based method for tracking spherical motion and generating fictive animal paths.
http://fictrac.rjdmoore.net/
Other
26 stars 28 forks source link

Error related to _cam->Timestamp() in src/PGRSource.cpp #1

Open sgherbst opened 5 years ago

sgherbst commented 5 years ago

Hi,

Thanks for the great work on FicTrac! I'm associated with the Clandinin lab and have been helping to set up FicTrac for several experiments there.

After testing the latest version from GitHub, it looks like some cameras fail to run with the attached error message (error-log.txt).

We tracked the error down to line 244 in src/PGRSource.cpp where the _cam->Timestamp() method is called. For now, we can work around the issue by commenting out lines 244-247 and then setting _timestamp equal to ts (patch), but presumably it would be good to use the camera timestamp when it can be acquired properly.

So far we have tested with three cameras and found that Flea3 FL3-U3-13E4M works without this modification, while Blackfly S BFS-U3-04S2M and Flea3 FL3-U3-13Y3M don't work out of the box and require the modification I described.

For completeness, here is the config file that we used with all three cameras: config.txt.

Cheers, Steven

sgherbst commented 5 years ago

Sorry, one other thing -- this is related to this reddit post.

rjdmoore commented 5 years ago

Hey, thanks for the report - I've changed slightly the way timestamps are read from the camera (diff) Hopefully this resolves this issue.

rjdmoore commented 5 years ago

@sgherbst are you able to pull the latest develop branch and test whether this fixes the issue?