EasyNav Plugins
Loading...
Searching...
No Matches
CostmapFilter.hpp
Go to the documentation of this file.
1// Copyright 2025 Intelligent Robotics Lab
2//
3// This file is part of the project Easy Navigation (EasyNav in short)
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16
17#ifndef EASYNAV_PLANNER__FILTERS__COSTMAPFILTER_HPP_
18#define EASYNAV_PLANNER__FILTERS__COSTMAPFILTER_HPP_
19
20#include <string>
21
22#include "easynav_common/types/NavState.hpp"
23
24#include "rclcpp_lifecycle/lifecycle_node.hpp"
25
26namespace easynav
27{
28
30{
32};
33
34
36{
37public:
39
40 void
42 const std::shared_ptr<rclcpp_lifecycle::LifecycleNode> parent_node,
43 const std::string & plugin_name);
44
45 virtual void on_initialize() = 0;
46 virtual void update(NavState & nav_state) = 0;
47
48 const std::string & get_plugin_name() const;
49
50protected:
51 std::shared_ptr<rclcpp_lifecycle::LifecycleNode> get_node() const;
52
53protected:
54 std::shared_ptr<rclcpp_lifecycle::LifecycleNode> parent_node_ {nullptr};
55 std::string plugin_name_;
56};
57} // namespace easynav
58
59#endif // EASYNAV_PLANNER__FILTERS__COSTMAPFILTER_HPP_
std::string plugin_name_
Definition CostmapFilter.hpp:55
void initialize(const std::shared_ptr< rclcpp_lifecycle::LifecycleNode > parent_node, const std::string &plugin_name)
Definition CostmapFilter.cpp:30
std::shared_ptr< rclcpp_lifecycle::LifecycleNode > parent_node_
Definition CostmapFilter.hpp:54
virtual void on_initialize()=0
CostmapFilter()
Definition CostmapFilter.cpp:24
const std::string & get_plugin_name() const
Definition CostmapFilter.cpp:47
std::shared_ptr< rclcpp_lifecycle::LifecycleNode > get_node() const
Definition CostmapFilter.cpp:41
virtual void update(NavState &nav_state)=0
Provides a mapping for often used cost values.
Definition cost_values.hpp:41
Definition CostmapFilter.hpp:30
double min_x
Definition CostmapFilter.hpp:31
double max_y
Definition CostmapFilter.hpp:31
double min_y
Definition CostmapFilter.hpp:31
double max_x
Definition CostmapFilter.hpp:31