How to unsubscribe from topics using Google Protobuf API
Looking at the API here,
There is only a call to subscribe, not unsubscribe. Is unsubscribe not supported?
Thanks,
Asked by wil on 2017-09-14 14:53:14 UTC
Answers
I believe the subscribe.proto
file you linked is only used internally by Gazebo. Maybe this is the API you're looking for:
http://gazebosim.org/api/dev/classgazebo_1_1transport_1_1Subscriber.html
Asked by chapulina on 2017-09-14 15:45:23 UTC
Comments
Hi, Thanks for the response. The Google Protobuff API is actually externally facing including subscribe. I am currently using it in a project via the pygazebo library https://github.com/jpieper/pygazebo
However this API does not seem to support unsubscribe
Asked by wil on 2017-09-19 08:08:21 UTC
You can send a msgs::Packet
to the gazebo master with type == "unsubscribe"
and serialized_data
set to a serialized subscribe.proto
message.
Here is a C++ example.
Asked by nkoenig on 2017-09-19 09:05:24 UTC
Comments
Awesome this is what I've been looking for, I'll give this a shot, thank you!
Asked by wil on 2017-09-19 09:47:04 UTC
Comments