Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.
This repository was archived by the owner on May 31, 2025. It is now read-only.

topic_tools transform publisher subscriber order #1273

@borgcons

Description

@borgcons

I believe that the script should call publisher before subscriber. I have has a situation in my launch file where the subscriber callback is call before the publisher is created and when the callback calls publish I get an error.

    self.pub = rospy.Publisher(args.output_topic, self.output_class, queue_size=1)
    self.sub = rospy.Subscriber(input_topic, input_class, self.callback)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions