Skip to content

Instantly share code, notes, and snippets.

@wjwwood wjwwood/builtin-topics.diff Secret
Created May 20, 2016

Embed
What would you like to do?
--- /private/tmp/testing/builtin_topics/c++/msg_publisher.cxx
+++ (clipboard)
@@ -367,7 +367,7 @@
/* Get builtin subscriber's datareader for subscribers */
DDSSubscriptionBuiltinTopicDataDataReader *builtin_subscription_datareader =
(DDSSubscriptionBuiltinTopicDataDataReader*)
- builtin_subscriber->lookup_datareader(DDS_PUBLICATION_TOPIC_NAME);
+ builtin_subscriber->lookup_datareader(DDS_SUBSCRIPTION_TOPIC_NAME);
if (builtin_subscription_datareader == NULL) {
printf("***Error: failed to create builtin subscription data reader\n");
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.