Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ if(${ros_environment_FOUND})
oculus
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/thirdparty>"
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>"
"$<INSTALL_INTERFACE:include/thirdparty>"
"$<INSTALL_INTERFACE:include/>"
)

install(
Expand All @@ -54,7 +52,7 @@ if(${ros_environment_FOUND})
)

install(
DIRECTORY include/ thirdparty
DIRECTORY include/
DESTINATION include
FILES_MATCHING
PATTERN "*.hpp"
Expand All @@ -73,13 +71,13 @@ if(${ros_environment_FOUND})

catkin_package(
CATKIN_DEPENDS g3log_ros
INCLUDE_DIRS include thirdparty
INCLUDE_DIRS include
LIBRARIES liboculus
)

add_library(liboculus ${oculus_SRCS})

include_directories(liboculus include thirdparty ${catkin_INCLUDE_DIRS})
include_directories(liboculus include ${catkin_INCLUDE_DIRS})

target_link_libraries(liboculus ${catkin_LIBRARIES})

Expand All @@ -92,7 +90,7 @@ if(${ros_environment_FOUND})

## Install headers
install(
DIRECTORY include/${PROJECT_NAME}/ thirdparty/
DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING
PATTERN "*.hpp"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The client must implement callbacks that will handle data from the sonar ([for e
This library makes liberal use of overlay classes in order to provide
zero-copy accessor functions into the raw data chunks received from
the oculus. These classes overlay the struct hierarchy defined in
thirdparty/Oculus/Oculus.h, making it possible to directly cast between the types depending on which accessors you want to use:
`include/liboculus/thirdparty/Oculus/Oculus.h`, making it possible to directly cast between the types depending on which accessors you want to use:
* OculusSimplePingResult carries all image data from the oculus.
* Its first field is the OculusSimpleFireMessage that triggered data collection
* In turn, the first field of the OculusSimpleFireMessage is an OculusMessageHeader
Expand Down Expand Up @@ -142,4 +142,4 @@ Other files/classes:

This code is released under the [BSD 3-clause license](LICENSE).

This repository contains one file provided by Blueprint as part of their free "Oculus Viewer" sample application: ([thirdparty/Oculus/Oculus.h](thirdpart/Oculus/Oculus.h)). It describes their protocol and data formats. This file is distributed under [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html).
This repository contains one file provided by Blueprint as part of their free "Oculus Viewer" sample application: ([include/liboculus/thirdparty/Oculus/Oculus.h](thirdpart/Oculus/Oculus.h)). It describes their protocol and data formats. This file is distributed under [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html).
2 changes: 1 addition & 1 deletion include/liboculus/BearingData.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

#include <g3log/g3log.hpp> // needed for CHECK macro

#include "Oculus/Oculus.h"
#include "liboculus/DataTypes.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <string>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/DataTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <string>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/GainData.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
#include <iostream>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/DataTypes.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/ImageData.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <iostream>

#include "DataTypes.h"
#include "Oculus/Oculus.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/MessageHeader.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "BearingData.h"
#include "DataTypes.h"
#include "ImageData.h"
#include "Oculus/Oculus.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/SimpleFireMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
#include <string>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/Constants.h"
#include "liboculus/MessageHeader.h"
#include "liboculus/SonarConfiguration.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/SimplePingResult.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
#include <string>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/BearingData.h"
#include "liboculus/DataTypes.h"
#include "liboculus/GainData.h"
#include "liboculus/ImageData.h"
#include "liboculus/SimpleFireMessage.h"
#include "liboculus/SonarConfiguration.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/SonarConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <boost/asio.hpp>
#include <vector>

#include "Oculus/Oculus.h"
#include "liboculus/Constants.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/SonarStatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#include <mutex>
#include <thread>

#include "Oculus/Oculus.h"
#include "g3log/g3log.hpp"
#include "liboculus/DataTypes.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion include/liboculus/StatusRx.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
#include <memory>
#include <mutex>

#include "Oculus/Oculus.h"
#include "liboculus/IoServiceThread.h"
#include "liboculus/SonarStatus.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down
2 changes: 1 addition & 1 deletion lib/SonarPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
#include <fstream>
#include <iostream>

#include "Oculus/Oculus.h"
#include "g3log/g3log.hpp"
#include "liboculus/Constants.h"
#include "liboculus/DataTypes.h"
#include "liboculus/MessageHeader.h"
#include "liboculus/SimplePingResult.h"
#include "liboculus/thirdparty/Oculus/Oculus.h"

namespace liboculus {

Expand Down