Skip to content

Commit

Permalink
removed not used parameter client (#740)
Browse files Browse the repository at this point in the history
* removed not used parameter client

Signed-off-by: alberto <alberto.soragna@gmail.com>

* moved parameter include directives to time source cpp file

Signed-off-by: alberto <alberto.soragna@gmail.com>
  • Loading branch information
alsora authored and jacobperron committed May 28, 2019
1 parent 8553fbe commit 0723a0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions rclcpp/include/rclcpp/time_source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include "rcl_interfaces/msg/parameter_event.hpp"

#include "rclcpp/node.hpp"
#include "rclcpp/parameter_client.hpp"
#include "rclcpp/parameter_events_filter.hpp"


namespace rclcpp
Expand Down Expand Up @@ -100,9 +98,6 @@ class TimeSource
// Destroy the subscription for the clock topic
void destroy_clock_sub();

// Parameter Client pointer
std::shared_ptr<rclcpp::AsyncParametersClient> parameter_client_;

// Parameter Event subscription
using ParamMessageT = rcl_interfaces::msg::ParameterEvent;
using ParamSubscriptionT = rclcpp::Subscription<ParamMessageT, Alloc>;
Expand Down
4 changes: 3 additions & 1 deletion rclcpp/src/rclcpp/time_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "rclcpp/exceptions.hpp"
#include "rclcpp/logging.hpp"
#include "rclcpp/node.hpp"
#include "rclcpp/parameter_client.hpp"
#include "rclcpp/parameter_events_filter.hpp"
#include "rclcpp/time.hpp"
#include "rclcpp/time_source.hpp"

Expand Down Expand Up @@ -112,7 +114,7 @@ void TimeSource::detachNode()
{
this->ros_time_active_ = false;
clock_subscription_.reset();
parameter_client_.reset();
parameter_subscription_.reset();
node_base_.reset();
node_topics_.reset();
node_graph_.reset();
Expand Down

0 comments on commit 0723a0a

Please sign in to comment.