Commit 601d5433 authored by xiaoqiang_user's avatar xiaoqiang_user

fix remap not work bug

parent 0510bbc9
......@@ -24,14 +24,14 @@ ImageTransportImageStreamer::ImageTransportImageStreamer(const async_web_server_
void ImageTransportImageStreamer::start()
{
image_transport::TransportHints hints(default_transport_);
ros::master::V_TopicInfo available_topics;
ros::master::getTopics(available_topics);
inactive_ = true;
for (size_t it = 0; it<available_topics.size(); it++){
if(available_topics[it].name == topic_){
inactive_ = false;
}
}
// ros::master::V_TopicInfo available_topics;
// ros::master::getTopics(available_topics);
// inactive_ = true;
// for (size_t it = 0; it<available_topics.size(); it++){
// if(available_topics[it].name == topic_){
// inactive_ = false;
// }
// }
image_sub_ = it_.subscribe(topic_, 1, &ImageTransportImageStreamer::imageCallback, this, hints);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment