![]() |
RCL - RoboCLuedo
v1.0
Francesco Ganci - S4143910 - Experimental Robotics Lab - Assignment 1
|
A preliminary test on aRMOR service. More...
#include "ros/ros.h"#include "armor_tools/armor_tools.h"#include "armor_msgs/ArmorDirective.h"#include "armor_msgs/ArmorDirectiveList.h"#include "armor_msgs/ArmorDirectiveReq.h"#include "armor_msgs/ArmorDirectiveRes.h"#include "armor_msgs/QueryItem.h"#include <iostream>#include <fstream>#include <string>#include <vector>
Include dependency graph for test_armor.cpp:Go to the source code of this file.
Macros | |
| #define | ONTOLOGY_PARAM "cluedo_path_owlfile" |
| #define | SERVICE_ARMOR_SINGLE_REQUEST "/armor_interface_srv" |
| #define | SERVICE_ARMOR_MULTIPLE_REQUESTS "/armor_interface_serialized_srv" |
| #define | ARMOR_CLIENT_NAME "robocluedo" |
| #define | ARMOR_REFERENCE_NAME "cluedo_ontology" |
| #define | ARMOR_CMD_LOAD "LOAD" |
| #define | ARMOR_TIMEOUT 5.00 |
| #define | OUTLABEL "[test_armor] " |
| #define | OUTLOG std::cout << OUTLABEL << " " |
| #define | OUTERR OUTLOG << "ERROR: " |
| #define | LOGSQUARE(str) "[" << str << "] " |
| #define | SS(this_string) std::string( this_string ) |
| #define | SSS(this_thing) std::to_string( this_thing ) |
Functions | |
| bool | fileExist (std::string path) |
| std::vector< std::string > | armorGetArgs (std::string arg1, std::string arg2="", std::string arg3="", std::string arg4="", std::string arg5="") |
| armor_msgs::ArmorDirective | armorGetRequest (std::string client, std::string reference, std::string command, std::string first_spec="", std::string second_spec="", std::vector< std::string > args=std::vector< std::string >(5, "")) |
| void | armorPrintRequest (armor_msgs::ArmorDirective &d) |
| void | armorPrintResponse (armor_msgs::ArmorDirective &d) |
| bool | armorCallService (ros::ServiceClient &armorClient, armor_msgs::ArmorDirective &armorsrvdata) |
| void | armorTestSession (ros::ServiceClient &cl, std::string path) |
| int | main (int argc, char *argv[]) |
A preliminary test on aRMOR service.
Sometimes it is convenient to directly test the interface without using classes such as ArmorTools or ArmorCluedo. This file contains a small test session on aRMOR with some minimal functions.
Definition in file test_armor.cpp.