SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
nav2z_client
nav2z_client
include
nav2z_client
client_behaviors
cb_navigate_backwards.hpp
Go to the documentation of this file.
1
// Copyright 2021 RobosoftAI Inc.
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
15
/*****************************************************************************************************************
16
*
17
* Authors: Pablo Inigo Blasco, Brett Aldrich
18
*
19
******************************************************************************************************************/
20
#pragma once
21
22
#include <
nav2z_client/components/odom_tracker/odom_tracker.hpp
>
23
24
#include <optional>
25
26
#include <
nav2z_client/components/waypoints_navigator/waypoints_navigator.hpp
>
27
#include "
cb_nav2z_client_behavior_base.hpp
"
28
29
namespace
cl_nav2z
30
{
31
// It sends the mobile base some distance backwards
32
class
CbNavigateBackwards
:
public
CbNav2ZClientBehaviorBase
33
{
34
public
:
35
float
backwardDistance
;
36
37
// just a stub to show how to use parameterless constructor
38
std::optional<float>
backwardSpeed
;
39
40
std::optional<std::string>
goalChecker_
;
41
42
cl_nav2z::odom_tracker::OdomTracker
*
odomTracker_
;
43
44
CbNavigateBackwards
(
float
backwardDistanceMeters);
45
46
void
onEntry
()
override
;
47
48
void
onExit
()
override
;
49
};
50
}
// namespace cl_nav2z
cb_nav2z_client_behavior_base.hpp
cl_nav2z::CbNav2ZClientBehaviorBase
Definition:
cb_nav2z_client_behavior_base.hpp:29
cl_nav2z::CbNavigateBackwards
Definition:
cb_navigate_backwards.hpp:33
cl_nav2z::CbNavigateBackwards::backwardDistance
float backwardDistance
Definition:
cb_navigate_backwards.hpp:35
cl_nav2z::CbNavigateBackwards::odomTracker_
cl_nav2z::odom_tracker::OdomTracker * odomTracker_
Definition:
cb_navigate_backwards.hpp:42
cl_nav2z::CbNavigateBackwards::goalChecker_
std::optional< std::string > goalChecker_
Definition:
cb_navigate_backwards.hpp:40
cl_nav2z::CbNavigateBackwards::onEntry
void onEntry() override
Definition:
cb_navigate_backward.cpp:44
cl_nav2z::CbNavigateBackwards::backwardSpeed
std::optional< float > backwardSpeed
Definition:
cb_navigate_backwards.hpp:38
cl_nav2z::CbNavigateBackwards::onExit
void onExit() override
Definition:
cb_navigate_backward.cpp:92
cl_nav2z::odom_tracker::OdomTracker
Definition:
odom_tracker.hpp:54
cl_nav2z
Definition:
backward_global_planner.hpp:28
odom_tracker.hpp
waypoints_navigator.hpp
Generated by
1.9.5