onlytailei / CppRobotics

cpp implementation of robotics algorithms including localization, mapping, SLAM, path planning and control
MIT License
1.83k stars 490 forks source link

Using gpuplot instead of opencv? #13

Open mjyc opened 1 year ago

mjyc commented 1 year ago

While working on https://github.com/onlytailei/CppRobotics/pulls I noticed OpenCV installation takes long time and looked into where & how opencv was being used. Seems like it's mostly for plotting purposes and I was wondering if you considered using a much smaller library focusing on plotting, e.g., http://stahlke.org/dan/gnuplot-iostream/ ?

SalahEddineGhamri commented 5 months ago

Gnuplot is very lightweight solution. we can use FILE *gnuplotPipe = popen("gnuplot -persist", "w"); then we send data points in a for loop with some small sleep.