diff --git a/Cargo.toml b/Cargo.toml index ddf0c34a..db538793 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ categories = ["science::robotics"] [workspace.dependencies] futures = "0.3" nalgebra = "0.30" -r2r = "0.8" +r2r = "0.9" rosrust = "0.9" thiserror = "1.0" tokio = "1" diff --git a/tf_r2r/src/tf_buffer.rs b/tf_r2r/src/tf_buffer.rs index e146fbf2..2609c683 100644 --- a/tf_r2r/src/tf_buffer.rs +++ b/tf_r2r/src/tf_buffer.rs @@ -156,7 +156,7 @@ impl TfBuffer { tf_list.push(x.transform); } } - first = intermediate.clone(); + first.clone_from(&intermediate); } let final_tf = chain_transforms(&tf_list); let msg = TransformStamped { diff --git a/tf_rosrust/src/tf_buffer.rs b/tf_rosrust/src/tf_buffer.rs index 88f6871e..90737c64 100644 --- a/tf_rosrust/src/tf_buffer.rs +++ b/tf_rosrust/src/tf_buffer.rs @@ -155,7 +155,7 @@ impl TfBuffer { tf_list.push(x.transform); } } - first = intermediate.clone(); + first.clone_from(&intermediate); } let final_tf = chain_transforms(&tf_list); let msg = TransformStamped {