#include <ros/ros.h>
#include <dynamic_reconfigure/server.h>
#include <uavc_v4lctl/v4lctlNodeDynConfig.h>
#include <uavc_v4lctl/v4lctlSet.h>
#include <uavc_v4lctl/v4lctlGet.h>
#include <opencv2/opencv.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/regex.hpp>
#include <sstream>
#include <map>
Go to the source code of this file.
Classes |
class | uavc_v4lctl::v4lctlNode |
Namespaces |
namespace | uavc_v4lctl |
Defines |
#define | V4LCTL_GET_BOOL(name, default) (defaults || (s=v4lctlGet(name)).empty() ? default : boost::regex_match(s, boost::regex("^on\$"))) |
#define | V4LCTL_GET_INT(name, default) (defaults || (s=v4lctlGet(name)).empty() ? default : atoi(s.c_str())) |
#define | V4LCTL_GET_PERCENT(name, default, max) (defaults || (s=v4lctlGet(name)).empty() ? default : (atoi(s.c_str()) * 100 / max)) |
#define | V4LCTL_GET_STRING(name, default) (defaults || (s=v4lctlGet(name)).empty() ? default : s) |
#define | YAML_NAME_TO_OPT(s) boost::replace_all_copy(boost::replace_all_copy(s,"-","\""),"_"," ") |
#define | YAML_OPT_TO_NAME(s) boost::replace_all_copy(boost::replace_all_copy(s,"\"","-")," ","_") |
Functions |
int | main (int argc, char **argv) |
Define Documentation
#define V4LCTL_GET_BOOL |
( |
|
name, |
|
|
|
default |
|
) |
| (defaults || (s=v4lctlGet(name)).empty() ? default : boost::regex_match(s, boost::regex("^on\$"))) |
#define V4LCTL_GET_INT |
( |
|
name, |
|
|
|
default |
|
) |
| (defaults || (s=v4lctlGet(name)).empty() ? default : atoi(s.c_str())) |
#define V4LCTL_GET_PERCENT |
( |
|
name, |
|
|
|
default, |
|
|
|
max |
|
) |
| (defaults || (s=v4lctlGet(name)).empty() ? default : (atoi(s.c_str()) * 100 / max)) |
#define V4LCTL_GET_STRING |
( |
|
name, |
|
|
|
default |
|
) |
| (defaults || (s=v4lctlGet(name)).empty() ? default : s) |
#define YAML_NAME_TO_OPT |
( |
|
s | ) |
boost::replace_all_copy(boost::replace_all_copy(s,"-","\""),"_"," ") |
#define YAML_OPT_TO_NAME |
( |
|
s | ) |
boost::replace_all_copy(boost::replace_all_copy(s,"\"","-")," ","_") |
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |