Skip to content

Commit

Permalink
have single source for ros message generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Sep 16, 2024
1 parent 28db1fd commit 8ce20c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tf_roslibrust/src/bin/publisher.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use tf_roslibrust::tf_util;
use tf_roslibrust::tf_util::tf2_msgs;
use tf_roslibrust::transforms::tf2_msgs;

/// Load a toml file of a list of transforms and publish them
/// tf_publisher examples/transforms.toml
Expand Down
5 changes: 2 additions & 3 deletions tf_roslibrust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ mod tf_buffer;
mod tf_error;
mod tf_graph_node;
mod tf_individual_transform_chain;
pub mod transforms;
pub use transforms::geometry_msgs::TransformStamped;
mod tf_listener;
pub mod tf_util;
pub mod transforms;
pub use tf_broadcaster::TfBroadcaster;
pub use tf_buffer::TfBuffer;
pub use tf_error::TfError;
pub use tf_listener::TfListener;
pub mod tf_util;
2 changes: 1 addition & 1 deletion tf_roslibrust/src/tf_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use serde_derive::Deserialize;
use std::collections::HashMap;
use std::time::SystemTime;

roslibrust_codegen_macro::find_and_generate_ros_messages!();
use crate::transforms::{geometry_msgs, tf2_msgs};

pub fn to_stamp(secs: u32, nsecs: u32) -> Time {
roslibrust_codegen::Time { secs, nsecs }
Expand Down

0 comments on commit 8ce20c7

Please sign in to comment.