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

#include <RangeCamera.h>

Inheritance diagram for cnoid::RangeCamera:
cnoid::Camera cnoid::Device cnoid::DeviceState cnoid::ClonableReferenced cnoid::Referenced

Public Types

typedef std::vector< Vector3f > PointData
 
- Public Types inherited from cnoid::Camera
enum  ImageType { NO_IMAGE, COLOR_IMAGE, GRAYSCALE_IMAGE }
 
enum  LensType { NORMAL_LENS, FISHEYE_LENS, DUAL_FISHEYE_LENS }
 

Public Member Functions

 RangeCamera ()
 
 RangeCamera (const RangeCamera &org, bool copyStateOnly=false)
 
virtual const char * typeName () const override
 
void copyStateFrom (const RangeCamera &other)
 
virtual void copyStateFrom (const DeviceState &other) override
 
virtual DeviceStatecloneState () const override
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func) override
 
virtual void clearState () override
 
int numPoints () const
 
const PointDatapoints () const
 
const PointDataconstPoints () const
 
PointDatapoints ()
 
PointDatanewPoints ()
 
double maxDistance () const
 
void setMaxDistance (double d)
 
double minDistance () const
 
void setMinDistance (double d)
 
bool isOrganized () const
 
void setOrganized (bool on)
 
bool isDense () const
 
void setDense (bool on)
 
std::shared_ptr< const PointDatasharedPoints () const
 
void setPoints (std::shared_ptr< PointData > &points)
 
void clearPoints ()
 
bool readSpecifications (const Mapping *info)
 
bool writeSpecifications (Mapping *info) const
 
- Public Member Functions inherited from cnoid::Camera
 Camera ()
 
 Camera (const Camera &org, bool copyStateOnly=false)
 
void copyStateFrom (const Camera &other)
 
void setImageStateClonable (bool on)
 
bool isImageStateClonable () const
 
ImageType imageType () const
 
void setImageType (ImageType type)
 
LensType lensType () const
 
void setLensType (LensType type)
 
virtual bool on () const override
 
virtual void on (bool on) override
 
double nearClipDistance () const
 
void setNearClipDistance (double d)
 
double farClipDistance () const
 
void setFarClipDistance (double d)
 
double fieldOfView () const
 
void setFieldOfView (double f)
 
void setResolution (int x, int y)
 
void setResolutionX (int x)
 
void setResolutionY (int y)
 
int resolutionX () const
 
int resolutionY () const
 
void setFrameRate (double r)
 
double frameRate () const
 
const Imageimage () const
 
const ImageconstImage () const
 
Imageimage ()
 
ImagenewImage ()
 
std::shared_ptr< const ImagesharedImage () const
 
void setImage (std::shared_ptr< Image > &image)
 
void clearImage ()
 
double delay () const
 
void setDelay (double time)
 
virtual int stateSize () const override
 
virtual const double * readState (const double *buf) override
 
virtual double * writeState (double *out_buf) const override
 
bool readSpecifications (const Mapping *info)
 
bool writeSpecifications (Mapping *info) const
 
- Public Member Functions inherited from cnoid::Device
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)
 
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)
 
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

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 Typedef Documentation

◆ PointData

typedef std::vector<Vector3f> cnoid::RangeCamera::PointData

Constructor & Destructor Documentation

◆ RangeCamera() [1/2]

RangeCamera::RangeCamera ( )

◆ RangeCamera() [2/2]

RangeCamera::RangeCamera ( const RangeCamera org,
bool  copyStateOnly = false 
)

Member Function Documentation

◆ clearPoints()

void RangeCamera::clearPoints ( )

◆ clearState()

void RangeCamera::clearState ( )
overridevirtual

Reimplemented from cnoid::Camera.

◆ cloneState()

DeviceState * RangeCamera::cloneState ( ) const
overridevirtual

Reimplemented from cnoid::Camera.

◆ constPoints()

const PointData& cnoid::RangeCamera::constPoints ( ) const
inline

◆ copyStateFrom() [1/2]

void RangeCamera::copyStateFrom ( const DeviceState other)
overridevirtual

Reimplemented from cnoid::Camera.

◆ copyStateFrom() [2/2]

void RangeCamera::copyStateFrom ( const RangeCamera other)

◆ doClone()

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

Reimplemented from cnoid::Camera.

◆ forEachActualType()

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

Reimplemented from cnoid::Camera.

◆ isDense()

bool cnoid::RangeCamera::isDense ( ) const
inline

◆ isOrganized()

bool cnoid::RangeCamera::isOrganized ( ) const
inline

◆ maxDistance()

double cnoid::RangeCamera::maxDistance ( ) const
inline

The maximum measurable distance of the depth measurement. Note that this parameter is different from the far clip distance, which affects the camera image. Note also that it does not currently work with the depth image simulation by GLVisionSimulator.

◆ minDistance()

double cnoid::RangeCamera::minDistance ( ) const
inline

The minimum measurable distance of the depth measurement. The same notes as for the maxDistance parameter apply to this parameter.

◆ newPoints()

RangeCamera::PointData & RangeCamera::newPoints ( )

◆ numPoints()

int cnoid::RangeCamera::numPoints ( ) const
inline

◆ points() [1/2]

PointData& cnoid::RangeCamera::points ( )

◆ points() [2/2]

RangeCamera::PointData & RangeCamera::points ( ) const
inline

◆ readSpecifications()

bool RangeCamera::readSpecifications ( const Mapping info)

◆ setDense()

void cnoid::RangeCamera::setDense ( bool  on)
inline

◆ setMaxDistance()

void cnoid::RangeCamera::setMaxDistance ( double  d)
inline

◆ setMinDistance()

void cnoid::RangeCamera::setMinDistance ( double  d)
inline

◆ setOrganized()

void RangeCamera::setOrganized ( bool  on)

◆ setPoints()

void RangeCamera::setPoints ( std::shared_ptr< PointData > &  points)

Move semantics. If the use_count() of the given shared point data pointer is one, the data is moved to the Camera object and the ownership of the given pointer is released. Otherwise, the data is copied.

◆ sharedPoints()

std::shared_ptr<const PointData> cnoid::RangeCamera::sharedPoints ( ) const
inline

◆ typeName()

const char * RangeCamera::typeName ( ) const
overridevirtual

Reimplemented from cnoid::Camera.

◆ writeSpecifications()

bool RangeCamera::writeSpecifications ( Mapping info) const

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