{"id":20164820,"url":"https://github.com/px4/ulog_cpp","last_synced_at":"2025-04-10T00:51:37.842Z","repository":{"id":199895157,"uuid":"673788968","full_name":"PX4/ulog_cpp","owner":"PX4","description":"C++ library for reading and writing ULog files","archived":false,"fork":false,"pushed_at":"2025-03-18T10:10:36.000Z","size":2424,"stargazers_count":19,"open_issues_count":0,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-10T00:51:33.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PX4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-02T12:29:51.000Z","updated_at":"2025-03-18T10:10:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dd4defe-0911-42b9-afb4-833ec5c60a63","html_url":"https://github.com/PX4/ulog_cpp","commit_stats":null,"previous_names":["px4/ulog_cpp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PX4%2Fulog_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PX4%2Fulog_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PX4%2Fulog_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PX4%2Fulog_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PX4","download_url":"https://codeload.github.com/PX4/ulog_cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137997,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T00:35:46.505Z","updated_at":"2025-04-10T00:51:37.809Z","avatar_url":"https://github.com/PX4.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ ULog Library\n\nStreamed C++ [ULog](https://docs.px4.io/main/en/dev_log/ulog_file_format.html) reader and writer library.\n\n## Properties\n- Options for keeping log data in memory or processing immediately.\n- Pure C++17 without additional dependencies (`SimpleWriter` requires platform-specific `fsync`/`FlushFileBuffers`).\n- The reader is ~10 times as fast compared to the [python implementation](https://github.com/PX4/pyulog).\n  However, the API is more low-level, and if you're just looking for an easy-to-use parsing library, use pyulog.\n- Unsupported ULog features:\n  - Appended data (`DATA_APPENDED`)\n- A little endian target machine is required (an error is thrown if this is not the case)\n- The reader keeps errors stored, so parsing can be continued and any errors can be read out at the end.\n  The writer directly throws exceptions (`ulog_cpp::ExceptionBase`).\n\n## Examples\nCheck the [examples](examples) subdirectory.\n\n## Include in a project\nTo add the library as a submodule with cmake, use the following steps:\n```shell\ngit submodule add https://github.com/PX4/ulog_cpp.git ulog_cpp\n```\nThen extend your `CMakeLists.txt` with:\n```cmake\nadd_subdirectory(ulog_cpp)\n\ntarget_link_libraries(YOUR_PROJECT PUBLIC\n  ulog_cpp::ulog_cpp\n)\n```\n\n## Development\nFor development, install the pre-commit scripts:\n```shell\npre-commit install\n```\n\n### CI\nCI runs a number of checks which can be executed locally with the following commands.\n\n#### clang-tidy\n```shell\ncd build\nmake clang-tidy\n```\n\n#### Unit tests\n```shell\ncd build\nmake run-unit-tests\n```\n\n#### Linters (code formatting etc)\nThese run automatically when committing code. To manually run them, use:\n```shell\npre-commit run -a\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpx4%2Fulog_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpx4%2Fulog_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpx4%2Fulog_cpp/lists"}