ros-event-camera / metavision_driver

driver for event based cameras using the MetaVision SDK (Prophesee and CenturyArk)
Apache License 2.0
42 stars 12 forks source link

Building on Odroid XU4 #7

Closed alandente11 closed 2 years ago

alandente11 commented 2 years ago

I am trying to build the master branch on an Odroid XU4, but the process fails. The Odroid XU4 is running Ubuntu MATE 20.04 LTS with OpenEB 3.0.2. Here is the build.make.000.log file after attempting to build:

build.make.000.log

berndpfrommer commented 2 years ago

Please try this: in the metavision sources, find ros_time_keeper.h

and modify this:

    const int64_t MAX_BUFFER_DELAY = 2000000L;  // 2 ms                                                                                                                                                            
    return (                                                                                                                                                                                                       
      clamp(static_cast<int64_t>(rosT) - static_cast<int64_t>(trialTime), 0L, MAX_BUFFER_DELAY));  

to something like

 const int64_t MAX_BUFFER_DELAY = 2000000L;  // 2 ms                                                                                                                                                            
    return (                                                                                                                                                                                                      
      clamp(static_cast<int64_t>(rosT) - static_cast<int64_t>(trialTime), static_cast<int64_t>(0L), MAX_BUFFER_DELAY));

Then rebuild the package and see what you get.

alandente11 commented 2 years ago

Worked! Thank you

berndpfrommer commented 2 years ago

@alandente11 was that all that was necessary? If yes I will commit this.