patch to ubuntu 2018 or latest
https://sourceforge.net/projects/darwinop/files/Software/Main%20Controller/Source%20Code/
- sudo usermod -a -G dialout $USER
- sudo reboot
- sudo apt-get update
- sudo apt install openssh-server
- sudo apt install apache2
- sudo apt install make
- sudo apt-get install g++ manpages-dev libjpeg62-dev libncurses5-dev git
- sudo apt-get install libopencv-dev -y
step 1. change camera.h
change
static const double VIEW_V_ANGLE = 46.0; //degree
static const double VIEW_H_ANGLE = 58.0; //degree
to
static constexpr double VIEW_V_ANGLE = 46.0; //degree
static constexpr double VIEW_H_ANGLE = 58.0; //degree
step 2. clean
- go to directory Linux/build
- make clean
step 3. add library unistd
- go to Framework/include/motionManager.h
- add #include <unistd.h>
- go to Linux/project/demo/VisionMode.cpp
- add #include <unistd.h>
step 4. add library stat
- go to Linux/include/LinuxCamera.h
- add #include <sys/stat.h>
step 5. build
- go to directory Linux/build
- make all
step 6. pthread
-
open Makefile in demo
-
change
LFLAGS += -lpthread -ljpeg -lrt
-
to
LFLAGS += -pthread -ljpeg -lrt
step 7. flag
- move $(LFLAGS) to end
Danu andrean | RSCUAD