Skip to content

Registering subscriptions for destruction - #20

Closed
brawner wants to merge 1 commit into
crystal-develfrom
destroy_subscribers
Closed

brawner wants to merge 1 commit into
crystal-develfrom
destroy_subscribers

Conversation

@brawner

@brawner brawner commented Dec 15, 2018

Copy link
Copy Markdown
Contributor

This updates rqt_plot to register its subscriptions for destruction with RclpySpinner.

Depends on PR ros-visualization/rqt#184

@mlautman mlautman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 after addressing comments

_redraw_interval = 40

def __init__(self, node, initial_topics=None, start_paused=False):
def __init__(self, node, spinner, initial_topics=None, start_paused=False):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to pass in the context so that future changes like this do not change api? I could be convinced either way.

Comment thread src/rqt_plot/plot.py
self._args = self._parse_args(context.argv())
self._widget = PlotWidget(
self._node, initial_topics=self._args.topics, start_paused=self._args.start_paused)
self._widget = PlotWidget(self._node, self._spinner, initial_topics=self._args.topics,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I'm partial towards putting args on a newline. It makes it easier to update the formatting if you change the method name.

@dirk-thomas

Copy link
Copy Markdown
Contributor

Obsolete, see ros-visualization/rqt#184 for details.

@dirk-thomas
dirk-thomas deleted the destroy_subscribers branch May 15, 2019 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants