Skip to content
ka-yeon edited this page Jul 6, 2021 · 11 revisions

Server

Server 주요 기능

  • (Data Processing)Mobile Platform으로부터 수신한 데이터를 시간동기화 및 데이터 가공
  • (Data Storing)가공된 데이터를 DB에 저장

Server 코드만 build 하고 싶을 경우

CMakeLists.txt 수정

diva2/CMakeLists.txt

# 서브 디렉토리에 있는 cmakeFiles을 실행시켜줌
# add_subdirectory(MobilePlatform/Sensing)
# add_subdirectory(MobilePlatform/Visualization)
# add_subdirectory(GroundStation/Playback)
# add_subdirectory(GroundStation/AlgorithmTesting)
# add_subdirectory(GroundStation/AlgorithmTesting_GUI)
# add_subdirectory(GroundStation/Visualization)
add_subdirectory(Server/TimeSynchronization)
add_subdirectory(Server/DBStoring)
# add_subdirectory(test)
# add_subdirectory(test/can_dbcparser)

위와 같이 CMakeLists.txt에서 Server와 관련된 것을 제외한 나머지 것들을 모두 주석처리 한 후, cmake .. 을 해준다.


코드가 실행이 안될 경우 확인 사항

취득된 데이터 날짜 폴더 이름이 코드를 실행하는 당시의 날짜(현재 날짜)와 같은지 확인한다.

→ 현재 날짜로 timestamp가 찍힌 폴더를 시간동기화, DB에 저장하도록 하였기에 현재 날짜로 폴더 이름이 되어 있는지 확인해준다. 과거에 취득된 데이터라면 폴더 이름을 현재 날짜로 수정해준다.