Skip to content

Commit

Permalink
move update() and update_timer_ to private scope
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Jul 13, 2024
1 parent 38c937a commit 951ea6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/planning/dwa_planner/include/dwa_planner/dwa_planner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,9 @@ class DWAPlanner : public rclcpp::Node

public:
explicit DWAPlanner(const rclcpp::NodeOptions & options);
void update();

rclcpp::TimerBase::SharedPtr update_timer_;

private:
void update();
bool subscribe_and_validate();
bool try_subscribe_map();
bool try_subscribe_odom();
Expand All @@ -81,6 +79,8 @@ class DWAPlanner : public rclcpp::Node
return a + t * (b - a);
}

rclcpp::TimerBase::SharedPtr update_timer_;

OccupancyGridSubscription::SharedPtr map_sub_;
OdometrySubscription::SharedPtr odom_sub_;
PoseStampedSubscription::SharedPtr goal_sub_;
Expand Down

0 comments on commit 951ea6b

Please sign in to comment.