NTRT Simulator  Version: Master
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgCompoundRigidSensorInfo.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 #ifndef TG_COMPOUND_RIGID_SENSOR_INFO_H
20 #define TG_COMPOUND_RIGID_SENSOR_INFO_H
21 
30 // This module
31 #include "tgSensorInfo.h"
32 // Other includes from NTRTsim
33 // ...
34 // Other includes from the C++ standard library
35 #include <vector>
36 #include <string>
37 #include <map> // for the helper function
38 // Includes from Boost
39 //#include <boost/regex.hpp>
40 
41 // Forward references
42 class tgSenseable;
43 //class tgCompoundRigidSensor; // since createSensor returns only a tgSensor.
44 class tgSensor;
45 class tgModel; // this class only works on tgModels, since tgSenseables don't have tags.
46 
58 {
59  public:
60 
65 
70 
81  virtual bool isThisMySenseable(tgSenseable* pSenseable);
82 
94  virtual std::vector<tgSensor*> createSensorsIfAppropriate(tgSenseable* pSenseable);
95 
96  private:
97 
107  std::map<std::string, int> getCompoundTags(tgModel* pModel);
108 
117  std::vector<std::string> blacklist;
118 
122  bool isBlacklisted(std::string tag);
123 
124 };
125 
126 #endif // TG_COMPOUND_RIGID_SENSOR_INFO_H
virtual std::vector< tgSensor * > createSensorsIfAppropriate(tgSenseable *pSenseable)
virtual bool isThisMySenseable(tgSenseable *pSenseable)
Definition of abstract class tgSensorInfo.