We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d58229 commit 243d0fbCopy full SHA for 243d0fb
src/image_streamer.cpp
@@ -28,7 +28,9 @@ void ImageTransportImageStreamer::start()
28
ros::master::getTopics(available_topics);
29
inactive_ = true;
30
for (size_t it = 0; it<available_topics.size(); it++){
31
- if(available_topics[it].name == topic_){
+ std::string available_topic_name = available_topics[it].name;
32
+ if(available_topic_name == topic_ || (available_topic_name.find("/") == 0 &&
33
+ available_topic_name.substr(1) == topic_)) {
34
inactive_ = false;
35
}
36
0 commit comments