SMACC
Loading...
Searching...
No Matches
smacc_client_library
move_base_z_client
move_base_z_client_plugin
src
client_behaviors
cb_navigate_next_waypoint.cpp
Go to the documentation of this file.
1
#include <
move_base_z_client_plugin/client_behaviors/cb_navigate_next_waypoint.h
>
2
#include <
move_base_z_client_plugin/components/waypoints_navigator/waypoints_navigator.h
>
3
4
namespace
cl_move_base_z
5
{
6
CbNavigateNextWaypoint::CbNavigateNextWaypoint
()
7
{
8
}
9
10
CbNavigateNextWaypoint::~CbNavigateNextWaypoint
()
11
{
12
}
13
14
void
CbNavigateNextWaypoint::onEntry
()
15
{
16
auto
waypointsNavigator =
moveBaseClient_
->
getComponent
<
WaypointNavigator
>();
17
waypointsNavigator->
sendNextGoal
();
18
ROS_INFO(
"[CbNavigateNextWaypoint] current iteration waypoints x: %ld"
,
19
waypointsNavigator->getCurrentWaypointIndex());
20
}
21
22
void
CbNavigateNextWaypoint::onExit
()
23
{
24
}
25
26
}
// namespace cl_move_base_z
cb_navigate_next_waypoint.h
cl_move_base_z::CbMoveBaseClientBehaviorBase::moveBaseClient_
ClMoveBaseZ * moveBaseClient_
Definition:
cb_move_base_client_behavior_base.h:33
cl_move_base_z::CbNavigateNextWaypoint::onEntry
virtual void onEntry() override
Definition:
cb_navigate_next_waypoint.cpp:14
cl_move_base_z::CbNavigateNextWaypoint::onExit
virtual void onExit() override
Definition:
cb_navigate_next_waypoint.cpp:22
cl_move_base_z::CbNavigateNextWaypoint::~CbNavigateNextWaypoint
virtual ~CbNavigateNextWaypoint()
Definition:
cb_navigate_next_waypoint.cpp:10
cl_move_base_z::CbNavigateNextWaypoint::CbNavigateNextWaypoint
CbNavigateNextWaypoint()
Definition:
cb_navigate_next_waypoint.cpp:6
cl_move_base_z::WaypointNavigator
Definition:
waypoints_navigator.h:33
cl_move_base_z::WaypointNavigator::sendNextGoal
void sendNextGoal()
Definition:
waypoints_navigator.cpp:32
smacc::ISmaccClient::getComponent
TComponent * getComponent()
Definition:
smacc_client_impl.h:27
cl_move_base_z
Definition:
backward_global_planner.h:14
waypoints_navigator.h
Generated by
1.9.5