ServiceProvider.h
Go to the documentation of this file.
1 #include <ros/ros.h>
2 
3 #include <rsm_msgs/Waypoint.h>
4 #include <rsm_msgs/WaypointArray.h>
5 #include <rsm_msgs/AddWaypoint.h>
6 #include <rsm_msgs/GetWaypoints.h>
7 #include <rsm_msgs/MoveWaypoint.h>
8 #include <rsm_msgs/RemoveWaypoint.h>
9 #include <rsm_msgs/WaypointVisited.h>
10 #include <rsm_msgs/WaypointUnreachable.h>
11 #include <rsm_msgs/SetWaypointFollowingMode.h>
12 #include <rsm_msgs/SetWaypointRoutine.h>
13 #include <rsm_msgs/GetWaypointRoutines.h>
14 #include <std_srvs/Trigger.h>
15 
16 #include <geometry_msgs/Pose.h>
17 #include <geometry_msgs/PoseArray.h>
18 #include <rsm_msgs/SetNavigationGoal.h>
19 #include <rsm_msgs/GetNavigationGoal.h>
20 #include <rsm_msgs/GoalCompleted.h>
21 #include <rsm_msgs/GoalStatus.h>
22 
23 #include <rsm_msgs/GetRobotPose.h>
24 #include <tf/transform_listener.h>
25 
26 #include <std_srvs/SetBool.h>
27 #include <std_msgs/Bool.h>
28 
29 #include <geometry_msgs/PoseStamped.h>
30 
31 namespace rsm {
32 
40 
41 public:
53  void publishTopics();
54 
55 private:
68 
72 
75 
80 
85 
89  geometry_msgs::Pose _navigation_goal;
93  rsm_msgs::WaypointArray _waypoint_array;
101  std::string _routine;
110  std::vector<std::string> _waypoint_routines;
111 
116  ;
120  std::string _robot_frame;
132  rsm_msgs::GoalStatus _exploration_goal_completed_msg;
133 
134  bool addWaypoint(rsm_msgs::AddWaypoint::Request &req,
135  rsm_msgs::AddWaypoint::Response &res);
136  bool getWaypoints(rsm_msgs::GetWaypoints::Request &req,
137  rsm_msgs::GetWaypoints::Response &res);
138  bool moveWaypoint(rsm_msgs::MoveWaypoint::Request &req,
139  rsm_msgs::MoveWaypoint::Response &res);
140  bool removeWaypoint(rsm_msgs::RemoveWaypoint::Request &req,
141  rsm_msgs::RemoveWaypoint::Response &res);
142  bool waypointVisited(rsm_msgs::WaypointVisited::Request &req,
143  rsm_msgs::WaypointVisited::Response &res);
144  bool waypointUnreachable(rsm_msgs::WaypointUnreachable::Request &req,
145  rsm_msgs::WaypointUnreachable::Response &res);
146  bool resetWaypoints(std_srvs::Trigger::Request &req,
147  std_srvs::Trigger::Response &res);
149  rsm_msgs::SetWaypointFollowingMode::Request &req,
150  rsm_msgs::SetWaypointFollowingMode::Response &res);
151  bool setWaypointRoutine(rsm_msgs::SetWaypointRoutine::Request &req,
152  rsm_msgs::SetWaypointRoutine::Response &res);
153  bool getWaypointRoutines(rsm_msgs::GetWaypointRoutines::Request &req,
154  rsm_msgs::GetWaypointRoutines::Response &res);
155  void publishWaypoints();
156 
157  bool setNavigationGoal(rsm_msgs::SetNavigationGoal::Request &req,
158  rsm_msgs::SetNavigationGoal::Response &res);
159  bool getNavigationGoal(rsm_msgs::GetNavigationGoal::Request &req,
160  rsm_msgs::GetNavigationGoal::Response &res);
161  bool NavigationGoalCompleted(rsm_msgs::GoalCompleted::Request &req,
162  rsm_msgs::GoalCompleted::Response &res);
163 
164  bool getRobotPose(rsm_msgs::GetRobotPose::Request &req,
165  rsm_msgs::GetRobotPose::Response &res);
166 
167  bool getExplorationMode(std_srvs::Trigger::Request &req,
168  std_srvs::Trigger::Response &res);
169  bool setExplorationMode(std_srvs::SetBool::Request &req,
170  std_srvs::SetBool::Response &res);
171 
172  void publishGoalObsolete();
174 
175  bool setReverseMode(std_srvs::SetBool::Request &req,
176  std_srvs::SetBool::Response &res);
177  bool getReverseMode(std_srvs::Trigger::Request &req,
178  std_srvs::Trigger::Response &res);
179  void publishReverseMode();
181 };
182 
183 }
ros::ServiceServer _waypoint_unreachable_service
ros::ServiceServer _get_reverse_mode_service
bool setWaypointRoutine(rsm_msgs::SetWaypointRoutine::Request &req, rsm_msgs::SetWaypointRoutine::Response &res)
std::vector< std::string > _waypoint_routines
ros::ServiceServer _set_exploration_mode_service
bool resetWaypoints(std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
tf::TransformListener _transform_listener
ros::ServiceServer _get_robot_pose_service
ros::ServiceServer _get_navigation_goal_service
bool NavigationGoalCompleted(rsm_msgs::GoalCompleted::Request &req, rsm_msgs::GoalCompleted::Response &res)
bool getExplorationMode(std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
geometry_msgs::Pose _navigation_goal
tf::StampedTransform _transform
ROS transform from map to robot frame.
bool moveWaypoint(rsm_msgs::MoveWaypoint::Request &req, rsm_msgs::MoveWaypoint::Response &res)
ros::ServiceClient _set_navigation_to_reverse_client
bool getWaypointRoutines(rsm_msgs::GetWaypointRoutines::Request &req, rsm_msgs::GetWaypointRoutines::Response &res)
bool getReverseMode(std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &res)
ros::ServiceServer _set_navigation_goal_service
ros::ServiceServer _navigation_goal_completed_service
bool addWaypoint(rsm_msgs::AddWaypoint::Request &req, rsm_msgs::AddWaypoint::Response &res)
ros::Publisher _exploration_goal_publisher
ros::ServiceServer _get_exploration_mode_service
ros::ServiceServer _get_waypoints_service
bool getNavigationGoal(rsm_msgs::GetNavigationGoal::Request &req, rsm_msgs::GetNavigationGoal::Response &res)
bool getRobotPose(rsm_msgs::GetRobotPose::Request &req, rsm_msgs::GetRobotPose::Response &res)
ros::ServiceServer _set_waypoint_following_mode_service
ros::Publisher _reverse_mode_publisher
ros::Publisher _exploration_mode_publisher
Definition: BaseState.h:8
ros::ServiceServer _set_waypoint_routine_service
ros::ServiceServer _get_waypoint_routines_service
bool setNavigationGoal(rsm_msgs::SetNavigationGoal::Request &req, rsm_msgs::SetNavigationGoal::Response &res)
bool getWaypoints(rsm_msgs::GetWaypoints::Request &req, rsm_msgs::GetWaypoints::Response &res)
ros::ServiceServer _reset_waypoints_service
std::string _robot_frame
Robot frame id.
Establishes communication between the different states and the RSM&#39;s periphery including the GUI...
rsm_msgs::WaypointArray _waypoint_array
bool setWaypointFollowingMode(rsm_msgs::SetWaypointFollowingMode::Request &req, rsm_msgs::SetWaypointFollowingMode::Response &res)
bool setExplorationMode(std_srvs::SetBool::Request &req, std_srvs::SetBool::Response &res)
ros::ServiceServer _waypoint_visited_service
bool setReverseMode(std_srvs::SetBool::Request &req, std_srvs::SetBool::Response &res)
ros::ServiceServer _remove_waypoint_service
ros::NodeHandle _nh
ros::ServiceServer _add_waypoint_service
bool removeWaypoint(rsm_msgs::RemoveWaypoint::Request &req, rsm_msgs::RemoveWaypoint::Response &res)
ros::ServiceServer _move_waypoint_service
ros::Publisher _waypoints_publisher
ros::ServiceServer _set_reverse_mode_service
rsm_msgs::GoalStatus _exploration_goal_completed_msg
bool waypointUnreachable(rsm_msgs::WaypointUnreachable::Request &req, rsm_msgs::WaypointUnreachable::Response &res)
bool waypointVisited(rsm_msgs::WaypointVisited::Request &req, rsm_msgs::WaypointVisited::Response &res)


rsm_core
Author(s): Marco Steinbrink
autogenerated on Tue Mar 16 2021 02:44:31