NTRT Simulator
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Friends
Pages
tgWorld.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2012, United States Government, as represented by the
3
* Administrator of the National Aeronautics and Space Administration.
4
* All rights reserved.
5
*
6
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
7
* under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
10
* http://www.apache.org/licenses/LICENSE-2.0.
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15
* either express or implied. See the License for the specific language
16
* governing permissions and limitations under the License.
17
*/
18
19
20
#ifndef TG_WORLD_H
21
#define TG_WORLD_H
22
29
// Forward declarations
30
class
tgWorldImpl
;
31
class
tgGround
;
32
37
class
tgWorld
38
{
39
public
:
40
45
struct
Config
46
{
52
double
gravity
;
53
};
54
56
tgWorld
();
57
63
tgWorld
(
const
Config
& config);
64
71
tgWorld
(
const
Config
& config,
tgGround
* ground);
72
74
~tgWorld
();
75
77
void
reset
();
78
83
void
reset
(
const
Config
& config);
84
90
void
step
(
double
dt)
const
;
91
97
tgWorldImpl
&
implementation
()
const
98
{
99
return
*m_pImpl;
100
}
101
102
private
:
103
105
bool
invariant()
const
;
106
107
private
:
108
112
Config m_config;
113
115
tgGround
* m_pGround;
116
118
tgWorldImpl
* m_pImpl;
119
};
120
121
#endif //TG_BULLET_WORLD_H
tgWorldImpl
Definition:
tgWorldImpl.h:39
tgWorld::~tgWorld
~tgWorld()
Definition:
tgWorld.cpp:83
tgGround
Definition:
tgGround.h:32
tgWorld::Config
Definition:
tgWorld.h:45
tgWorld::Config::gravity
double gravity
Definition:
tgWorld.h:52
tgWorld::step
void step(double dt) const
Definition:
tgWorld.cpp:108
tgWorld::implementation
tgWorldImpl & implementation() const
Definition:
tgWorld.h:97
tgWorld::tgWorld
tgWorld()
Definition:
tgWorld.cpp:48
tgWorld
Definition:
tgWorld.h:37
tgWorld::reset
void reset()
Definition:
tgWorld.cpp:89
core
tgWorld.h
Generated on Mon Jun 9 2014 22:31:22 for NTRT Simulator by
1.8.7