Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SensorFeedback Struct Reference

Sets value to the current joint position. This is created automatically by Mirage for named joints where min≠max, so typically you don't need to explicitly request this sensor. More...

#include <SensorInfo.h>

Inheritance diagram for SensorFeedback:

Detailed Description

Sets value to the current joint position. This is created automatically by Mirage for named joints where min≠max, so typically you don't need to explicitly request this sensor.

Definition at line 116 of file SensorInfo.h.

List of all members.

Public Member Functions

 SensorFeedback ()
 constructor
 SensorFeedback (const SensorFeedback &s)
 copy constructor for cloning
virtual void declareValues (DynamicRobotState &values)
 Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.
virtual void reclaimValues (DynamicRobotState &values)
 Subclass should remove values added via previous declareValues().
virtual SensorFeedbackclone () const __attribute__((warn_unused_result))
 clone implementation for Dictionary

Public Attributes

plist::Primitive< floatvalue
 current sensor value: 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise
std::string sensorName
 will be set by Client during loading to ensure synchronization with KinematicJoint name

Static Public Attributes

static const std::string autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<SensorFeedback>("Feedback")
 Provides registration with FamilyFactory<SensorInfo>

Protected Member Functions

void init ()
 performs common initialization

Constructor & Destructor Documentation

SensorFeedback::SensorFeedback (  ) 

constructor

Definition at line 118 of file SensorInfo.h.

SensorFeedback::SensorFeedback ( const SensorFeedback s  ) 

copy constructor for cloning

Definition at line 120 of file SensorInfo.h.


Member Function Documentation

SensorFeedback * SensorFeedback::clone (  )  const [virtual]

clone implementation for Dictionary

implements the clone function for dictionary

Implements SensorInfo.

Definition at line 10 of file SensorInfo.cc.

virtual void SensorFeedback::declareValues ( DynamicRobotState values  )  [virtual]

Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.

A reference to a permanent plist::Primitive<float> instance should be added, this is how values are extracted from the sensor via this shared value.

Implements SensorInfo.

Definition at line 122 of file SensorInfo.h.

void SensorFeedback::init (  )  [protected]

performs common initialization

Reimplemented from SensorInfo.

Definition at line 134 of file SensorInfo.h.

Referenced by SensorFeedback().

virtual void SensorFeedback::reclaimValues ( DynamicRobotState values  )  [virtual]

Subclass should remove values added via previous declareValues().

Implements SensorInfo.

Definition at line 125 of file SensorInfo.h.


Member Data Documentation

const std::string SensorFeedback::autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<SensorFeedback>("Feedback") [static]

Provides registration with FamilyFactory<SensorInfo>

Definition at line 130 of file SensorInfo.h.

will be set by Client during loading to ensure synchronization with KinematicJoint name

Definition at line 129 of file SensorInfo.h.

Referenced by declareValues(), and reclaimValues().

current sensor value: 1 if there are any contact constraints within the specified region of the associated body; 0 otherwise

Definition at line 128 of file SensorInfo.h.

Referenced by declareValues().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:16 2016 by Doxygen 1.6.3