iCub-main
OdeWorldManager.h
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 /*
4 * Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
5 * Author: Vadim Tikhanoff, Paul Fitzpatrick
6 * email: vadim.tikhanoff@iit.it, paulfitz@alum.mit.edu
7 * website: www.robotcub.org
8 * Permission is granted to copy, distribute, and/or modify this program
9 * under the terms of the GNU General Public License, version 2 or any
10 * later version published by the Free Software Foundation.
11 *
12 * A copy of the license can be found at
13 * http://www.robotcub.org/icub/license/gpl.txt
14 *
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details
19 */
20 
21 #ifndef ICUBSIMULATION_ODEWORLDMANAGER_INC
22 #define ICUBSIMULATION_ODEWORLDMANAGER_INC
23 
24 #include "WorldManager.h"
25 
26 class OdeWorldManager : public WorldManager {
27 public:
28 
30  num = 0;
31  a = b = c = 0;
32  }
33 
34 #ifdef OLD_RESPONDER
35  // will need to move logic from respond to apply asap
36  virtual bool respond(const yarp::os::Bottle &command,
37  yarp::os::Bottle &reply);
38 #endif
39 
40  virtual void clear();
41 
42  // will only be used when respond() is removed.
43  virtual void apply(const WorldOp& op, WorldResult& result);
44 
45 private:
46  int num;
47  int a, b, c;
48 };
49 
50 #endif
OdeWorldManager::apply
virtual void apply(const WorldOp &op, WorldResult &result)
Definition: OdeWorldManager.cpp:451
OdeWorldManager::OdeWorldManager
OdeWorldManager()
Definition: OdeWorldManager.h:29
WorldManager
Definition: WorldManager.h:28
WorldManager.h
WorldManager::respond
virtual bool respond(const yarp::os::Bottle &command, yarp::os::Bottle &reply)
Definition: FakeWorldManager.cpp:13
OdeWorldManager::clear
virtual void clear()
Definition: WorldManager.cpp:32
WorldOp
Definition: WorldOp.h:114
WorldResult
Definition: WorldOp.h:138
OdeWorldManager
Definition: OdeWorldManager.h:26