Main Page
Namespaces
Classes
Files
File List
File Members
include
choreo_execution_gatekeeper
choreo_execution_gatekeeper_service.h
Go to the documentation of this file.
1
//
2
// Created by yijiangh on 7/10/17.
3
//
4
5
#ifndef FRAMEFAB_SIMULATION_GATEKEEPER_H
6
#define FRAMEFAB_SIMULATION_GATEKEEPER_H
7
8
#include <
ros/ros.h
>
9
#include <choreo_msgs/ProcessExecutionAction.h>
10
#include <
actionlib/server/simple_action_server.h
>
11
12
namespace
choreo_execution_gatekeeper
13
{
14
15
// this class is the action server for the ProcessExecutionAction call from core service node
16
// It acts like a gatekeeper, directing the trajectory to different execution instances
17
// for now, it only supports directing trajectory to simulator (choreo_simulation_execution).
18
class
ExecutionGatekeeper
19
{
20
public
:
21
ExecutionGatekeeper
(
ros::NodeHandle
& nh);
22
23
void
executionCallback
(
const
choreo_msgs::ProcessExecutionGoalConstPtr &goal);
24
bool
simulateProcess
(
const
choreo_msgs::ProcessExecutionGoalConstPtr &goal);
25
26
// TODO: execution port to be implemented in the future
27
// bool executeProcess(const choreo_msgs::ProcessExecutionGoalConstPtr &goal);
28
29
private
:
30
ros::NodeHandle
nh_
;
31
// ros::ServiceClient real_client_;
32
ros::ServiceClient
sim_client_
;
33
actionlib::SimpleActionServer<choreo_msgs::ProcessExecutionAction>
process_exe_action_server_
;
34
};
35
}
36
37
#endif //FRAMEFAB_SIMULATION_GATEKEEPER_H
choreo_execution_gatekeeper::ExecutionGatekeeper::ExecutionGatekeeper
ExecutionGatekeeper(ros::NodeHandle &nh)
Definition:
choreo_execution_gatekeeper_service.cpp:17
ros::NodeHandle
choreo_execution_gatekeeper::ExecutionGatekeeper::simulateProcess
bool simulateProcess(const choreo_msgs::ProcessExecutionGoalConstPtr &goal)
Definition:
choreo_execution_gatekeeper_service.cpp:43
choreo_execution_gatekeeper::ExecutionGatekeeper::process_exe_action_server_
actionlib::SimpleActionServer< choreo_msgs::ProcessExecutionAction > process_exe_action_server_
Definition:
choreo_execution_gatekeeper_service.h:33
choreo_execution_gatekeeper::ExecutionGatekeeper
Definition:
choreo_execution_gatekeeper_service.h:18
choreo_execution_gatekeeper::ExecutionGatekeeper::executionCallback
void executionCallback(const choreo_msgs::ProcessExecutionGoalConstPtr &goal)
Definition:
choreo_execution_gatekeeper_service.cpp:31
choreo_execution_gatekeeper::ExecutionGatekeeper::nh_
ros::NodeHandle nh_
Definition:
choreo_execution_gatekeeper_service.h:30
choreo_execution_gatekeeper::ExecutionGatekeeper::sim_client_
ros::ServiceClient sim_client_
Definition:
choreo_execution_gatekeeper_service.h:32
choreo_execution_gatekeeper
Definition:
choreo_execution_gatekeeper_service.h:12
ros.h
ros::ServiceClient
simple_action_server.h
actionlib::SimpleActionServer< choreo_msgs::ProcessExecutionAction >
choreo_execution_gatekeeper
Author(s):
autogenerated on Thu Jul 18 2019 03:59:24