Choreonoid  1.8
Classes | Public Member Functions | Protected Member Functions | List of all members
cnoid::Device Class Reference

#include <Device.h>

Inheritance diagram for cnoid::Device:
cnoid::DeviceState cnoid::ClonableReferenced cnoid::Referenced cnoid::AccelerationSensor cnoid::AttachmentDevice cnoid::Camera cnoid::DigitalIoDevice cnoid::ForceSensor cnoid::HolderDevice cnoid::Light cnoid::MarkerDevice cnoid::RangeSensor cnoid::RateGyroSensor

Public Member Functions

virtual ~Device ()
 
Deviceclone () const
 
Deviceclone (CloneMap &cloneMap) const
 
virtual bool copyFrom (const Device *other)
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func)
 
bool hasStateOnly () const
 
int index () const
 
int id () const
 
const std::string & name () const
 
const Linklink () const
 
Linklink ()
 
const Bodybody () const
 
Bodybody ()
 
Isometry3T_local ()
 
const Isometry3T_local () const
 
const Isometry3localPosition () const
 
template<class Scalar , int Mode, int Options>
void setLocalPosition (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
Isometry3::ConstLinearPart R_local () const
 
Isometry3::LinearPart R_local ()
 
Isometry3::ConstLinearPart localRotation () const
 
template<typename Derived >
void setLocalRotation (const Eigen::MatrixBase< Derived > &R)
 
Isometry3::ConstTranslationPart p_local () const
 
Isometry3::TranslationPart p_local ()
 
Isometry3::ConstTranslationPart localTranslation () const
 
template<typename Derived >
void setLocalTranslation (const Eigen::MatrixBase< Derived > &p)
 
virtual void clearState ()
 
virtual bool on () const
 
virtual void on (bool on)
 
SignalProxy< void()> sigStateChanged ()
 
void notifyStateChange ()
 
SignalProxy< void(double time)> sigTimeChanged ()
 
void notifyTimeChange (double time)
 
const Isometry3T_local_org () const
 
void setLocalAttitude (const Isometry3 &Ta)
 
double cycle () const
 
void setCycle (double msec)
 
- Public Member Functions inherited from cnoid::DeviceState
virtual ~DeviceState ()
 
virtual const char * typeName () const =0
 
virtual void copyStateFrom (const DeviceState &other)=0
 
virtual DeviceStatecloneState () const =0
 
virtual int stateSize () const =0
 
virtual const double * readState (const double *buf)=0
 
virtual double * writeState (double *out_buf) const =0
 
- Public Member Functions inherited from cnoid::ClonableReferenced
virtual ReferenceddoClone (CloneMap *cloneMap) const =0
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 Device ()
 
 Device (const Device &org, bool copyStateOnly=false)
 
void copySpecFrom (const Device *other)
 
- Protected Member Functions inherited from cnoid::DeviceState
 DeviceState ()
 
 DeviceState (const DeviceState &)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ Device() [1/2]

Device::Device ( )
protected

◆ Device() [2/2]

Device::Device ( const Device org,
bool  copyStateOnly = false 
)
protected

◆ ~Device()

Device::~Device ( )
virtual

Member Function Documentation

◆ body() [1/2]

Body* cnoid::Device::body ( )

◆ body() [2/2]

Body * Device::body ( ) const

◆ clearState()

void Device::clearState ( )
virtual

◆ clone() [1/2]

Device* cnoid::Device::clone ( ) const
inline

◆ clone() [2/2]

Device* cnoid::Device::clone ( CloneMap cloneMap) const
inline

◆ copyFrom()

bool Device::copyFrom ( const Device other)
virtual

Reimplemented in cnoid::HolderDevice.

◆ copySpecFrom()

void Device::copySpecFrom ( const Device other)
protected

◆ cycle()

double cnoid::Device::cycle ( ) const
inline

◆ forEachActualType()

void Device::forEachActualType ( std::function< bool(const std::type_info &type)>  func)
virtual

◆ hasStateOnly()

bool cnoid::Device::hasStateOnly ( ) const
inline

◆ id()

int cnoid::Device::id ( ) const
inline

◆ index()

int cnoid::Device::index ( ) const
inline

◆ link() [1/2]

Link* cnoid::Device::link ( )
inline

◆ link() [2/2]

const Link* cnoid::Device::link ( ) const
inline

◆ localPosition()

const Isometry3& cnoid::Device::localPosition ( ) const
inline

◆ localRotation()

Isometry3::ConstLinearPart cnoid::Device::localRotation ( ) const
inline

◆ localTranslation()

Isometry3::ConstTranslationPart cnoid::Device::localTranslation ( ) const
inline

◆ name()

const std::string& cnoid::Device::name ( ) const
inline

◆ notifyStateChange()

void cnoid::Device::notifyStateChange ( )
inline

◆ notifyTimeChange()

void cnoid::Device::notifyTimeChange ( double  time)
inline

◆ on() [1/2]

bool Device::on ( ) const
virtual

◆ on() [2/2]

void Device::on ( bool  on)
virtual

◆ p_local() [1/2]

Isometry3::TranslationPart cnoid::Device::p_local ( )
inline

◆ p_local() [2/2]

Isometry3::ConstTranslationPart cnoid::Device::p_local ( ) const
inline

◆ R_local() [1/2]

Isometry3::LinearPart cnoid::Device::R_local ( )
inline

◆ R_local() [2/2]

Isometry3::ConstLinearPart cnoid::Device::R_local ( ) const
inline

◆ setCycle()

void cnoid::Device::setCycle ( double  msec)
inline

◆ setId()

void cnoid::Device::setId ( int  id)
inline

◆ setIndex()

void cnoid::Device::setIndex ( int  index)
inline

◆ setLink()

void cnoid::Device::setLink ( Link link)
inline

◆ setLocalAttitude()

void Device::setLocalAttitude ( const Isometry3 Ta)

◆ setLocalPosition()

template<class Scalar , int Mode, int Options>
void cnoid::Device::setLocalPosition ( const Eigen::Transform< Scalar, 3, Mode, Options > &  T)
inline

◆ setLocalRotation()

template<typename Derived >
void cnoid::Device::setLocalRotation ( const Eigen::MatrixBase< Derived > &  R)
inline

◆ setLocalTranslation()

template<typename Derived >
void cnoid::Device::setLocalTranslation ( const Eigen::MatrixBase< Derived > &  p)
inline

◆ setName()

void cnoid::Device::setName ( const std::string &  name)
inline

◆ sigStateChanged()

SignalProxy<void()> cnoid::Device::sigStateChanged ( )
inline

◆ sigTimeChanged()

SignalProxy<void(double time)> cnoid::Device::sigTimeChanged ( )
inline

◆ T_local() [1/2]

Isometry3& cnoid::Device::T_local ( )
inline

◆ T_local() [2/2]

const Isometry3& cnoid::Device::T_local ( ) const
inline

◆ T_local_org()

const Isometry3& cnoid::Device::T_local_org ( ) const
inline

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