|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
46 bool verbose = options.
check(
"verbose");
47 bool silent = options.
check(
"silent");
56 ==========================
57 | __ __ ___ ____ ____ |
58 | \ \/ // || _ \ | _ \ |
59 | \ // /| || |/ / | |/ / |
60 | / // ___ || _ \ | _/ |
61 | /_//_/ |_||_| \_\|_| |
63 ==========================)===");
66 if (options.
check(
"help")) {
68 yCInfo(
SERVER,
" --write Write IP address and socket on the configuration file.\n");
69 yCInfo(
SERVER,
" --config filename.conf Load options from a file.\n");
70 yCInfo(
SERVER,
" --portdb ports.db Store port information in named database.\n");
72 yCInfo(
SERVER,
" Set to :memory: to store in memory (faster).\n");
73 yCInfo(
SERVER,
" --subdb subs.db Store subscription information in named database.\n");
75 yCInfo(
SERVER,
" Set to :memory: to store in memory (faster).\n");
76 yCInfo(
SERVER,
" --ip IP.AD.DR.ESS Set IP address of server.\n");
77 yCInfo(
SERVER,
" --socket NNNNN Set port number of server.\n");
78 yCInfo(
SERVER,
" --web dir Serve web resources from given directory.\n");
79 yCInfo(
SERVER,
" --no-web-cache Reload pages from file for each request.\n");
80 yCInfo(
SERVER,
" --ros Delegate pub/sub to ROS name server.\n");
86 yCInfo(
SERVER,
"Call with --help for information on available options\n");
90 if (!nc.
open(options)) {
101 double messageCounter(0);
102 double pollingRate(.1);
135 NameClient::getNameClient().send(cmd, reply);
137 yCInfo(
SERVER,
"Name server can be browsed at http:/%s",
142 messageCounter += pollingRate;
143 SystemClock::delaySystem(pollingRate);
146 if(std::modf(messageCounter / 600.0, &dummy) < .00001) {
void close() override
Stop port activity.
A simple collection of objects that can be described and transmitted in a portable way.
const yarp::os::Contact & where()
void setPort(yarp::os::Port &port)
#define YARP_SERVERSQL_LOG_COMPONENT(name, name_string)
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
void preregister(const yarp::os::Contact &c)
yarp::os::Contact whereDelegate()
A mini-server for network communication.
void fromCommand(int argc, char *argv[], bool skipFirst=true, bool wipe=true)
Interprets a list of command arguments as a list of properties.
yarp::os::Contact where()
bool check(const std::string &key) const override
Check if there exists a property of the given name.
void setReaderCreator(PortReaderCreator &creator)
Set a creator for readers for port data.
void addString(const char *str)
Places a string in the bottle, at the end of the list.
bool open(yarp::os::Searchable &options)
#define yCError(component,...)
const yarp::os::LogComponent & SERVER()
Client for YARP name server.
#define yCInfo(component,...)
The main, catch-all namespace for YARP.
Multicast and file-based mechanisms for finding the name server.
A class for storing options and configuration information.