Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqtt subscribing to private path had a small bug #27

Merged
merged 2 commits into from
Jun 21, 2020
Merged

mqtt subscribing to private path had a small bug #27

merged 2 commits into from
Jun 21, 2020

Conversation

kapilPython
Copy link
Contributor

The Topic to which the mqtt is subscribing in MqttToRosBridge is wrong with respect to the condition of private path. It should use the member variable _topic_from because that has the private path extracted topic name.

@Minipada
Copy link

Can this be reviewed? It resolves #19

@@ -56,6 +56,7 @@ def default_mqtt_client_factory(params):
def create_private_path_extractor(mqtt_private_path):
def extractor(topic_path):
if topic_path.startswith('~/'):
rospy.logdebug('{}/{}'.format(mqtt_private_path, topic_path[2:]))
Copy link
Contributor

Choose a reason for hiding this comment

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

@kapilPython kapilPythonCould you remove this line?

@yuma-m
Copy link
Contributor

yuma-m commented Jun 20, 2020

Hi @kapilPython,

Thank you for your contribution. Your changes look good, could you kindly confirm the comment I added?

rospy.logdebug command could be removed this was just added to debug the changes.

Co-authored-by: Yuma Mihira <yuma-m@users.noreply.github.com>
@yuma-m yuma-m linked an issue Jun 21, 2020 that may be closed by this pull request
@yuma-m yuma-m merged commit 1de29e5 into groove-x:master Jun 21, 2020
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.

Error in: src/mqtt_bridge
3 participants