iCub-main
Loading...
Searching...
No Matches
fakeMotorDevice.cpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2011 Department of Robotics Brain and Cognitive Sciences - Istituto Italiano di Tecnologia
3 * Author: Ugo Pattacini
4 * email: ugo.pattacini@iit.it
5 * Permission is granted to copy, distribute, and/or modify this program
6 * under the terms of the GNU General Public License, version 2 or any
7 * later version published by the Free Software Foundation.
8 *
9 * A copy of the license can be found at
10 * http://www.robotcub.org/icub/license/gpl.txt
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 * Public License for more details
16*/
17
18#include <fakeMotorDevice.h>
20
21using namespace yarp::dev;
22
23/**********************************************************/
25{
26 DriverCreator *factoryServer=new DriverCreatorOf<fakeMotorDeviceServer>("fakeyServer",
27 "fakeMotorDeviceClient",
28 "fakeMotorDeviceServer");
29
30 DriverCreator *factoryClient=new DriverCreatorOf<fakeMotorDeviceClient>("fakeyClient",
31 "fakeMotorDeviceClient",
32 "fakeMotorDeviceClient");
33
34 Drivers::factory().add(factoryServer);
35 Drivers::factory().add(factoryClient);
36}
37
38
39
void registerFakeMotorDevices()
Register new yarp devices for fake motor handling.