You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-12Lines changed: 28 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
>
6
6
> January 2026
7
7
>
8
-
> This is the primary, 'v3' [`main` branch](https://github.com/apl-ocean-engineering/liboculus), which replaces G3Log with [`spdlog`](https://github.com/gabime/spdlog) along with other changes under the good.
8
+
> This is the [main/`v3` branch](https://github.com/apl-ocean-engineering/liboculus), which replaces G3Log with [`spdlog`](https://github.com/gabime/spdlog) along with other changes under the good.
9
9
>
10
10
> The 'v2' branch of this liboculus; with a matching 'v2' branch for [oculus_sonar_driver](https://gitlab.com/apl-ocean-engineering/oculus_sonar_driver/-/commits/v2) includes a hybrid CMakeLists.txt which can build for ROS1, ROS2 or in a plain CMake environment. G3Log is still used as the main logger.
11
11
>
@@ -39,17 +39,6 @@ This is a hybrid repository which builds in either ROS1 or ROS2, though there ar
39
39
40
40
We hope the code is still useful for others looking to talk to the Oculus.
41
41
42
-
> [!NOTE][fips](http://floooh.github.io/fips/) support has been removed from this branch.
43
-
44
-
The primary dependency is on [g3log](https://github.com/KjellKod/g3log).
45
-
* If using either ROS1 or ROS2, use the provided `liboculus.rosinstall` file:
46
-
47
-
```
48
-
cd <catkin_ws>/src`; `vcs import --recursive --input liboculus/liboculus.repos
49
-
```
50
-
51
-
The `main` branch of `g3log_ros` is also a ROS1-ROS2 hybrid.
52
-
53
42
The (optional) test suite also requires Googletest and the (also optional)
Note the `CMakelists.txt` attempts to auto-detect ROS. Cmake build should be done in a session where ROS has not been loaded.
70
59
60
+
## Logging
61
+
62
+
> [!NOTE][fips](http://floooh.github.io/fips/) support has been removed from this version.
63
+
> [!NOTE] The dependency on [g3log](https://github.com/KjellKod/g3log) has been removed.
64
+
65
+
Internally the library uses [spdlog](https://github.com/gabime/spdlog). By default logger `"liboculus"` does not have any registered sinks and does not output to the console.
66
+
67
+
If the calling application uses spdlog, either the library's logger can be reset:
auto stdout_sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt >(); liboculus::Logger::add_sink( stdout_sink );
77
+
```
78
+
79
+
80
+
81
+
82
+
71
83
---
72
84
## oc_client binary
73
85
@@ -149,3 +161,7 @@ Other files/classes:
149
161
This code is released under the [BSD 3-clause license](LICENSE).
150
162
151
163
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).
164
+
165
+
It includes the header-only version of [CLI11](https://github.com/CLIUtils/CLI11) at [`include/liboculus/thirdparty/CLI11/`](include/liboculus/thirdparty/CLI11/)
166
+
167
+
It includes the header-only version of TartanLlama's [`expected` implementation](https://github.com/TartanLlama/expected) at [`include/liboculus/thirdparty/expected.hpp`](include/liboculus/thirdparty/expected.hpp)
0 commit comments