Choreonoid
1.8
|
#include <RangeCamera.h>
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 DeviceState * | cloneState () const override |
virtual void | forEachActualType (std::function< bool(const std::type_info &type)> func) override |
virtual void | clearState () override |
int | numPoints () const |
const PointData & | points () const |
const PointData & | constPoints () const |
PointData & | points () |
PointData & | newPoints () |
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 PointData > | sharedPoints () 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 Image & | image () const |
const Image & | constImage () const |
Image & | image () |
Image & | newImage () |
std::shared_ptr< const Image > | sharedImage () 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 () |
Device * | clone () const |
Device * | clone (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 Link * | link () const |
Link * | link () |
const Body * | body () const |
Body * | body () |
Isometry3 & | T_local () |
const Isometry3 & | T_local () const |
const Isometry3 & | localPosition () 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 Isometry3 & | T_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 Referenced * | doClone (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 |
typedef std::vector<Vector3f> cnoid::RangeCamera::PointData |
RangeCamera::RangeCamera | ( | ) |
RangeCamera::RangeCamera | ( | const RangeCamera & | org, |
bool | copyStateOnly = false |
||
) |
void RangeCamera::clearPoints | ( | ) |
|
overridevirtual |
Reimplemented from cnoid::Camera.
|
overridevirtual |
Reimplemented from cnoid::Camera.
|
inline |
|
overridevirtual |
Reimplemented from cnoid::Camera.
void RangeCamera::copyStateFrom | ( | const RangeCamera & | other | ) |
|
overrideprotectedvirtual |
Reimplemented from cnoid::Camera.
|
overridevirtual |
Reimplemented from cnoid::Camera.
|
inline |
|
inline |
|
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.
|
inline |
The minimum measurable distance of the depth measurement. The same notes as for the maxDistance parameter apply to this parameter.
RangeCamera::PointData & RangeCamera::newPoints | ( | ) |
|
inline |
PointData& cnoid::RangeCamera::points | ( | ) |
|
inline |
bool RangeCamera::readSpecifications | ( | const Mapping * | info | ) |
|
inline |
|
inline |
|
inline |
void RangeCamera::setOrganized | ( | bool | on | ) |
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.
|
inline |
|
overridevirtual |
Reimplemented from cnoid::Camera.
bool RangeCamera::writeSpecifications | ( | Mapping * | info | ) | const |