Easy Navigation
Toggle main menu visibility
Loading...
Searching...
No Matches
easynav_controller
include
easynav_controller
DummyController.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
17
18
#ifndef EASYNAV_CONTROLLER__DUMMYCONTROLLER_HPP_
19
#define EASYNAV_CONTROLLER__DUMMYCONTROLLER_HPP_
20
21
#include "geometry_msgs/msg/twist_stamped.hpp"
22
23
#include "easynav_core/ControllerMethodBase.hpp"
24
25
namespace
easynav
26
{
27
35
class
DummyController
:
public
easynav::ControllerMethodBase
36
{
37
public
:
38
DummyController
() =
default
;
39
~DummyController
() =
default
;
40
47
virtual
void
on_initialize
()
override
;
48
56
virtual
void
update_rt
(
NavState
& nav_state)
override
;
57
58
private
:
62
geometry_msgs::msg::TwistStamped cmd_vel_;
63
64
double
cycle_time_rt_ {0.0};
65
double
cycle_time_nort_ {0.0};
66
};
67
68
}
// namespace easynav
69
70
#endif
// EASYNAV_CONTROLLER__DUMMYCONTROLLER_HPP_
easynav::DummyController::update_rt
virtual void update_rt(NavState &nav_state) override
Run the control method and update the control command.
Definition
DummyController.cpp:34
easynav::DummyController::~DummyController
~DummyController()=default
easynav::DummyController::on_initialize
virtual void on_initialize() override
Initializes the control method plugin.
Definition
DummyController.cpp:25
easynav::DummyController::DummyController
DummyController()=default
easynav::NavState
A generic, type-safe, thread-safe blackboard to hold runtime state.
Definition
NavState.hpp:83
easynav
Definition
CircularBuffer.hpp:23
Generated by
1.17.0