Public Member Functions | Private Member Functions | Private Attributes | List of all members
denso_robot_core::DensoVariable Class Reference

#include <denso_variable.h>

Inheritance diagram for denso_robot_core::DensoVariable:
Inheritance graph
[legend]

Public Member Functions

 DensoVariable (DensoBase *parent, Service_Vec &service, Handle_Vec &handle, const std::string &name, const int *mode, int16_t vt, bool Read, bool Write, bool ID, int Duration)
 
HRESULT ExecGetValue (VARIANT_Ptr &value)
 
HRESULT ExecPutID (const int id)
 
HRESULT ExecPutValue (const VARIANT_Ptr &value)
 
HRESULT StartService (ros::NodeHandle &node)
 
HRESULT StopService ()
 
bool Update ()
 
virtual ~DensoVariable ()
 
- Public Member Functions inherited from denso_robot_core::DensoBase
 DensoBase (const std::string &name, const int *mode)
 
 DensoBase (DensoBase *parent, Service_Vec &service, Handle_Vec &handle, const std::string &name, const int *mode)
 
virtual HRESULT InitializeBCAP ()
 
const std::string & Name () const
 
std::string RosName () const
 
virtual HRESULT TerminateBCAP ()
 
virtual ~DensoBase ()
 

Private Member Functions

void Callback_Bool (const Bool::ConstPtr &msg)
 
void Callback_F32 (const Float32::ConstPtr &msg)
 
void Callback_F32Array (const Float32MultiArray::ConstPtr &msg)
 
void Callback_F64 (const Float64::ConstPtr &msg)
 
void Callback_F64Array (const Float64MultiArray::ConstPtr &msg)
 
void Callback_I32 (const Int32::ConstPtr &msg)
 
void Callback_ID (const Int32::ConstPtr &msg)
 
void Callback_String (const String::ConstPtr &msg)
 

Private Attributes

bool m_bID
 
bool m_bRead
 
bool m_bWrite
 
ros::Duration m_Duration
 
ros::Time m_pubTimePrev
 
ros::Publisher m_pubValue
 
ros::Subscriber m_subID
 
ros::Subscriber m_subValue
 
int16_t m_vt
 

Additional Inherited Members

- Public Types inherited from denso_robot_core::DensoBase
enum  { SRV_MIN = 0, SRV_ACT = SRV_MIN, SRV_WATCH, SRV_MAX = SRV_WATCH }
 
- Static Public Member Functions inherited from denso_robot_core::DensoBase
static std::string ConvertBSTRToString (const BSTR bstr)
 
static BSTR ConvertStringToBSTR (const std::string &str)
 
- Protected Member Functions inherited from denso_robot_core::DensoBase
HRESULT AddObject (int32_t get_id, const std::string &name, Handle_Vec &vecHandle)
 
HRESULT AddVariable (int32_t get_id, const std::string &name, std::vector< boost::shared_ptr< class DensoVariable > > &vecVar, int16_t vt=VT_EMPTY, bool bRead=false, bool bWrite=false, bool bID=false, int iDuration=BCAP_VAR_DEFAULT_DURATION)
 
HRESULT AddVariable (int32_t get_id, const XMLElement *xmlVar, std::vector< boost::shared_ptr< class DensoVariable > > &vecVar)
 
HRESULT get_Object (const std::vector< boost::shared_ptr< DensoBase > > &vecBase, int index, boost::shared_ptr< DensoBase > *obj)
 
HRESULT get_Object (const std::vector< boost::shared_ptr< DensoBase > > &vecBase, const std::string &name, boost::shared_ptr< DensoBase > *obj)
 
HRESULT GetObjectNames (int32_t func_id, Name_Vec &vecName)
 
- Protected Attributes inherited from denso_robot_core::DensoBase
const int * m_mode
 
boost::mutex m_mtxSrv
 
std::string m_name
 
DensoBasem_parent
 
bool m_serving
 
Handle_Vec m_vecHandle
 
Service_Vec m_vecService
 

Detailed Description

Definition at line 40 of file denso_variable.h.

Constructor & Destructor Documentation

denso_robot_core::DensoVariable::DensoVariable ( DensoBase parent,
Service_Vec service,
Handle_Vec handle,
const std::string &  name,
const int *  mode,
int16_t  vt,
bool  Read,
bool  Write,
bool  ID,
int  Duration 
)

Definition at line 33 of file denso_variable.cpp.

denso_robot_core::DensoVariable::~DensoVariable ( )
virtual

Definition at line 44 of file denso_variable.cpp.

Member Function Documentation

void denso_robot_core::DensoVariable::Callback_Bool ( const Bool::ConstPtr &  msg)
private

Definition at line 341 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_F32 ( const Float32::ConstPtr &  msg)
private

Definition at line 314 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_F32Array ( const Float32MultiArray::ConstPtr &  msg)
private

Definition at line 350 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_F64 ( const Float64::ConstPtr &  msg)
private

Definition at line 323 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_F64Array ( const Float64MultiArray::ConstPtr &  msg)
private

Definition at line 365 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_I32 ( const Int32::ConstPtr &  msg)
private

Definition at line 305 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_ID ( const Int32::ConstPtr &  msg)
private

Definition at line 380 of file denso_variable.cpp.

void denso_robot_core::DensoVariable::Callback_String ( const String::ConstPtr &  msg)
private

Definition at line 332 of file denso_variable.cpp.

HRESULT denso_robot_core::DensoVariable::ExecGetValue ( VARIANT_Ptr value)

Definition at line 234 of file denso_variable.cpp.

HRESULT denso_robot_core::DensoVariable::ExecPutID ( const int  id)

Definition at line 276 of file denso_variable.cpp.

HRESULT denso_robot_core::DensoVariable::ExecPutValue ( const VARIANT_Ptr value)

Definition at line 250 of file denso_variable.cpp.

HRESULT denso_robot_core::DensoVariable::StartService ( ros::NodeHandle node)
virtual

Implements denso_robot_core::DensoBase.

Definition at line 49 of file denso_variable.cpp.

HRESULT denso_robot_core::DensoVariable::StopService ( )
virtual

Reimplemented from denso_robot_core::DensoBase.

Definition at line 148 of file denso_variable.cpp.

bool denso_robot_core::DensoVariable::Update ( )
virtual

Reimplemented from denso_robot_core::DensoBase.

Definition at line 160 of file denso_variable.cpp.

Member Data Documentation

bool denso_robot_core::DensoVariable::m_bID
private

Definition at line 74 of file denso_variable.h.

bool denso_robot_core::DensoVariable::m_bRead
private

Definition at line 72 of file denso_variable.h.

bool denso_robot_core::DensoVariable::m_bWrite
private

Definition at line 73 of file denso_variable.h.

ros::Duration denso_robot_core::DensoVariable::m_Duration
private

Definition at line 75 of file denso_variable.h.

ros::Time denso_robot_core::DensoVariable::m_pubTimePrev
private

Definition at line 76 of file denso_variable.h.

ros::Publisher denso_robot_core::DensoVariable::m_pubValue
private

Definition at line 77 of file denso_variable.h.

ros::Subscriber denso_robot_core::DensoVariable::m_subID
private

Definition at line 79 of file denso_variable.h.

ros::Subscriber denso_robot_core::DensoVariable::m_subValue
private

Definition at line 78 of file denso_variable.h.

int16_t denso_robot_core::DensoVariable::m_vt
private

Definition at line 71 of file denso_variable.h.


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


denso_robot_core
Author(s): DENSO WAVE INCORPORATED
autogenerated on Mon Jun 10 2019 13:12:28