Skip to content

Commit

Permalink
Release 0.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dahl committed Mar 19, 2024
1 parent 2052ee2 commit 03c873c
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 25 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions r2r/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Easy to use, runtime-agnostic, async rust bindings for ROS2."
license = "MIT AND Apache-2.0"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions r2r/src/subscribers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions r2r_actions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r_actions"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion r2r_cargo.cmake
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
2 changes: 1 addition & 1 deletion r2r_common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r_common"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Minimal ros2 bindings."
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion r2r_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r_macros"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Minimal ros2 bindings."
license = "MIT"
Expand Down
10 changes: 5 additions & 5 deletions r2r_msg_gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r_msg_gen"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions r2r_rcl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "r2r_rcl"
version = "0.8.3"
version = "0.8.4"
authors = ["Martin Dahl <[email protected]>"]
description = "Internal dependency to the r2r crate."
license = "MIT"
Expand All @@ -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 = []
Expand Down

0 comments on commit 03c873c

Please sign in to comment.