Release 0.8.4

This commit is contained in:
Martin Dahl 2024-03-19 13:30:06 +01:00
parent 2052ee2afd
commit 03c873c22d
9 changed files with 29 additions and 25 deletions

View File

@ -14,7 +14,7 @@ These bindings are being written organically when things are needed by me and ot
How to use
--------------------
1. Make sure you have libclang installed. (e.g. libclang-dev on ubuntu)
2. Depend on this package in Cargo.toml: `r2r = "0.8.3"`
2. Depend on this package in Cargo.toml: `r2r = "0.8.4"`
3. You need to source your ROS2 installation before building/running.
4. The bindings will rebuild automatically if/when you source your workspace(s).
5. If you make changes to existing message types, run `cargo clean -p r2r_msg_gen` to force recompilation of the rust message types on the next build.
@ -45,6 +45,9 @@ What works?
Changelog
--------------------
#### [Unreleased]
#### [0.8.4] - 2024-03-19
- Fix QoS for rolling <https://github.com/sequenceplanner/r2r/pull/87>
- Update for ros2 iron <https://github.com/sequenceplanner/r2r/pull/84>
#### [0.8.3] - 2024-01-14

View File

@ -1,6 +1,6 @@
[package]
name = "r2r"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Easy to use, runtime-agnostic, async rust bindings for ROS2."
license = "MIT AND Apache-2.0"
@ -18,11 +18,11 @@ serde = { version = "1.0.147", features = ["derive"] }
serde_json = "1.0.89"
thiserror = "1.0.37"
lazy_static = "1.4.0"
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_rcl = { path = "../r2r_rcl", version = "0.8.3" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.3" }
r2r_actions = { path = "../r2r_actions", version = "0.8.3" }
r2r_macros = { path = "../r2r_macros", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
r2r_rcl = { path = "../r2r_rcl", version = "0.8.4" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.4" }
r2r_actions = { path = "../r2r_actions", version = "0.8.4" }
r2r_macros = { path = "../r2r_macros", version = "0.8.4" }
uuid = { version = "1.2.2", features = ["serde", "v4"] }
futures = "0.3.25"
log = "0.4.18"
@ -37,8 +37,8 @@ cdr = "0.2.4"
criterion = "0.5.1"
[build-dependencies]
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.4" }
rayon = "1.7.0"
force-send-sync = "1.0.0"
quote = "1.0.28"

View File

@ -104,7 +104,6 @@ where
let handle_ptr = Box::into_raw(handle_box);
let ret =
rcl_return_loaned_message_from_subscription(handle_ptr, msg as *mut c_void);
drop(Box::from_raw(handle_ptr));
if ret != RCL_RET_OK as i32 {
let err_str = rcutils_get_error_string();
let err_str_ptr = &(err_str.str_) as *const std::os::raw::c_char;
@ -113,13 +112,15 @@ where
let topic_str = rcl_subscription_get_topic_name(handle_ptr);
let topic = CStr::from_ptr(topic_str);
panic!(
crate::log_error!(
"r2r",
"rcl_return_loaned_message_from_subscription() \
failed for subscription on topic {}: {}",
topic.to_str().expect("to_str() call failed"),
error_msg.to_str().expect("to_str() call failed")
);
}
// drop(Box::from_raw(handle_ptr));
});
WrappedNativeMsg::<T>::from_loaned(loaned_msg as *mut T::CStruct, deallocator)
} else {

View File

@ -1,6 +1,6 @@
[package]
name = "r2r_actions"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
@ -11,12 +11,12 @@ repository = "https://github.com/sequenceplanner/r2r"
documentation = "https://docs.rs/r2r/latest/r2r"
[dependencies]
r2r_rcl = { path = "../r2r_rcl", version = "0.8.3" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.3" }
r2r_rcl = { path = "../r2r_rcl", version = "0.8.4" }
r2r_msg_gen = { path = "../r2r_msg_gen", version = "0.8.4" }
[build-dependencies]
bindgen = "0.63.0"
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
[features]
save-bindgen = ["r2r_rcl/save-bindgen", "r2r_msg_gen/save-bindgen"]

View File

@ -1,5 +1,5 @@
#
# For r2r 0.8.3.
# For r2r 0.8.4.
#
# cmake code for simple colcon integration.
# See https://github.com/m-dahl/r2r_minimal_node/

View File

@ -1,6 +1,6 @@
[package]
name = "r2r_common"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Minimal ros2 bindings."
license = "MIT"

View File

@ -1,6 +1,6 @@
[package]
name = "r2r_macros"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Minimal ros2 bindings."
license = "MIT"

View File

@ -1,6 +1,6 @@
[package]
name = "r2r_msg_gen"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
@ -11,8 +11,8 @@ repository = "https://github.com/sequenceplanner/r2r"
documentation = "https://docs.rs/r2r/latest/r2r"
[dependencies]
r2r_rcl = { path = "../r2r_rcl", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_rcl = { path = "../r2r_rcl", version = "0.8.4" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
phf = { version = "0.11.1", features = ["macros"] }
quote = "1.0.28"
proc-macro2 = "1.0.60"
@ -22,8 +22,8 @@ rayon = "1.7.0"
[build-dependencies]
bindgen = "0.63.0"
r2r_rcl = { path = "../r2r_rcl", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_rcl = { path = "../r2r_rcl", version = "0.8.4" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
quote = "1.0.28"
syn = { version = "2.0.18", features = ["full"] }
rayon = "1.7.0"

View File

@ -1,6 +1,6 @@
[package]
name = "r2r_rcl"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <martin.dahl@gmail.com>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
@ -16,7 +16,7 @@ widestring = "1.0.2"
[build-dependencies]
bindgen = "0.63.0"
r2r_common = { path = "../r2r_common", version = "0.8.3" }
r2r_common = { path = "../r2r_common", version = "0.8.4" }
[features]
save-bindgen = []