Skip to content

Commit

Permalink
make tf_buffer more public
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Sep 16, 2024
1 parent 67272bd commit 28db1fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tf_roslibrust/src/tf_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct TfBuffer {
const DEFAULT_CACHE_DURATION_SECONDS: u16 = 10;

impl TfBuffer {
pub(crate) fn new() -> Self {
pub fn new() -> Self {
Self::new_with_duration(TimeDelta::new(DEFAULT_CACHE_DURATION_SECONDS.into(), 0).unwrap())
}

Expand All @@ -38,15 +38,15 @@ impl TfBuffer {
}
}

pub(crate) fn handle_incoming_transforms(&mut self, transforms: TFMessage, static_tf: bool) {
pub fn handle_incoming_transforms(&mut self, transforms: TFMessage, static_tf: bool) {
for transform in transforms.transforms {
self.add_transform(&transform, static_tf);
}
}

// don't detect loops here on the assumption that the transforms are arriving
// much faster than lookup are occuring, so only detect loops in a lookup
fn add_transform(&mut self, transform: &TransformStamped, is_static_tf: bool) {
pub fn add_transform(&mut self, transform: &TransformStamped, is_static_tf: bool) {
// TODO(lucasw) need to retire transforms from this index when they expire
self.parent_transform_index.insert(
transform.child_frame_id.clone(),
Expand Down

0 comments on commit 28db1fd

Please sign in to comment.