Easy Navigation
Toggle main menu visibility
Loading...
Searching...
No Matches
easynav_localizer
include
easynav_localizer
DummyLocalizer.hpp
Go to the documentation of this file.
1
// Copyright 2025 Intelligent Robotics Lab
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
18
19
#ifndef EASYNAV_LOCALIZER__DUMMYLOCALIZER_HPP_
20
#define EASYNAV_LOCALIZER__DUMMYLOCALIZER_HPP_
21
22
#include <memory>
23
24
#include "nav_msgs/msg/odometry.hpp"
25
#include "easynav_core/LocalizerMethodBase.hpp"
26
#include "tf2_ros/transform_broadcaster.hpp"
27
28
namespace
easynav
29
{
30
38
class
DummyLocalizer
:
public
easynav::LocalizerMethodBase
39
{
40
public
:
42
DummyLocalizer
() =
default
;
43
45
~DummyLocalizer
() =
default
;
46
50
void
on_initialize
()
override
;
51
59
void
update_rt
(
NavState
& nav_state)
override
;
60
68
void
update
(
NavState
& nav_state)
override
;
69
70
private
:
71
std::unique_ptr<tf2_ros::TransformBroadcaster> tf_broadcaster_;
72
73
double
cycle_time_rt_ {0.0};
74
double
cycle_time_nort_ {0.0};
75
};
76
77
}
// namespace easynav
78
79
#endif
// EASYNAV_LOCALIZER__DUMMYLOCALIZER_HPP_
easynav::DummyLocalizer::update
void update(NavState &nav_state) override
Update the localization using the current navigation state.
Definition
DummyLocalizer.cpp:58
easynav::DummyLocalizer::DummyLocalizer
DummyLocalizer()=default
Default constructor.
easynav::DummyLocalizer::update_rt
void update_rt(NavState &nav_state) override
Update the localization using the current navigation state.
Definition
DummyLocalizer.cpp:39
easynav::DummyLocalizer::on_initialize
void on_initialize() override
Plugin-specific initialization logic.
Definition
DummyLocalizer.cpp:26
easynav::DummyLocalizer::~DummyLocalizer
~DummyLocalizer()=default
Default destructor.
easynav::NavState
A generic, type-safe, thread-safe blackboard to hold runtime state.
Definition
NavState.hpp:87
easynav
Definition
CircularBuffer.hpp:24
Generated by
1.18.0