#include <denso_base.h>
Public Types | |
enum | { SRV_MIN = 0, SRV_ACT = SRV_MIN, SRV_WATCH, SRV_MAX = SRV_WATCH } |
Public Member Functions | |
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 | StartService (ros::NodeHandle &node)=0 |
virtual HRESULT | StopService () |
virtual HRESULT | TerminateBCAP () |
virtual bool | Update () |
virtual | ~DensoBase () |
Static Public Member Functions | |
static std::string | ConvertBSTRToString (const BSTR bstr) |
static BSTR | ConvertStringToBSTR (const std::string &str) |
Protected Member Functions | |
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 | |
const int * | m_mode |
boost::mutex | m_mtxSrv |
std::string | m_name |
DensoBase * | m_parent |
bool | m_serving |
Handle_Vec | m_vecHandle |
Service_Vec | m_vecService |
Definition at line 70 of file denso_base.h.
anonymous enum |
Definition at line 73 of file denso_base.h.
denso_robot_core::DensoBase::DensoBase | ( | const std::string & | name, |
const int * | mode | ||
) | [inline] |
Definition at line 85 of file denso_base.h.
denso_robot_core::DensoBase::DensoBase | ( | DensoBase * | parent, |
Service_Vec & | service, | ||
Handle_Vec & | handle, | ||
const std::string & | name, | ||
const int * | mode | ||
) | [inline] |
Definition at line 92 of file denso_base.h.
virtual denso_robot_core::DensoBase::~DensoBase | ( | ) | [inline, virtual] |
Definition at line 102 of file denso_base.h.
HRESULT denso_robot_core::DensoBase::AddObject | ( | int32_t | get_id, |
const std::string & | name, | ||
Handle_Vec & | vecHandle | ||
) | [protected] |
Definition at line 150 of file denso_base.cpp.
HRESULT denso_robot_core::DensoBase::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 |
||
) | [protected] |
HRESULT denso_robot_core::DensoBase::AddVariable | ( | int32_t | get_id, |
const XMLElement * | xmlVar, | ||
std::vector< boost::shared_ptr< class DensoVariable > > & | vecVar | ||
) | [protected] |
std::string denso_robot_core::DensoBase::ConvertBSTRToString | ( | const BSTR | bstr | ) | [static] |
Definition at line 34 of file denso_base.cpp.
BSTR denso_robot_core::DensoBase::ConvertStringToBSTR | ( | const std::string & | str | ) | [static] |
Definition at line 48 of file denso_base.cpp.
HRESULT denso_robot_core::DensoBase::get_Object | ( | const std::vector< boost::shared_ptr< DensoBase > > & | vecBase, |
int | index, | ||
boost::shared_ptr< DensoBase > * | obj | ||
) | [protected] |
HRESULT denso_robot_core::DensoBase::get_Object | ( | const std::vector< boost::shared_ptr< DensoBase > > & | vecBase, |
const std::string & | name, | ||
boost::shared_ptr< DensoBase > * | obj | ||
) | [protected] |
HRESULT denso_robot_core::DensoBase::GetObjectNames | ( | int32_t | func_id, |
Name_Vec & | vecName | ||
) | [protected] |
Definition at line 194 of file denso_base.cpp.
virtual HRESULT denso_robot_core::DensoBase::InitializeBCAP | ( | ) | [inline, virtual] |
Definition at line 107 of file denso_base.h.
const std::string& denso_robot_core::DensoBase::Name | ( | ) | const [inline] |
Definition at line 129 of file denso_base.h.
std::string denso_robot_core::DensoBase::RosName | ( | ) | const |
Definition at line 62 of file denso_base.cpp.
virtual HRESULT denso_robot_core::DensoBase::StartService | ( | ros::NodeHandle & | node | ) | [pure virtual] |
virtual HRESULT denso_robot_core::DensoBase::StopService | ( | ) | [inline, virtual] |
Reimplemented in denso_robot_core::DensoRobotRC8, denso_robot_core::DensoVariable, denso_robot_core::DensoController, denso_robot_core::DensoRobot, and denso_robot_core::DensoTask.
Definition at line 119 of file denso_base.h.
virtual HRESULT denso_robot_core::DensoBase::TerminateBCAP | ( | ) | [inline, virtual] |
Definition at line 112 of file denso_base.h.
virtual bool denso_robot_core::DensoBase::Update | ( | ) | [inline, virtual] |
Reimplemented in denso_robot_core::DensoRobotRC8, denso_robot_core::DensoVariable, denso_robot_core::DensoController, denso_robot_core::DensoRobot, and denso_robot_core::DensoTask.
Definition at line 124 of file denso_base.h.
const int* denso_robot_core::DensoBase::m_mode [protected] |
Definition at line 166 of file denso_base.h.
boost::mutex denso_robot_core::DensoBase::m_mtxSrv [protected] |
Definition at line 169 of file denso_base.h.
std::string denso_robot_core::DensoBase::m_name [protected] |
Definition at line 165 of file denso_base.h.
DensoBase* denso_robot_core::DensoBase::m_parent [protected] |
Definition at line 160 of file denso_base.h.
bool denso_robot_core::DensoBase::m_serving [protected] |
Definition at line 168 of file denso_base.h.
Handle_Vec denso_robot_core::DensoBase::m_vecHandle [protected] |
Definition at line 163 of file denso_base.h.
Service_Vec denso_robot_core::DensoBase::m_vecService [protected] |
Definition at line 162 of file denso_base.h.