yarp-devices
Loading...
Searching...
No Matches
examples
cpp
exampleRemoteControlBoardModule
ExampleRemoteControlBoard.hpp
1
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3
#ifndef __roboticslab_SIM_EXAMPLE_HPP__
4
#define __roboticslab_SIM_EXAMPLE_HPP__
5
6
#include <yarp/os/Network.h>
7
8
#include <yarp/dev/PolyDriver.h>
9
#include <yarp/dev/ControlBoardInterfaces.h>
10
11
constexpr
auto
DEFAULT_ROBOT =
"/robot/part"
;
12
13
namespace
roboticslab
14
{
15
16
class
ExampleRemoteControlBoard
17
{
18
public
:
19
int
run(
int
argc,
char
**argv);
20
21
private
:
22
yarp::os::Network yarp;
// connect to YARP network
23
yarp::dev::PolyDriver dd;
//create a YARP multi-use driver
24
yarp::dev::IPositionControl *pos;
//make a position controller object we call 'pos'
25
yarp::dev::IEncoders *enc;
//make an encoder controller object we call 'enc'
26
yarp::dev::IVelocityControl *vel;
//make a velocity controller object we call 'vel'
27
};
28
29
}
// namespace roboticslab
30
31
#endif
// __roboticslab_SIM_EXAMPLE_HPP__
roboticslab::ExampleRemoteControlBoard
Definition
ExampleRemoteControlBoard.hpp:17
roboticslab
The main, catch-all namespace for Robotics Lab UC3M.
Definition
groups.dox:6
Generated by
1.9.8