CODE REFERENCE – node test_armor
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.
- Authors
- Francesco Ganci (S4143910) 
- Version
- v1.0 
See also
test_armor.launch
Defines
- 
ONTOLOGY_PARAM
- 
SERVICE_ARMOR_SINGLE_REQUEST
- 
SERVICE_ARMOR_MULTIPLE_REQUESTS
- 
ARMOR_CLIENT_NAME
- 
ARMOR_REFERENCE_NAME
- 
ARMOR_CMD_LOAD
- 
ARMOR_TIMEOUT
- 
OUTLABEL
- 
OUTLOG
- 
OUTERR
- 
LOGSQUARE(str)
- 
SS(this_string)
- 
SSS(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[])