Skip to content

Commit

Permalink
fix msg not found
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed Apr 30, 2024
1 parent b155f41 commit 593688f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ros_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub struct PointFieldMsg {
}

#[cfg(feature = "r2r_msg")]
impl From<r2r::sensor_msgs::msg::PointCloud2> for PointCloud2Msg {
impl From<r2r::sensor_msgs::msg::PointCloud2> for crate::PointCloud2Msg {
fn from(msg: r2r::sensor_msgs::msg::PointCloud2) -> Self {
Self {
header: HeaderMsg {
Expand Down Expand Up @@ -57,8 +57,8 @@ impl From<r2r::sensor_msgs::msg::PointCloud2> for PointCloud2Msg {
}

#[cfg(feature = "r2r_msg")]
impl From<PointCloud2Msg> for r2r::sensor_msgs::msg::PointCloud2 {
fn from(msg: PointCloud2Msg) -> Self {
impl From<crate::PointCloud2Msg> 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 {
Expand Down Expand Up @@ -89,7 +89,7 @@ impl From<PointCloud2Msg> for r2r::sensor_msgs::msg::PointCloud2 {
}

#[cfg(feature = "rosrust_msg")]
impl From<rosrust_msg::sensor_msgs::PointCloud2> for PointCloud2Msg {
impl From<rosrust_msg::sensor_msgs::PointCloud2> for crate::PointCloud2Msg {
fn from(msg: rosrust_msg::sensor_msgs::PointCloud2) -> Self {
Self {
header: HeaderMsg {
Expand Down Expand Up @@ -122,8 +122,8 @@ impl From<rosrust_msg::sensor_msgs::PointCloud2> for PointCloud2Msg {
}

#[cfg(feature = "rosrust_msg")]
impl From<PointCloud2Msg> for rosrust_msg::sensor_msgs::PointCloud2 {
fn from(msg: PointCloud2Msg) -> Self {
impl From<crate::PointCloud2Msg> 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,
Expand Down

0 comments on commit 593688f

Please sign in to comment.