48 ros::param::param<bool>(
"~use_multithread_callback", use_multithread,
true);
49 if (use_multithread) {
62 #ifdef topic_tools_relay_stealth_EXISTS 63 NODELET_WARN(
"This nodelet is deprecated. Use `topic_tools/Relay` with `stealth_mode`");
70 srv_ = boost::make_shared<dynamic_reconfigure::Server<Config> >(*pnh_);
71 dynamic_reconfigure::Server<Config>::CallbackType
f =
102 boost::mutex::scoped_lock lock(
mutex_);
104 bool need_resubscribe = (config.queue_size !=
queue_size_);
107 if (config.monitor_topic.empty()) {
108 config.monitor_topic =
pnh_->resolveName(
"input");
141 boost::mutex::scoped_lock lock(
mutex_);
146 pub_ = msg->advertise(*
pnh_,
"output", 1);
157 boost::mutex::scoped_lock lock(
mutex_);
180 for (
size_t i = 0; i < sub_info.
size(); ++i)
182 std::string topic_name = sub_info[i][0];
183 if (topic_name == name)
187 for (
size_t j = 0; j < subscribers.
size(); ++j)
189 std::string subscriber = subscribers[j];
#define NODELET_WARN(...)
void publish(const boost::shared_ptr< M > &message) const
void setPeriod(const Duration &period, bool reset=true)
PLUGINLIB_EXPORT_CLASS(jsk_topic_tools::Snapshot, nodelet::Nodelet)
ros::NodeHandle & getMTNodeHandle() const
ROSCPP_DECL const std::string & getName()
ros::NodeHandle & getPrivateNodeHandle() const
ros::NodeHandle & getMTPrivateNodeHandle() const
jsk_topic_tools::StealthRelay StealthRelay
ROSCPP_DECL bool execute(const std::string &method, const XmlRpc::XmlRpcValue &request, XmlRpc::XmlRpcValue &response, XmlRpc::XmlRpcValue &payload, bool wait_for_master)
ros::NodeHandle & getNodeHandle() const
uint32_t getNumSubscribers() const
#define NODELET_DEBUG(...)