NTRT Simulator
Version: Master
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Pages
tgSensorInfo.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_SENSOR_INFO_H
20
#define TG_SENSOR_INFO_H
21
30
// Includes:
31
// The C++ Standard Library
32
#include <iostream>
// for the to-string overloaded method
33
#include <vector>
// for returning lists of sensors
34
// This library
35
// ...
36
// Bullet Physics
37
// ...
38
39
// Forward references
40
class
tgSenseable
;
41
class
tgSensor
;
42
51
class
tgSensorInfo
52
{
53
public
:
54
60
tgSensorInfo
();
61
virtual
~tgSensorInfo
();
62
70
virtual
bool
isThisMySenseable
(
tgSenseable
* pSenseable) = 0;
71
88
virtual
std::vector<tgSensor*>
createSensorsIfAppropriate
(
tgSenseable
* pSenseable) = 0;
89
90
};
91
92
100
inline
std::ostream&
101
operator<<
(std::ostream& os,
const
tgSensorInfo
& obj)
102
{
103
os <<
"tgSensorInfo"
;
104
return
os;
105
}
106
107
#endif // TG_SENSOR_INFO_H
tgSenseable
Definition:
tgSenseable.h:38
tgSensorInfo::createSensorsIfAppropriate
virtual std::vector< tgSensor * > createSensorsIfAppropriate(tgSenseable *pSenseable)=0
tgSensor
Definition:
tgSensor.h:49
tgSensorInfo::isThisMySenseable
virtual bool isThisMySenseable(tgSenseable *pSenseable)=0
operator<<
std::ostream & operator<<(std::ostream &os, const tgSensorInfo &obj)
Definition:
tgSensorInfo.h:101
tgSensorInfo::tgSensorInfo
tgSensorInfo()
Definition:
tgSensorInfo.cpp:37
tgSensorInfo::~tgSensorInfo
virtual ~tgSensorInfo()
Definition:
tgSensorInfo.cpp:42
tgSensorInfo
Definition:
tgSensorInfo.h:51
sensors
tgSensorInfo.h
Generated on Wed Dec 19 2018 16:44:29 for NTRT Simulator by
1.8.6