cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsODEWorld.h
Go to the documentation of this file.
1 /*
2 
3  Author(s): Simon Leonard
4  Created on: Nov 11 2009
5 
6  (C) Copyright 2008 Johns Hopkins University (JHU), All Rights
7  Reserved.
8 
9 --- begin cisst license - do not edit ---
10 
11 This software is provided "as is" under an open source license, with
12 no warranty. The complete license can be found in license.txt and
13 http://www.cisst.org/cisst/license.txt.
14 
15 --- end cisst license ---
16 */
17 
18 #ifndef _mtsODEWorld_h
19 #define _mtsODEWorld_h
20 
23 
25  public mtsTaskPeriodic,
26  public osaODEWorld {
27 
28  public:
29 
31 
38  mtsODEWorld( const std::string& name,
39  double period,
40  const vctFixedSizeVector<double,3>& gravity = GRAVITY ) :
41  mtsTaskPeriodic( name, period, true ),
42  osaODEWorld( period, gravity ){}
43 
46 
47  void Configure( const std::string& CMN_UNUSED( argv ) ){}
48 
49  void Startup(){}
50  void Run(){
52  Step();
53  }
54  void Cleanup(){}
55 
56 };
57 
58 #endif
59 
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
void Run()
Definition: mtsODEWorld.h:50
void Step()
Take a simulation step.
size_t ProcessQueuedCommands(void)
Definition: mtsComponent.h:494
#define CMN_UNUSED(argument)
Definition: cmnPortability.h:479
void Configure(const std::string &CMN_UNUSED(argv))
Definition: mtsODEWorld.h:47
void Cleanup()
Definition: mtsODEWorld.h:54
mtsODEWorld(const std::string &name, double period, const vctFixedSizeVector< double, 3 > &gravity=GRAVITY)
Create a new world.
Definition: mtsODEWorld.h:38
Defines a periodic task.
~mtsODEWorld()
Destroy the world!
Definition: mtsODEWorld.h:45
Definition: osaODEWorld.h:58
void Startup()
Definition: mtsODEWorld.h:49
Definition: mtsTaskPeriodic.h:80
Definition: mtsODEWorld.h:24