| Files | Last commit | Last update |
|---|---|---|
refactor(naming): use the .cpp suffix for C++ source files What: rename every C++ source file in the repository from .cc to .cpp (824 files, with git history kept as renames) and update the build lists, scripts, tests, configs, docs and source comments that name them. The project generators (ibmw-gen and ibmw_cli) now write .cpp files for new projects; when a project being regenerated already holds .cc sources from an earlier run, the generators keep .cc for it so the user's files and CMake lists stay consistent. A small helper picks the suffix from the output directory, and new tests cover both the new and the legacy case. Generated CMake lists from ibmw_cli accept both suffixes. The in-tree generated samples and the template project are regenerated with the new names. Why: the code check requires C++ source files to use the .cpp suffix. Verification: full build with 0 errors; ctest 75/75 passed; ibmw-gen tests 341 passed with only the known environment-dependent failure; mw_perf_collect tests 968 passed, 2 skipped; core metrics tests 215 passed; shell tests show only the three known environment failures; clang-format, generated-code format, license header, docs governance and release hygiene checks pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
refactor(naming): use the .cpp suffix for C++ source files What: rename every C++ source file in the repository from .cc to .cpp (824 files, with git history kept as renames) and update the build lists, scripts, tests, configs, docs and source comments that name them. The project generators (ibmw-gen and ibmw_cli) now write .cpp files for new projects; when a project being regenerated already holds .cc sources from an earlier run, the generators keep .cc for it so the user's files and CMake lists stay consistent. A small helper picks the suffix from the output directory, and new tests cover both the new and the legacy case. Generated CMake lists from ibmw_cli accept both suffixes. The in-tree generated samples and the template project are regenerated with the new names. Why: the code check requires C++ source files to use the .cpp suffix. Verification: full build with 0 errors; ctest 75/75 passed; ibmw-gen tests 341 passed with only the known environment-dependent failure; mw_perf_collect tests 968 passed, 2 skipped; core metrics tests 215 passed; shell tests show only the three known environment failures; clang-format, generated-code format, license header, docs governance and release hygiene checks pass. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
chore(license): put the Apache-2.0 header on every source file, add OAT.xml What: Every source, script, build and configuration file now starts with the full Apache-2.0 license header and the copyright line "Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame." (no comma after the years). The "All rights reserved." line and the Mulan PSL v2 line of the loaned message demo are removed; the repository LICENSE is Apache-2.0. A shebang, coding line or XML declaration stays first. Jinja2 templates carry the header in a template comment, so it is not copied into rendered files. The new OAT.xml registers the copyright holders and the license, and filters files that cannot carry a header (JSON, golden generator output, patches, the recorded rosbag test data, documentation), each with its reason. Why: The OpenHarmony CI open-source audit reported 3527 fatal issues: files without a license header, copyright lines it does not accept, and binary files not registered. Only file headers and OAT.xml change; no code changes. Verification: Release hygiene and docs governance pass. The header script is idempotent (a second run changes nothing) and its diff only removes old header lines and the comment separators after them. ibmw_gen tests and scripts/tests give the same results as before the change; the installed-consumer test builds and installs the whole tree. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 5 days ago | |
feat(api): add JSON bulk frames for large messages over shm What: A message type described in JSON can now carry a binary region, such as point data, next to its JSON header in one shm chunk. Add the frame format (cpp/util/json_bulk.h), a bulk sender and receiver, a 'bulk' flag for ibmw_gen json_types, and a written message-type spec (docs/reference/json-message-spec.zh.md). Why: Our own applications drop IDL and CDR. JSON describes their message types, but point clouds and scans are too large to encode as JSON text. The receiver must read them in place, with no copy. How: A 64-byte frame header holds magic, version, header and payload lengths and the schema hash, followed by the JSON header and the payload aligned to 64 bytes. The sender loans one shm chunk and returns the real result of the loaned publish. A receiver gets the decoded header and a read-only span over the payload. A frame with a bad magic, version, layout or schema hash is dropped and counted. On non-shm drivers the sender sends one copy. In ibmw_gen, 'bulk: true' adds kJsonBulk and makes the flag part of the schema and so of its hash. Constraint: No new dependency; uses the existing JSON and loan APIs. Rejected: CDR or IDL for the payload | this layer must not depend on them. Confidence: high Scope-risk: narrow; new header, new tests, additive generator flag. Tested: shm_ext_test with the bulk round trip, rejection, same-address zero-copy and cross-process cases on the host and on a HarmonyOS device; ibmw_gen bulk tests 3/3. Not-tested: Non-shm fallback in a cross-process setting. Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 13 days ago | |
feat(pkg): 包入口改为带版本和大小的 IbmwPkgEntryV2 (CORE-021) What: 包入口改为 IbmwPkgEntryV2,返回首字段为 abi_version/struct_size 的 ibmw_pkg_entry_v2_t;IBMW_PKG_MAIN 同步生成 Why: 旧的 IbmwPkgEntry 无版本信息,旧二进制包能绕过核心 ABI 3 的门禁并按旧布局被调用 Where: src/api/pkg/pkg_main.h、pkg_macro.h、src/core/engine/module/package_loader.cc、测试夹具与 CMake、文档、CHANGELOG When: 2026-11-03,ABI 方案第 7 步 Who: Claude(代码检视修复) How: 加载器只查 V2 符号;缺失时若存在旧符号则提示重编;调用回调前校验版本等于 2 且 struct_size 不小于 sizeof;不做回退 How much: 16 个文件 +141/-36;仅包加载路径多一次比较(代码推断,未单独 A/B);所有模块包需重新编译 Verification: 新增 PackageLoaderTest×2(旧入口、错误版本/过短入口),去掉校验的变异体 2 项全失败;build-rel 22/23、build-metrics 21/22(仅基线);build-dds 构建通过,16 个样例包 nm 只导出 IbmwPkgEntryV2 Signed-off-by: fanglinxu <fanglinxu@huawei.com> | 18 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 5 days ago | ||
| 5 days ago | ||
| 5 days ago | ||
| 13 days ago | ||
| 18 days ago |