Skip to content

RSCUAD-TEAM/darwinOP_patch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Darwin-OP patch

patch to ubuntu 2018 or latest

--- Download file

https://sourceforge.net/projects/darwinop/files/Software/Main%20Controller/Source%20Code/

--- Environtment

  • 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

--- Install opencv

  • sudo apt-get install libopencv-dev -y

--- Remote Desktop

--- Program change

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

--- Author

Danu andrean | RSCUAD

About

patch to ubuntu 2018 or latest

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published