NTRT Simulator
 All Classes Files Functions Variables Typedefs Friends Pages
tgCPGInfo.h
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 #ifndef TG_CPG_INFO_H
20 #define TG_CPG_INFO_H
21 
22 #include "boost/multi_array.hpp"
23 
24 class CPGEquations;
25 class tgConnectorInfo;
26 class tgBaseCPGNode;
27 
28 typedef boost::multi_array<double, 2> array_2D;
29 typedef boost::multi_array<double, 4> array_4D;
30 
31 class tgCPGInfo
32 {
33 public:
34 
35 
36  const int getNodeNumber() const
37  {
38  return m_nodeNum;
39  }
40 
44  const CPGEquations* getCPGSys() const
45  {
46  return p_CPGSys;
47  }
48 
54  void addControlInfo (tgBaseCPGNode* string);
55 
56 protected:
60  tgCPGInfo(CPGEquations* CPGSys, array_2D nodeParams);
61 
68  void setConnectivity ( tgConnectorInfo* thisString,
69  std::vector<tgConnectorInfo*> allStrings,
70  array_4D edgeParams);
71 
72 private:
73 
74  int m_nodeNum;
75 
76  //We don't own this;
77  CPGEquations* p_CPGSys;
78 
79 };
80 
81 
82 #endif
void addControlInfo(tgBaseCPGNode *string)
Definition: tgCPGInfo.cpp:110
void setConnectivity(tgConnectorInfo *thisString, std::vector< tgConnectorInfo * > allStrings, array_4D edgeParams)
Definition: tgCPGInfo.cpp:50
const CPGEquations * getCPGSys() const
Definition: tgCPGInfo.h:44
tgCPGInfo(CPGEquations *CPGSys, array_2D nodeParams)
Definition: tgCPGInfo.cpp:29