Skip to content

Conversation

enrico391
Copy link
Collaborator

Added publisher for analyzed points

Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

A question for you

Comment on lines 120 to 123
# timer to update items in the menu for payload selection
self.timer_update_payload_selection = self.create_timer(0.5, self.update_payload_selection)
# timer to publish all analyzed points in the workspace area
self.timer_publish_analyzed_points = self.create_timer(2, self.publish_analyzed_points)
Copy link
Member

Choose a reason for hiding this comment

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

why are you publishing with a timer?
I didn't notice the previous one earlier

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

in this way I reduce the time comsuming in that function, or do you mean that it is possible to publish it once and then stop to publish it because it is the same for all time ?

Copy link
Member

Choose a reason for hiding this comment

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

Check "transient local” here Quality of Service settings — ROS 2 Documentation: Rolling documentation https://share.google/2BqvINadfaCiZ6Qrl

It is similar to the one you are using to subscribe to a robot_description

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok, so in that way I will publish once and it will not require multiple publishing

Copy link
Member

Choose a reason for hiding this comment

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

Correct

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.

2 participants