Skip to content

Commit

Permalink
Merge pull request #1168 from garaemon/verbose-connection-global-ns
Browse files Browse the repository at this point in the history
[jsk_topic_tools/ConnectionBasedNodelet] Read `verbose_connection` as well as `~verbose_connection`
  • Loading branch information
garaemon committed Oct 11, 2015
2 parents d61dffb + 5b7457f commit 856329e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace jsk_topic_tools
ConnectionStatus connection_status_;

/** @brief
* true if `~verbose_connection` parameter is true.
* true if `~verbose_connection` or `verbose_connection` parameter is true.
*/
bool verbose_connection_;
private:
Expand Down
3 changes: 3 additions & 0 deletions jsk_topic_tools/src/connection_based_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ namespace jsk_topic_tools
pnh_.reset (new ros::NodeHandle (getMTPrivateNodeHandle ()));
pnh_->param("always_subscribe", always_subscribe_, false);
pnh_->param("verbose_connection", verbose_connection_, false);
if (!verbose_connection_) {
nh_->param("verbose_connection", verbose_connection_, false);
}
// timer to warn when no connection in a few seconds
ever_subscribed_ = false;
timer_ = nh_->createWallTimer(
Expand Down

0 comments on commit 856329e

Please sign in to comment.