Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
hrp::Sensor Class Reference

#include <Sensor.h>

Inheritance diagram for hrp::Sensor:
Inheritance graph
[legend]

Public Types

enum  SensorType {
  COMMON = 0, FORCE, RATE_GYRO, ACCELERATION,
  PRESSURE, PHOTO_INTERRUPTER, VISION, TORQUE,
  RANGE, NUM_SENSOR_TYPES
}
 

Public Member Functions

virtual void clear ()
 
virtual void operator= (const Sensor &org)
 
virtual void putInformation (std::ostream &os)
 
 Sensor ()
 
virtual ~Sensor ()
 

Static Public Member Functions

static Sensorcreate (int type)
 
static void destroy (Sensor *sensor)
 

Public Attributes

int id
 
Linklink
 
Vector3 localPos
 
Matrix33 localR
 
std::string name
 
int type
 

Static Public Attributes

static const int TYPE = COMMON
 

Detailed Description

Definition at line 27 of file hrplib/hrpModel/Sensor.h.

Member Enumeration Documentation

◆ SensorType

Enumerator
COMMON 
FORCE 
RATE_GYRO 
ACCELERATION 
PRESSURE 
PHOTO_INTERRUPTER 
VISION 
TORQUE 
RANGE 
NUM_SENSOR_TYPES 

Definition at line 31 of file hrplib/hrpModel/Sensor.h.

Constructor & Destructor Documentation

◆ Sensor()

Sensor::Sensor ( )

Definition at line 20 of file hrplib/hrpModel/Sensor.cpp.

◆ ~Sensor()

Sensor::~Sensor ( )
virtual

Definition at line 64 of file hrplib/hrpModel/Sensor.cpp.

Member Function Documentation

◆ clear()

void Sensor::clear ( void  )
virtual

Reimplemented in hrp::AccelSensor, hrp::RateGyroSensor, and hrp::ForceSensor.

Definition at line 86 of file hrplib/hrpModel/Sensor.cpp.

◆ create()

Sensor * Sensor::create ( int  type)
static

Definition at line 26 of file hrplib/hrpModel/Sensor.cpp.

◆ destroy()

void Sensor::destroy ( Sensor sensor)
static

Definition at line 80 of file hrplib/hrpModel/Sensor.cpp.

◆ operator=()

void Sensor::operator= ( const Sensor org)
virtual

Definition at line 70 of file hrplib/hrpModel/Sensor.cpp.

◆ putInformation()

void Sensor::putInformation ( std::ostream &  os)
virtual

Reimplemented in hrp::AccelSensor, hrp::RateGyroSensor, and hrp::ForceSensor.

Definition at line 92 of file hrplib/hrpModel/Sensor.cpp.

Member Data Documentation

◆ id

int hrp::Sensor::id

Definition at line 58 of file hrplib/hrpModel/Sensor.h.

◆ link

Link* hrp::Sensor::link

Definition at line 59 of file hrplib/hrpModel/Sensor.h.

◆ localPos

Vector3 hrp::Sensor::localPos

Definition at line 61 of file hrplib/hrpModel/Sensor.h.

◆ localR

Matrix33 hrp::Sensor::localR

Definition at line 60 of file hrplib/hrpModel/Sensor.h.

◆ name

std::string hrp::Sensor::name

Definition at line 56 of file hrplib/hrpModel/Sensor.h.

◆ TYPE

const int hrp::Sensor::TYPE = COMMON
static

Definition at line 44 of file hrplib/hrpModel/Sensor.h.

◆ type

int hrp::Sensor::type

Definition at line 57 of file hrplib/hrpModel/Sensor.h.


The documentation for this class was generated from the following files:


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:08