Classes | Namespaces | Defines | Typedefs | Functions | Variables
ROSTask.cpp File Reference
#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>
Include dependency graph for ROSTask.cpp:

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 Documentation

Value:
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 
)
Value:
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.


Function Documentation

void ros_decision_making_init ( int &  argc,
char **  argv 
)

Definition at line 392 of file ROSTask.cpp.



decision_making
Author(s):
autogenerated on Wed Aug 26 2015 11:16:53