Public headers of device layer and some utils
This commit is contained in:
parent
ad03d33d9c
commit
a3f90d31c7
|
@ -69,10 +69,16 @@ target_include_directories(main PRIVATE
|
||||||
set(MYNTEYE_NAME ${PROJECT_NAME})
|
set(MYNTEYE_NAME ${PROJECT_NAME})
|
||||||
|
|
||||||
set(MYNTEYE_PUBLIC_H
|
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/global.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/glog_init.h
|
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/glog_init.h
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/include/mynteye/mynteye.h
|
${CMAKE_CURRENT_BINARY_DIR}/include/mynteye/mynteye.h
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/include/mynteye/types.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)
|
if(OS_WIN)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef MYNTEYE_INTERNAL_CALLBACKS_H_ // NOLINT
|
#ifndef MYNTEYE_CALLBACKS_H_ // NOLINT
|
||||||
#define MYNTEYE_INTERNAL_CALLBACKS_H_
|
#define MYNTEYE_CALLBACKS_H_
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
@ -90,4 +90,4 @@ using MotionCallback = std::function<void(const MotionData &data)>;
|
||||||
|
|
||||||
MYNTEYE_END_NAMESPACE
|
MYNTEYE_END_NAMESPACE
|
||||||
|
|
||||||
#endif // MYNTEYE_INTERNAL_CALLBACKS_H_ NOLINT
|
#endif // MYNTEYE_CALLBACKS_H_ NOLINT
|
|
@ -6,10 +6,6 @@ set_outdir(
|
||||||
"${OUT_DIR}/bin/${DIR_NAME}"
|
"${OUT_DIR}/bin/${DIR_NAME}"
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(
|
|
||||||
${PRO_DIR}/src
|
|
||||||
)
|
|
||||||
|
|
||||||
## camera_d
|
## camera_d
|
||||||
|
|
||||||
add_executable(camera_d camera.cc)
|
add_executable(camera_d camera.cc)
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
#include "mynteye/glog_init.h"
|
#include "mynteye/glog_init.h"
|
||||||
|
|
||||||
#include "device/context.h"
|
#include "mynteye/context.h"
|
||||||
#include "device/device.h"
|
#include "mynteye/device.h"
|
||||||
|
|
||||||
#include "internal/times.h"
|
#include "mynteye/times.h"
|
||||||
|
|
||||||
MYNTEYE_USE_NAMESPACE
|
MYNTEYE_USE_NAMESPACE
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "mynteye/callbacks.h"
|
||||||
#include "mynteye/mynteye.h"
|
#include "mynteye/mynteye.h"
|
||||||
#include "mynteye/types.h"
|
#include "mynteye/types.h"
|
||||||
|
|
||||||
#include "internal/callbacks.h"
|
|
||||||
|
|
||||||
MYNTEYE_BEGIN_NAMESPACE
|
MYNTEYE_BEGIN_NAMESPACE
|
||||||
|
|
||||||
namespace uvc {
|
namespace uvc {
|
||||||
|
|
|
@ -6,10 +6,9 @@
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "mynteye/callbacks.h"
|
||||||
#include "mynteye/mynteye.h"
|
#include "mynteye/mynteye.h"
|
||||||
|
|
||||||
#include "internal/callbacks.h"
|
|
||||||
|
|
||||||
MYNTEYE_BEGIN_NAMESPACE
|
MYNTEYE_BEGIN_NAMESPACE
|
||||||
|
|
||||||
class Channels;
|
class Channels;
|
||||||
|
|
|
@ -8,11 +8,10 @@
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "mynteye/callbacks.h"
|
||||||
#include "mynteye/mynteye.h"
|
#include "mynteye/mynteye.h"
|
||||||
#include "mynteye/types.h"
|
#include "mynteye/types.h"
|
||||||
|
|
||||||
#include "internal/callbacks.h"
|
|
||||||
|
|
||||||
MYNTEYE_BEGIN_NAMESPACE
|
MYNTEYE_BEGIN_NAMESPACE
|
||||||
|
|
||||||
class Streams {
|
class Streams {
|
||||||
|
|
|
@ -47,7 +47,6 @@ set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${PRO_DIR}/src
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# dataset
|
# dataset
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
#include "internal/files.h"
|
#include "mynteye/files.h"
|
||||||
|
|
||||||
#define FULL_PRECISION \
|
#define FULL_PRECISION \
|
||||||
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)
|
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "internal/callbacks.h"
|
#include "mynteye/callbacks.h"
|
||||||
#include "mynteye/mynteye.h"
|
#include "mynteye/mynteye.h"
|
||||||
|
|
||||||
MYNTEYE_BEGIN_NAMESPACE
|
MYNTEYE_BEGIN_NAMESPACE
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
|
|
||||||
#include "mynteye/glog_init.h"
|
#include "mynteye/glog_init.h"
|
||||||
|
|
||||||
#include "device/context.h"
|
#include "mynteye/context.h"
|
||||||
#include "device/device.h"
|
#include "mynteye/device.h"
|
||||||
|
|
||||||
#include "internal/times.h"
|
#include "mynteye/times.h"
|
||||||
|
|
||||||
#include "dataset/dataset.h"
|
#include "dataset/dataset.h"
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,6 @@ add_compile_options(-std=c++11)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${catkin_INCLUDE_DIRS}
|
${catkin_INCLUDE_DIRS}
|
||||||
${SDK_DIR}/src # for device layer interface
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LINK_LIBS
|
set(LINK_LIBS
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "device/context.h"
|
#include "mynteye/context.h"
|
||||||
#include "device/device.h"
|
#include "mynteye/device.h"
|
||||||
|
|
||||||
#define FULL_PRECISION \
|
#define FULL_PRECISION \
|
||||||
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)
|
std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user