#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/client/terminal_state.h>
#include <robot_task/RobotTask.h>
#include <robot_task/RobotTaskAction.h>
#include <boost/filesystem.hpp>
#include "ROSTask.h"
#include <fstream>
Go to the source code of this file.
Classes | |
struct | decision_making::RosDiagnostic::DiagnosticMessage |
class | decision_making::RosDiagnostic::DiagnosticTask |
class | decision_making::RosDiagnostic |
class | decision_making::RosNodeInformation |
Namespaces | |
namespace | decision_making |
Defines | |
#define | CHECK_FOR_TERMINATION |
#define | IMPL_ON_FUNCTION(NAME, TEXT) |
Typedefs | |
typedef actionlib::SimpleActionClient < RobotTaskAction > | decision_making::Client |
Functions | |
decision_making::TaskResult | decision_making::callTask (std::string task_address, const decision_making::CallContext &call_ctx, decision_making::EventQueue &events) |
void | ros_decision_making_init (int &argc, char **argv) |
Variables | |
const double | decision_making::WAIT_RESULT_DURATION = 1.0 |
const double | decision_making::WAIT_SERVER_DURATION = 1.0 |
#define CHECK_FOR_TERMINATION |
if( events.isTerminated() or not ros::ok() ){\ DMDEBUG( cout<<" TASK("<<task_address<<":TERMINATED) " ; )\ RosDiagnostic::get().publish(call_ctx.str(), "TASK", "stopped", str(TaskResult::TERMINATED()));\ return TaskResult::TERMINATED();\ }
Definition at line 35 of file ROSTask.cpp.
#define IMPL_ON_FUNCTION | ( | NAME, | |
TEXT | |||
) |
ON_FUNCTION(NAME){\ /*cout<<"[on_fsm_start]"<<call_ctx.str()<<endl;*/\ RosDiagnostic::get().publish(call_ctx.str(), type, #TEXT, str(result));\ }
Definition at line 198 of file ROSTask.cpp.
void ros_decision_making_init | ( | int & | argc, |
char ** | argv | ||
) |
Definition at line 392 of file ROSTask.cpp.