Skip to content

Mixed up implementations createStaticTfSubscription <-> createDynamicTfSubscription #1072

Closed

Description

@jeanchristopheruel

Function implementation is mixed up between line 97 and line 91 in CurrentStateMonitorMiddlewareHandle. Should be

void CurrentStateMonitorMiddlewareHandle::createDynamicTfSubscription(TfCallback callback)
{
  transform_subscriber_ =
      node_->create_subscription<tf2_msgs::msg::TFMessage>("/tf", tf2_ros::DynamicListenerQoS(), callback);
}

void CurrentStateMonitorMiddlewareHandle::createStaticTfSubscription(TfCallback callback)
{
  static_transform_subscriber_ =
      node_->create_subscription<tf2_msgs::msg::TFMessage>("/tf_static", tf2_ros::StaticListenerQoS(), callback);
}

Activity

  1. vatanaksoytezer commented on Feb 10, 2022

    @vatanaksoytezer
    Contributor

    Hey @ruelj2 thanks for reporting. That looks wrong, yeah. Do you mind opening up a PR, so we can just merge.

  2. jeanchristopheruel commented on Feb 21, 2022

    @jeanchristopheruel
    ContributorAuthor

    Closed since #1073 has been merged to main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions