Public headers of device layer and some utils

This commit is contained in:
John Zhao 2018-04-19 23:19:00 +08:00
parent ad03d33d9c
commit a3f90d31c7
13 changed files with 22 additions and 25 deletions

View File

@ -69,10 +69,16 @@ target_include_directories(main PRIVATE
set(MYNTEYE_NAME ${PROJECT_NAME})
set(MYNTEYE_PUBLIC_H
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/callbacks.h
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/global.h
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/glog_init.h
${CMAKE_CURRENT_BINARY_DIR}/include/mynteye/mynteye.h
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/types.h
${CMAKE_CURRENT_SOURCE_DIR}/src/device/context.h
${CMAKE_CURRENT_SOURCE_DIR}/src/device/device.h
${CMAKE_CURRENT_SOURCE_DIR}/src/internal/files.h
${CMAKE_CURRENT_SOURCE_DIR}/src/internal/strings.h
${CMAKE_CURRENT_SOURCE_DIR}/src/internal/times.h
)
if(OS_WIN)

View File

@ -1,5 +1,5 @@
#ifndef MYNTEYE_INTERNAL_CALLBACKS_H_ // NOLINT
#define MYNTEYE_INTERNAL_CALLBACKS_H_
#ifndef MYNTEYE_CALLBACKS_H_ // NOLINT
#define MYNTEYE_CALLBACKS_H_
#pragma once
#include <cstdint>
@ -90,4 +90,4 @@ using MotionCallback = std::function<void(const MotionData &data)>;
MYNTEYE_END_NAMESPACE
#endif // MYNTEYE_INTERNAL_CALLBACKS_H_ NOLINT
#endif // MYNTEYE_CALLBACKS_H_ NOLINT

View File

@ -6,10 +6,6 @@ set_outdir(
"${OUT_DIR}/bin/${DIR_NAME}"
)
include_directories(
${PRO_DIR}/src
)
## camera_d
add_executable(camera_d camera.cc)

View File

@ -3,10 +3,10 @@
#include "mynteye/glog_init.h"
#include "device/context.h"
#include "device/device.h"
#include "mynteye/context.h"
#include "mynteye/device.h"
#include "internal/times.h"
#include "mynteye/times.h"
MYNTEYE_USE_NAMESPACE

View File

@ -9,11 +9,10 @@
#include <string>
#include <vector>
#include "mynteye/callbacks.h"
#include "mynteye/mynteye.h"
#include "mynteye/types.h"
#include "internal/callbacks.h"
MYNTEYE_BEGIN_NAMESPACE
namespace uvc {

View File

@ -6,10 +6,9 @@
#include <mutex>
#include <vector>
#include "mynteye/callbacks.h"
#include "mynteye/mynteye.h"
#include "internal/callbacks.h"
MYNTEYE_BEGIN_NAMESPACE
class Channels;

View File

@ -8,11 +8,10 @@
#include <mutex>
#include <vector>
#include "mynteye/callbacks.h"
#include "mynteye/mynteye.h"
#include "mynteye/types.h"
#include "internal/callbacks.h"
MYNTEYE_BEGIN_NAMESPACE
class Streams {

View File

@ -47,7 +47,6 @@ set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${PRO_DIR}/src
)
# dataset

View File

@ -13,7 +13,7 @@
#include <stdexcept>
#include <utility>
#include "internal/files.h"
#include "mynteye/files.h"
#define FULL_PRECISION \
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)

View File

@ -7,7 +7,7 @@
#include <memory>
#include <string>
#include "internal/callbacks.h"
#include "mynteye/callbacks.h"
#include "mynteye/mynteye.h"
MYNTEYE_BEGIN_NAMESPACE

View File

@ -3,10 +3,10 @@
#include "mynteye/glog_init.h"
#include "device/context.h"
#include "device/device.h"
#include "mynteye/context.h"
#include "mynteye/device.h"
#include "internal/times.h"
#include "mynteye/times.h"
#include "dataset/dataset.h"

View File

@ -74,7 +74,6 @@ add_compile_options(-std=c++11)
include_directories(
${catkin_INCLUDE_DIRS}
${SDK_DIR}/src # for device layer interface
)
set(LINK_LIBS

View File

@ -16,8 +16,8 @@
#include <map>
#include <string>
#include "device/context.h"
#include "device/device.h"
#include "mynteye/context.h"
#include "mynteye/device.h"
#define FULL_PRECISION \
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)