Tham khao code homography cua Ninad
Ninad thiet ke chuong trinh bao gom:
Chuong trinh chinh: main.cpp, trong do
\#include "algorithmhom.h" la header cua algorithmhom.cpp, chua class algorithmhom Trong than chuong trinh chinh, tao 1 object algorithmhom hom Thuc hien load parameter va spin, la cac ham ben trong class algorithmhom
file header algorithmhom.h, khai cac ham
void process\(\) virtual void spin\(\) va virtual void loadparameters\(\)
file code algorithmhom.cpp, chua code
void process\(\), sau nay se chua code chuong trinh chinh, cac module tinh toan void spin\(\), de chay lap lai spinOnce theo dieu kien rosOk void loadparameters\(\), dung libconfig, can sudo apt-get install libconfig de cai them, ham nay co tac dung load tham so tu file .conf
Last updated
Was this helpful?