Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::HolderDevice Class Reference

#include <HolderDevice.h>

Inheritance diagram for cnoid::HolderDevice:
cnoid::Device cnoid::DeviceState cnoid::ClonableReferenced cnoid::Referenced

Public Types

enum  HoldCondition { Distance, Collision, Name }
 

Public Member Functions

 HolderDevice ()
 
virtual ~HolderDevice ()
 
virtual const char * typeName () const override
 
void copyHolderDeviceStateFrom (const HolderDevice *other)
 
virtual void copyStateFrom (const DeviceState &other) override
 
virtual DeviceStatecloneState () const override
 
void copyHolderDeviceFrom (const HolderDevice *device)
 
virtual bool copyFrom (const Device *other) override
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func) override
 
virtual int stateSize () const override
 
virtual const double * readState (const double *buf) override
 
virtual double * writeState (double *out_buf) const override
 
virtual bool on () const override
 
virtual void on (bool on) override
 
std::string category () const
 
void setCategory (const std::string &category)
 
int holdCondition () const
 
void setHoldCondition (int condition)
 
double maxHoldDistance () const
 
void setMaxHoldDistance (double distance)
 
const std::string & holdTargetName () const
 
void setHoldTargetName (const std::string &name)
 
int numAttachments () const
 
AttachmentDeviceattachment (int index)
 
bool addAttachment (AttachmentDevice *attachment)
 
void removeAttachment (int index)
 
bool removeAttachment (AttachmentDevice *attachment)
 
void clearAttachments ()
 
bool readDescription (const Mapping *info)
 
bool writeDescription (Mapping *info) const
 
- Public Member Functions inherited from cnoid::Device
virtual ~Device ()
 
Deviceclone () const
 
Deviceclone (CloneMap &cloneMap) const
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
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 ()
 
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 ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 HolderDevice (const HolderDevice &org, bool copyStateOnly, CloneMap *cloneMap)
 
virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::Device
 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
 

Member Enumeration Documentation

◆ HoldCondition

Enumerator
Distance 
Collision 
Name 

Constructor & Destructor Documentation

◆ HolderDevice() [1/2]

HolderDevice::HolderDevice ( )

◆ ~HolderDevice()

HolderDevice::~HolderDevice ( )
virtual

◆ HolderDevice() [2/2]

HolderDevice::HolderDevice ( const HolderDevice org,
bool  copyStateOnly,
CloneMap cloneMap 
)
protected

Member Function Documentation

◆ addAttachment()

bool HolderDevice::addAttachment ( AttachmentDevice attachment)

◆ attachment()

AttachmentDevice * HolderDevice::attachment ( int  index)

◆ category()

std::string HolderDevice::category ( ) const

◆ clearAttachments()

void HolderDevice::clearAttachments ( )

◆ cloneState()

DeviceState * HolderDevice::cloneState ( ) const
overridevirtual

Implements cnoid::DeviceState.

◆ copyFrom()

bool HolderDevice::copyFrom ( const Device other)
overridevirtual

Reimplemented from cnoid::Device.

◆ copyHolderDeviceFrom()

void HolderDevice::copyHolderDeviceFrom ( const HolderDevice device)

◆ copyHolderDeviceStateFrom()

void HolderDevice::copyHolderDeviceStateFrom ( const HolderDevice other)

◆ copyStateFrom()

void HolderDevice::copyStateFrom ( const DeviceState other)
overridevirtual

Implements cnoid::DeviceState.

◆ doClone()

Referenced * HolderDevice::doClone ( CloneMap cloneMap) const
overrideprotectedvirtual

◆ forEachActualType()

void HolderDevice::forEachActualType ( std::function< bool(const std::type_info &type)>  func)
overridevirtual

Reimplemented from cnoid::Device.

◆ holdCondition()

int HolderDevice::holdCondition ( ) const

◆ holdTargetName()

const std::string & HolderDevice::holdTargetName ( ) const

◆ maxHoldDistance()

double HolderDevice::maxHoldDistance ( ) const

◆ numAttachments()

int HolderDevice::numAttachments ( ) const

◆ on() [1/2]

bool HolderDevice::on ( ) const
overridevirtual

Reimplemented from cnoid::Device.

◆ on() [2/2]

void HolderDevice::on ( bool  on)
overridevirtual

Reimplemented from cnoid::Device.

◆ readDescription()

bool HolderDevice::readDescription ( const Mapping info)

◆ readState()

const double * HolderDevice::readState ( const double *  buf)
overridevirtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implements cnoid::DeviceState.

◆ removeAttachment() [1/2]

bool HolderDevice::removeAttachment ( AttachmentDevice attachment)

◆ removeAttachment() [2/2]

void HolderDevice::removeAttachment ( int  index)

◆ setCategory()

void HolderDevice::setCategory ( const std::string &  category)

◆ setHoldCondition()

void HolderDevice::setHoldCondition ( int  condition)

◆ setHoldTargetName()

void HolderDevice::setHoldTargetName ( const std::string &  name)

◆ setMaxHoldDistance()

void HolderDevice::setMaxHoldDistance ( double  distance)

◆ stateSize()

int HolderDevice::stateSize ( ) const
overridevirtual

Size of the double-precision floating numbers for representing the state.

Implements cnoid::DeviceState.

◆ typeName()

const char * HolderDevice::typeName ( ) const
overridevirtual

Implements cnoid::DeviceState.

◆ writeDescription()

bool HolderDevice::writeDescription ( Mapping info) const

◆ writeState()

double * HolderDevice::writeState ( double *  out_buf) const
overridevirtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implements cnoid::DeviceState.


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