NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgUnidirComprSprActuatorInfo.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 
28 #ifndef SRC_TGCREATOR_TG_UNIDIR_COMPR_SPR_ACTUATOR_INFO_H
29 #define SRC_TGCREATOR_TG_UNIDIR_COMPR_SPR_ACTUATOR_INFO_H
30 
31 // This class inherits from tgCompressionSpringActuatorInfo
33 
34 // From the C++ standard library:
35 #include <string>
36 
37 // By including the superclass, tgTags etc. are also included.
39 
40 /* Forward declarations, needed in order to create
41  * the actual compression spring object and also to
42  * reference its config.
43  * TO-DO: why not just include tgBulletUnidirComprSpr.h? */
45 
47 {
48 public:
49 
57  const tgUnidirComprSprActuator::Config& config);
58 
67  tgTags tags);
68 
78  const tgPair& pair);
79 
84 
88  virtual tgConnectorInfo* createConnectorInfo(const tgPair& pair);
89 
94  virtual void initConnector(tgWorld& world);
95 
100  virtual tgModel* createModel(tgWorld& world);
101 
102 protected:
103 
109 
114  void constructorAux();
115 
116 private:
117 
118  // local copy of the config struct.
120 
121 };
122 
123 
124 #endif
Contains the definition of class tgUnidirComprSprActuator. This class assumes a linear spring...
virtual tgModel * createModel(tgWorld &world)
tgBulletUnidirComprSpr * createTgBulletUnidirComprSpr()
virtual tgConnectorInfo * createConnectorInfo(const tgPair &pair)
Definition of class tgCompressionSpringActuatorInfo, used to create a tgBulletCompressionSpring.
virtual void initConnector(tgWorld &world)
Definition: tgPair.h:48
tgUnidirComprSprActuatorInfo(const tgUnidirComprSprActuator::Config &config)
Definition: tgTags.h:44