RAPP Platform
v0.6.0
RAPP Platform is a collection of ROS nodes and back-end processes that aim to deliver ready-to-use generic services to robots
|
#include <knowrob_wrapper/knowrob_wrapper.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sstream>
#include <ros/package.h>
#include <fstream>
Go to the source code of this file.
Functions | |
bool | checkIfFileExists (const char *fileName) |
Checks if path exists. More... | |
bool | checkIfStringContainsString (std::string a, std::string b) |
Checks if the second string is contained within the first string. More... | |
bool | checkIfStringVectorContainsString (std::vector< std::string > vec, std::string a) |
Check if a string is contained in a vector string. More... | |
std::string | intToString (int a) |
Converts integer to string. More... | |
std::vector< std::string > | split (std::string str, std::string sep) |
Splits string by delimiter. More... | |
std::string | SplitFilename (const std::string &str) |
Keeps only the final folder or file from a path. More... | |
bool checkIfFileExists | ( | const char * | fileName | ) |
Checks if path exists.
fileName | [char*] The input path |
Definition at line 103 of file knowrob_wrapper.cpp.
bool checkIfStringContainsString | ( | std::string | a, |
std::string | b | ||
) |
Checks if the second string is contained within the first string.
a | [string] The first string |
Definition at line 68 of file knowrob_wrapper.cpp.
bool checkIfStringVectorContainsString | ( | std::vector< std::string > | vec, |
std::string | a | ||
) |
Check if a string is contained in a vector string.
vec | [vector<string>] The vector containing strings |
Definition at line 52 of file knowrob_wrapper.cpp.
std::string intToString | ( | int | a | ) |
Converts integer to string.
a | [int] The input integer |
Definition at line 81 of file knowrob_wrapper.cpp.
std::vector<std::string> split | ( | std::string | str, |
std::string | sep | ||
) |
Splits string by delimiter.
str | [string] The input string |
sep | [string] The delimiter |
Definition at line 114 of file knowrob_wrapper.cpp.
std::string SplitFilename | ( | const std::string & | str | ) |
Keeps only the final folder or file from a path.
str | [string&] The input path |
Definition at line 92 of file knowrob_wrapper.cpp.