Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
rc::DeviceNodelet Class Reference

#include <device_nodelet.h>

Inheritance diagram for rc::DeviceNodelet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DeviceNodelet ()
virtual void onInit ()
bool restartDynamics (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &resp)
bool startDynamics (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &resp)
bool stopDynamics (std_srvs::Trigger::Request &req, std_srvs::Trigger::Response &resp)
virtual ~DeviceNodelet ()

Private Member Functions

void grab (std::string device, rcg::Device::ACCESS access)
void initConfiguration (const std::shared_ptr< GenApi::CNodeMapRef > &nodemap, rc_visard_driver::rc_visard_driverConfig &cfg, rcg::Device::ACCESS access)
void keepAliveAndRecoverFromFails ()
void reconfigure (rc_visard_driver::rc_visard_driverConfig &config, uint32_t level)

Static Private Member Functions

static ThreadedStream::Ptr CreateDynamicsStreamOfType (rc::dynamics::RemoteInterface::Ptr rcdIface, const std::string &stream, ros::NodeHandle &nh, const std::string &frame_id_prefix, bool tfEnabled)

Private Attributes

bool autostartDynamics
bool autostopDynamics
int cntConsecutiveRecoveryFails
rc_visard_driver::rc_visard_driverConfig config
bool dev_supports_gain
bool dev_supports_wb
rc::dynamics::RemoteInterface::Ptr dynamicsInterface
 wrapper for REST-API calls relating to rc_visard's dynamics interface
ros::ServiceServer dynamicsRestartService
ros::ServiceServer dynamicsStartService
ros::ServiceServer dynamicsStopService
ThreadedStream::Manager::Ptr dynamicsStreams
std::atomic_bool imageRequested
std::atomic_bool imageSuccess
std::thread imageThread
std::atomic_uint_least32_t level
std::mutex mtx
std::shared_ptr< rcg::Devicercgdev
std::shared_ptr
< GenApi::CNodeMapRef
rcgnodemap
dynamic_reconfigure::Server
< rc_visard_driver::rc_visard_driverConfig > * 
reconfig
std::thread recoverThread
bool recoveryRequested
std::atomic_bool stopImageThread
std::atomic_bool stopRecoverThread
bool tfEnabled
 should poses published also via tf?
std::string tfPrefix
 all frame names must be prefixed when using more than one rc_visard

Detailed Description

Definition at line 57 of file device_nodelet.h.


Constructor & Destructor Documentation

Definition at line 87 of file device_nodelet.cc.

Definition at line 103 of file device_nodelet.cc.


Member Function Documentation

ThreadedStream::Ptr rc::DeviceNodelet::CreateDynamicsStreamOfType ( rc::dynamics::RemoteInterface::Ptr  rcdIface,
const std::string &  stream,
ros::NodeHandle nh,
const std::string &  frame_id_prefix,
bool  tfEnabled 
) [static, private]

Definition at line 69 of file device_nodelet.cc.

void rc::DeviceNodelet::grab ( std::string  device,
rcg::Device::ACCESS  access 
) [private]

Definition at line 683 of file device_nodelet.cc.

void rc::DeviceNodelet::initConfiguration ( const std::shared_ptr< GenApi::CNodeMapRef > &  nodemap,
rc_visard_driver::rc_visard_driverConfig &  cfg,
rcg::Device::ACCESS  access 
) [private]

Definition at line 320 of file device_nodelet.cc.

Definition at line 129 of file device_nodelet.cc.

void rc::DeviceNodelet::onInit ( ) [virtual]

Implements nodelet::Nodelet.

Definition at line 122 of file device_nodelet.cc.

void rc::DeviceNodelet::reconfigure ( rc_visard_driver::rc_visard_driverConfig &  config,
uint32_t  level 
) [private]

Definition at line 428 of file device_nodelet.cc.

bool rc::DeviceNodelet::restartDynamics ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  resp 
)

Definition at line 1033 of file device_nodelet.cc.

bool rc::DeviceNodelet::startDynamics ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  resp 
)

Definition at line 1027 of file device_nodelet.cc.

bool rc::DeviceNodelet::stopDynamics ( std_srvs::Trigger::Request &  req,
std_srvs::Trigger::Response &  resp 
)

Definition at line 1039 of file device_nodelet.cc.


Member Data Documentation

Definition at line 116 of file device_nodelet.h.

Definition at line 116 of file device_nodelet.h.

Definition at line 107 of file device_nodelet.h.

rc_visard_driver::rc_visard_driverConfig rc::DeviceNodelet::config [private]

Definition at line 98 of file device_nodelet.h.

Definition at line 91 of file device_nodelet.h.

Definition at line 92 of file device_nodelet.h.

rc::dynamics::RemoteInterface::Ptr rc::DeviceNodelet::dynamicsInterface [private]

wrapper for REST-API calls relating to rc_visard's dynamics interface

Definition at line 112 of file device_nodelet.h.

Definition at line 114 of file device_nodelet.h.

Definition at line 113 of file device_nodelet.h.

Definition at line 115 of file device_nodelet.h.

Definition at line 109 of file device_nodelet.h.

std::atomic_bool rc::DeviceNodelet::imageRequested [private]

Definition at line 102 of file device_nodelet.h.

std::atomic_bool rc::DeviceNodelet::imageSuccess [private]

Definition at line 102 of file device_nodelet.h.

std::thread rc::DeviceNodelet::imageThread [private]

Definition at line 101 of file device_nodelet.h.

std::atomic_uint_least32_t rc::DeviceNodelet::level [private]

Definition at line 99 of file device_nodelet.h.

Definition at line 97 of file device_nodelet.h.

std::shared_ptr<rcg::Device> rc::DeviceNodelet::rcgdev [private]

Definition at line 94 of file device_nodelet.h.

Definition at line 95 of file device_nodelet.h.

dynamic_reconfigure::Server<rc_visard_driver::rc_visard_driverConfig>* rc::DeviceNodelet::reconfig [private]

Definition at line 89 of file device_nodelet.h.

std::thread rc::DeviceNodelet::recoverThread [private]

Definition at line 104 of file device_nodelet.h.

Definition at line 106 of file device_nodelet.h.

std::atomic_bool rc::DeviceNodelet::stopImageThread [private]

Definition at line 102 of file device_nodelet.h.

std::atomic_bool rc::DeviceNodelet::stopRecoverThread [private]

Definition at line 105 of file device_nodelet.h.

should poses published also via tf?

Definition at line 122 of file device_nodelet.h.

std::string rc::DeviceNodelet::tfPrefix [private]

all frame names must be prefixed when using more than one rc_visard

Definition at line 119 of file device_nodelet.h.


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


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:12