From 593688f381b3dde2a43aa90d76466b2f8f9206de Mon Sep 17 00:00:00 2001 From: stelzo Date: Tue, 30 Apr 2024 18:12:16 +0200 Subject: [PATCH] fix msg not found --- src/ros_types.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ros_types.rs b/src/ros_types.rs index c124fb0..d2466bd 100644 --- a/src/ros_types.rs +++ b/src/ros_types.rs @@ -24,7 +24,7 @@ pub struct PointFieldMsg { } #[cfg(feature = "r2r_msg")] -impl From for PointCloud2Msg { +impl From for crate::PointCloud2Msg { fn from(msg: r2r::sensor_msgs::msg::PointCloud2) -> Self { Self { header: HeaderMsg { @@ -57,8 +57,8 @@ impl From for PointCloud2Msg { } #[cfg(feature = "r2r_msg")] -impl From for r2r::sensor_msgs::msg::PointCloud2 { - fn from(msg: PointCloud2Msg) -> Self { +impl From for r2r::sensor_msgs::msg::PointCloud2 { + fn from(msg: crate::PointCloud2Msg) -> Self { r2r::sensor_msgs::msg::PointCloud2 { header: r2r::std_msgs::msg::Header { stamp: r2r::builtin_interfaces::msg::Time { @@ -89,7 +89,7 @@ impl From for r2r::sensor_msgs::msg::PointCloud2 { } #[cfg(feature = "rosrust_msg")] -impl From for PointCloud2Msg { +impl From for crate::PointCloud2Msg { fn from(msg: rosrust_msg::sensor_msgs::PointCloud2) -> Self { Self { header: HeaderMsg { @@ -122,8 +122,8 @@ impl From for PointCloud2Msg { } #[cfg(feature = "rosrust_msg")] -impl From for rosrust_msg::sensor_msgs::PointCloud2 { - fn from(msg: PointCloud2Msg) -> Self { +impl From for rosrust_msg::sensor_msgs::PointCloud2 { + fn from(msg: crate::PointCloud2Msg) -> Self { rosrust_msg::sensor_msgs::PointCloud2 { header: rosrust_msg::std_msgs::Header { seq: msg.header.seq,