SMACC2
Loading...
Searching...
No Matches
smacc2_client_library
cl_nav2z
cl_nav2z
src
cl_nav2z
client_behaviors
cb_navigate_next_waypoint_until_reached.cpp
Go to the documentation of this file.
1
// Copyright 2025 Robosoft 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
21
#include <
cl_nav2z/client_behaviors/cb_navigate_next_waypoint_until_reached.hpp
>
22
23
namespace
cl_nav2z
24
{
25
CbNavigateNextWaypointUntilReached::CbNavigateNextWaypointUntilReached
(
26
std::string goalWaypointName,
const
std::optional<NavigateNextWaypointOptions> & options)
27
:
CbNavigateNextWaypoint
(options), goalWaypointName_(goalWaypointName)
28
{
29
}
30
31
CbNavigateNextWaypointUntilReached::~CbNavigateNextWaypointUntilReached
() {}
32
33
void
CbNavigateNextWaypointUntilReached::onEntry
()
34
{
35
this->
requiresComponent
(
waypointsNavigator_
, ComponentRequirement::HARD);
36
sentWaypointName_
=
waypointsNavigator_
->
getCurrentWaypointName
();
37
CbNavigateNextWaypoint::onEntry
();
38
}
39
40
void
CbNavigateNextWaypointUntilReached::onExit
() {
CbNavigateNextWaypoint::onExit
(); }
41
42
}
// namespace cl_nav2z
cb_navigate_next_waypoint_until_reached.hpp
cl_nav2z::CbNavigateNextWaypointUntilReached::~CbNavigateNextWaypointUntilReached
~CbNavigateNextWaypointUntilReached() override
Definition
cb_navigate_next_waypoint_until_reached.cpp:31
cl_nav2z::CbNavigateNextWaypointUntilReached::CbNavigateNextWaypointUntilReached
CbNavigateNextWaypointUntilReached(std::string goalWaypointName, const std::optional< NavigateNextWaypointOptions > &options=std::nullopt)
Definition
cb_navigate_next_waypoint_until_reached.cpp:25
cl_nav2z::CbNavigateNextWaypointUntilReached::onEntry
void onEntry() override
Definition
cb_navigate_next_waypoint_until_reached.cpp:33
cl_nav2z::CbNavigateNextWaypointUntilReached::onExit
void onExit() override
Definition
cb_navigate_next_waypoint_until_reached.cpp:40
cl_nav2z::CbNavigateNextWaypointUntilReached::sentWaypointName_
std::optional< std::string > sentWaypointName_
Definition
cb_navigate_next_waypoint_until_reached.hpp:89
cl_nav2z::CbNavigateNextWaypoint
Definition
cb_navigate_next_waypoint.hpp:30
cl_nav2z::CbNavigateNextWaypoint::onExit
void onExit() override
Definition
cb_navigate_next_waypoint.cpp:66
cl_nav2z::CbNavigateNextWaypoint::waypointsNavigator_
CpWaypointNavigator * waypointsNavigator_
Definition
cb_navigate_next_waypoint.hpp:41
cl_nav2z::CbNavigateNextWaypoint::onEntry
void onEntry() override
Definition
cb_navigate_next_waypoint.cpp:35
cl_nav2z::CpWaypointNavigatorBase::getCurrentWaypointName
std::optional< std::string > getCurrentWaypointName() const
Definition
cp_waypoints_navigator.cpp:423
smacc2::ISmaccClientBehavior::requiresComponent
void requiresComponent(SmaccComponentType *&storage, ComponentRequirement requirementType=ComponentRequirement::SOFT)
Definition
smacc_client_behavior_impl.hpp:80
cl_nav2z
Definition
cl_nav2z.hpp:24
Generated by
1.12.0