Commit Graph

308 Commits

Author SHA1 Message Date
Martin Dahl ef0ea2a514 Update changelog 2023-05-08 10:25:48 +02:00
Martin Dahl d052c5e436 Update r2r_cargo.cmake to latest version. 2023-05-08 10:13:05 +02:00
Marco 8b93894fc5 Log loaned msg error only once 2023-04-24 10:53:28 +02:00
Martin Dahl 9f7b11da87 Release 0.7.0 2023-03-21 09:44:56 +01:00
Liyou Zhou c092123e82 Add loaned message support to R2R
Add loaned message support in R2R's subscriber to
take advantage of the shared memory backend of the middleware.

- Add new constructor to `WrappedNativeMsg` which
  takes a already allocated pointer, and a deallocator.
- If the subscription can loan messages, construct
  `WrappedNativeMsg` with the loaned message pointer.
- Pass in also a closure  as the deallocator that calls
  the right APIs to return the loaned message to the middleware layer.
- The deallocator is called in the destructor of `WrappedNativeMsg`
- Add borrow_loaned_message API to publisher
- Add release() api to WrappedNativeMsg so a loaded message
  could be manually released if not published.
2023-03-21 09:09:41 +01:00
LIYOU ZHOU 88c16ba598
Add return value checking when invoking c APIs (#41)
During rcl_init, things could fail and result in
segfault.

In this patch, we check the return code of
c function calls and panic in case of error.
2023-03-21 08:55:45 +01:00
GabrielDertoni 0ed365f598
fix: use non-mangled field names in serde (#40) 2023-03-15 20:49:35 +01:00
Martin Dahl 5f096f469e Bump version for new release.
Changes since last release:

- Fix build scripts on ros2 foxy.
2023-02-20 10:44:22 +01:00
Martin Dahl 0756436868 Fixes undeclared type `RCUTILS_LOG_SEVERITY` on foxy. 2023-02-17 10:52:23 +01:00
Martin Dahl 71bbeac8b8 Update r2r_cargo.cmake to latest version 2023-01-19 09:45:22 +01:00
Martin Dahl 3d95663095 Forgot to bump r2r crate version 2023-01-19 09:35:41 +01:00
Martin Dahl 5acdeb3727 Bump versions for release with docs pointing to docs.rs
Allows us to delete github pages.
2023-01-19 09:32:54 +01:00
Martin Dahl bfe2329a99 Symlink crate README.md to repo root README.md 2023-01-19 09:14:43 +01:00
Kristofer Bengtsson 52feb45ccf
moved to humble and added rustup 2023-01-17 12:21:19 +01:00
Kristofer Bengtsson 0912ee8126
Updated to humble instead of foxy 2023-01-17 12:16:15 +01:00
Kristofer Bengtsson 7fade428c0
Delete Dockerfile 2023-01-17 12:15:05 +01:00
Kristofer Bengtsson 5b3a99a83c
Updated to humble 2023-01-17 12:14:41 +01:00
Martin Dahl dec306ecf1 Copy readme into r2r subfolder for release. 2023-01-17 11:43:35 +01:00
Martin Dahl ebee0e54ab Bump version numbers 2023-01-17 11:33:36 +01:00
Martin Dahl 9b30efa7d3 Rustfmt 2023-01-17 11:25:31 +01:00
Martin Dahl af452ec6fd Make WrappedTypesupport traits public. Closes #31 2023-01-17 10:41:44 +01:00
Martin Dahl 478c4e8667 Merge pr-#36 2023-01-17 09:12:11 +01:00
Martin Dahl 123c670e03 Merge pr-#34 2023-01-17 09:07:00 +01:00
Martin Dahl 86e68facd3 Merge pr-#33 into master 2023-01-17 08:57:00 +01:00
Martin Dahl a3ee9be7da Merge pr#32 into master 2023-01-16 14:33:39 +01:00
Ricardo Delfin a2ccc774cd
Fix clippy warning in nodes.rs
Rust 1.66 (or rather, the clippy bundled with it) adds a new clippy check called `clippy::explicit-auto-deref`. This commit fixes an instance of it in nodes.rs
2023-01-13 16:36:12 +00:00
Martin Dahl e707ee86a1 Bump version numbers. 2022-12-30 20:09:35 +01:00
Ben Wolsieffer 06b587ddb2 Support building on 32-bit ARM 2022-12-06 23:37:44 -05:00
aeon 6644562704 Save generated bindings for ROS Galactic on Ubuntu 20.04 2022-11-25 06:01:01 +08:00
aeon 81896423bb [r2r] More advanced binding generation
- Add "save-bindgen" feature to store generated bindings in source directory.
- Add "doc-only" to disable bindgen and linking, and use saved bindings
  in source directory instead.
- Bindings are cached to speed on bindgen process.
2022-11-25 06:01:01 +08:00
aeon 8c42f906c7 [rcl_actions] More advanced binding generation
- Add "save-bindgen" feature to store generated bindings in source directory.
- Add "doc-only" to disable bindgen and linking, and use saved bindings
  in source directory.
- Generated bindings are cached to speed up bindgen process.
2022-11-25 06:01:01 +08:00
aeon f1112e4075 [r2r_msg_gen] More advanced message binding generation
- Add "save-bindgen" feature to store generated bindings in source directory.
- Add "doc-only" feature to disable bindgen and linking, and use saved
  bindings in source directory instead.
2022-11-25 06:00:58 +08:00
aeon 2286dbde57 [r2r_rcl] More advanced binding generation
- Add "save-bindgen" to save generated bindings file to source
  directory.
- Cache generated bindings file to speed up bindgen process.
- Add "docs-only" feature to disable linking and bindgen on docs.rs.
2022-11-25 05:52:52 +08:00
aeon 801d09d136 [r2r_common] Do not panic in get_wanted_messages() if AMENT_PREFIX_PATH is not set 2022-11-25 05:50:45 +08:00
aeon 55cce8caec [r2r_common] Move link search prints to print_cargo_link_search() 2022-11-25 03:31:09 +08:00
aeon c136d1400f [r2r_common] Add get_env_hash() to generate an env var dependent hash 2022-11-25 02:35:58 +08:00
aeon 6fbcfd1403 Add allowlisted types, vars and functions for bindgen 2022-11-25 00:55:05 +08:00
aeon 73f1d9e59d Move Dockerfiles back to original directory 2022-11-25 00:48:27 +08:00
aeon 6096deec5b Fix clippy warnings 2022-11-25 00:40:46 +08:00
aeon abdf2f5343 Reduce compile time on tokio 2022-11-25 00:21:41 +08:00
aeon 4fad8ef09b Update dependencies 2022-11-25 00:19:41 +08:00
aeon 67db235a42 Ignore editor temp files 2022-11-25 00:14:47 +08:00
aeon e39887b038 Create a proper Cargo worksace and move r2r source to r2r/ dir 2022-11-25 00:14:14 +08:00
aeon 1955bdda3b Mangle field names using bindgen's mangling function 2022-10-03 15:00:33 +08:00
Martin Dahl ebde7734bb Add cmake integration file to the repo for convenience. 2022-08-22 11:56:50 +02:00
Martin Dahl bacd94c6e9 Bump version numbers fix 2022-08-22 11:48:37 +02:00
Martin Dahl 9166d99050 Bump version numbers 2022-08-22 11:36:38 +02:00
Martin Dahl 6b07726573 Add environment flag for building only some messages. 2022-08-21 19:45:01 +02:00
Martin Dahl 474b9d9482 Remove dependency on retain_mut since its now in the std lib 2022-08-19 15:52:54 +02:00
Martin Dahl 7678acfb12 Handle path changes to support Humble release 2022-08-19 15:51:31 +02:00