ShuoYangRobotics / Cerberus

Visual-Inertial-Leg Odometry For Legged Robots
GNU General Public License v3.0
272 stars 42 forks source link

savitzky golay filter #19

Closed niudix closed 1 month ago

niudix commented 1 month ago

Hi, Shuo

While compiling the project, I found that savitzky golay filter is needed. I searched on github and found one from this repo. But when running the program, I encountered an error: "vilo: /usr/local/include/gram_savitzky_golay/gram_savitzky_golay.h:161: typename ContainerT::value_type gram_sg::SavitzkyGolayFilter::filter(const ContainerT&) const [with ContainerT = std::deque; typename ContainerT::valuetype = double]: Assertion `v.size() != weights.size() || v.size() < 1' failed.

I wonder if I downloaded the right version of the Savitzky-Golay filter.

ShuoYangRobotics commented 1 month ago

Please refer to the dockerfile (https://github.com/ShuoYangRobotics/Cerberus/blob/ad56c433a9a95aa47b1a436fb92c8e14c18965bd/.devcontainer/Dockerfile#L106)

niudix commented 1 month ago

Please refer to the dockerfile (

https://github.com/ShuoYangRobotics/Cerberus/blob/ad56c433a9a95aa47b1a436fb92c8e14c18965bd/.devcontainer/Dockerfile#L106

)

Got it. The problem has been solved, thanks a lot.