YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <yarp/os/Network.h>
8#include <yarp/companion/yarpcompanion.h>
10#include <yarp/run/Run.h>
11
12
13using namespace yarp::os;
14
15
16int main(int argc, char *argv[]) {
17
18 // intercept "yarp server" if needed
19 if (argc>=2) {
20 if (std::string(argv[1])=="server") {
21 return yarpserver_main(argc,argv);
22 }
23 }
24
26
27 // intercept "yarp run" if needed
28 if (argc>=2) {
29 if (std::string(argv[1])=="run") {
30 return yarp::run::Run::main(argc,argv);
31 }
32 }
33
34 // call the yarp standard companion
35 return yarp::companion::main(argc,argv);
36}
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition Network.h:706
An interface to the operating system, including Port based communication.
@ YARP_CLOCK_SYSTEM
Definition Time.h:28
The main, catch-all namespace for YARP.
Definition dirs.h:16
int main(int argc, char *argv[])
Definition yarp.cpp:16
int yarpserver_main(int argc, char *argv[])