YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarprun.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// The main body of yarprun is now part of the YARP_run library, in:
8// src/libYARP_run/src/yarp/run/Run.cpp
9
10#include <yarp/run/Run.h>
11#include <yarp/os/Network.h>
12#include <yarp/os/LogStream.h>
13#include <cstdio>
14
15
16int main(int argc, char *argv[])
17{
19
20 if (!yarp.checkNetwork())
21 {
22 yError("Sorry YARP network does not seem to be available, is the yarp server available?\n");
23 return 1;
24 }
25
26 return yarp::run::Run::main(argc,argv);
27}
#define yError(...)
Definition Log.h:361
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition Network.h:706
The main, catch-all namespace for YARP.
Definition dirs.h:16
int main(int argc, char *argv[])
Definition yarprun.cpp:16