Skip to content

Commit

Permalink
can't get this conversion to work because of conflict between ros mes…
Browse files Browse the repository at this point in the history
…sage generated in the library and ros message generated locally
  • Loading branch information
lucasw committed Jul 31, 2024
1 parent f030fd9 commit 2389f22
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/bin/transform_point_cloud2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ use std::collections::HashMap;
use tf_roslibrust::{
// TfError,
TfListener,
tf_util,
// tf_util,
// transforms::isometry_from_transform,
};
use tokio::time::Duration;

// this is already done in ros_pointcloud2, but that was fine in the case of tf_roslibrust and
// tf_demo- is there something in the structure of ros_pointcloud2 that breaks this?
roslibrust_codegen_macro::find_and_generate_ros_messages!();

#[tokio::main]
Expand Down Expand Up @@ -118,7 +120,8 @@ async fn main() -> Result<(), anyhow::Error> {
// ros_pointcloud2 not the same as the one generated here? Or they can't
// be generated twice like that?
// the error mentions ros_pointcloud2::prelude::sensor_msgs;
// let pc: ros_pointcloud2::PointCloud2Msg = pc2_msg.try_into().unwrap();
// let pc2_msg1: ros_pointcloud2::prelude::sensor_msgs::PointCloud2 = pc2_msg;
let pc: ros_pointcloud2::PointCloud2Msg = pc2_msg.into(); // .try_into_iter().unwrap();
// println!("{pc:?}");
},
Some(Err(error)) => {
Expand Down

0 comments on commit 2389f22

Please sign in to comment.