SMACC
Loading...
Searching...
No Matches
cb_navigate_global_position.h
Go to the documentation of this file.
1/*****************************************************************************************************************
2 * ReelRobotix Inc. - Software License Agreement Copyright (c) 2018
3 * Authors: Pablo Inigo Blasco, Brett Aldrich
4 *
5 ******************************************************************************************************************/
6#pragma once
7
9#include <boost/optional.hpp>
10#include <geometry_msgs/Point.h>
11
12namespace cl_move_base_z
13{
15 {
16 public:
17 boost::optional<geometry_msgs::Point> goalPosition;
18 boost::optional<float> goalYaw;
19
20 //boost::optional<float> goalToleranceXY; // not implemented yet
21 //boost::optional<float> yawTolerance; // not implemented yet
22
24
25 CbNavigateGlobalPosition(float x, float y, float yaw /*radians*/);
26
27 void setGoal(const geometry_msgs::Pose &pose);
28
29 virtual void onEntry();
30
31 // auxiliary function that defines the motion that is requested to the move_base action server
32 void execute();
33
34 void readStartPoseFromParameterServer(ClMoveBaseZ::Goal &goal);
35
36 // This is the substate destructor. This code will be executed when the
37 // workflow exits from this substate (that is according to statechart the moment when this object is destroyed)
38 virtual void onExit() override;
39 };
40} // namespace cl_move_base_z
void setGoal(const geometry_msgs::Pose &pose)
boost::optional< geometry_msgs::Point > goalPosition
void readStartPoseFromParameterServer(ClMoveBaseZ::Goal &goal)