YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
port_power/ex0502_raw_target_connector.cpp

Part of a series of examples on the different ways of using ports.

Part of a series of examples on the different ways of using ports. See Port power tutorial.

/*
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
* SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
#include <yarp/os/all.h>
using namespace yarp::os;
int main() {
Network::connect("/target/raw/out","/target/raw/in"); // connect ports.
// can do the same thing from command line with
// "yarp connect /target/raw/out /target/raw/in"
return 0;
}
A mini-server for performing network communication in the background.
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition Network.h:706
An interface to the operating system, including Port based communication.
The main, catch-all namespace for YARP.
Definition dirs.h:16