Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
realsense2_camera::RealSenseNodeFactory Class Reference

#include <realsense_node_factory.h>

Inheritance diagram for realsense2_camera::RealSenseNodeFactory:
Inheritance graph
[legend]

Public Member Functions

 RealSenseNodeFactory ()
 
virtual ~RealSenseNodeFactory ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Private Member Functions

void change_device_callback (rs2::event_information &info)
 
void closeDevice ()
 
void getDevice (rs2::device_list list)
 
bool handleReset (std_srvs::Empty::Request &request, std_srvs::Empty::Response &response)
 
void initialize (const ros::WallTimerEvent &ignored)
 
virtual void onInit () override
 
void reset ()
 
void StartDevice ()
 
bool toggle_sensor_callback (std_srvs::SetBool::Request &req, std_srvs::SetBool::Response &res)
 
void tryGetLogSeverity (rs2_log_severity &severity) const
 

Static Private Member Functions

static std::string parse_usb_port (std::string line)
 

Private Attributes

rs2::context _ctx
 
rs2::device _device
 
std::string _device_type
 
ros::WallTimer _init_timer
 
bool _initial_reset
 
bool _is_alive
 
std::thread _query_thread
 
std::shared_ptr< InterfaceRealSenseNode_realSenseNode
 
ros::ServiceServer _reset_srv
 
std::string _serial_no
 
std::string _usb_port_id
 
ros::ServiceServer toggle_sensor_srv
 

Additional Inherited Members

- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::stringgetName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Detailed Description

Definition at line 57 of file realsense_node_factory.h.

Constructor & Destructor Documentation

RealSenseNodeFactory::RealSenseNodeFactory ( )

Definition at line 32 of file realsense_node_factory.cpp.

RealSenseNodeFactory::~RealSenseNodeFactory ( )
virtual

Definition at line 56 of file realsense_node_factory.cpp.

Member Function Documentation

void RealSenseNodeFactory::change_device_callback ( rs2::event_information info)
private

Definition at line 220 of file realsense_node_factory.cpp.

void realsense2_camera::RealSenseNodeFactory::closeDevice ( )
private
void RealSenseNodeFactory::getDevice ( rs2::device_list  list)
private

Definition at line 87 of file realsense_node_factory.cpp.

bool RealSenseNodeFactory::handleReset ( std_srvs::Empty::Request &  request,
std_srvs::Empty::Response &  response 
)
private

Definition at line 402 of file realsense_node_factory.cpp.

void RealSenseNodeFactory::initialize ( const ros::WallTimerEvent ignored)
private

Definition at line 246 of file realsense_node_factory.cpp.

void RealSenseNodeFactory::onInit ( )
overrideprivatevirtual

Implements nodelet::Nodelet.

Definition at line 240 of file realsense_node_factory.cpp.

std::string RealSenseNodeFactory::parse_usb_port ( std::string  line)
staticprivate

Definition at line 65 of file realsense_node_factory.cpp.

void RealSenseNodeFactory::reset ( void  )
private

Definition at line 377 of file realsense_node_factory.cpp.

void RealSenseNodeFactory::StartDevice ( )
private

Definition at line 327 of file realsense_node_factory.cpp.

bool RealSenseNodeFactory::toggle_sensor_callback ( std_srvs::SetBool::Request &  req,
std_srvs::SetBool::Response &  res 
)
private

Definition at line 229 of file realsense_node_factory.cpp.

void RealSenseNodeFactory::tryGetLogSeverity ( rs2_log_severity severity) const
private

Definition at line 408 of file realsense_node_factory.cpp.

Member Data Documentation

rs2::context realsense2_camera::RealSenseNodeFactory::_ctx
private

Definition at line 78 of file realsense_node_factory.h.

rs2::device realsense2_camera::RealSenseNodeFactory::_device
private

Definition at line 76 of file realsense_node_factory.h.

std::string realsense2_camera::RealSenseNodeFactory::_device_type
private

Definition at line 81 of file realsense_node_factory.h.

ros::WallTimer realsense2_camera::RealSenseNodeFactory::_init_timer
private

Definition at line 86 of file realsense_node_factory.h.

bool realsense2_camera::RealSenseNodeFactory::_initial_reset
private

Definition at line 82 of file realsense_node_factory.h.

bool realsense2_camera::RealSenseNodeFactory::_is_alive
private

Definition at line 84 of file realsense_node_factory.h.

std::thread realsense2_camera::RealSenseNodeFactory::_query_thread
private

Definition at line 83 of file realsense_node_factory.h.

std::shared_ptr<InterfaceRealSenseNode> realsense2_camera::RealSenseNodeFactory::_realSenseNode
private

Definition at line 77 of file realsense_node_factory.h.

ros::ServiceServer realsense2_camera::RealSenseNodeFactory::_reset_srv
private

Definition at line 87 of file realsense_node_factory.h.

std::string realsense2_camera::RealSenseNodeFactory::_serial_no
private

Definition at line 79 of file realsense_node_factory.h.

std::string realsense2_camera::RealSenseNodeFactory::_usb_port_id
private

Definition at line 80 of file realsense_node_factory.h.

ros::ServiceServer realsense2_camera::RealSenseNodeFactory::toggle_sensor_srv
private

Definition at line 85 of file realsense_node_factory.h.


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


realsense2_camera
Author(s): Sergey Dorodnicov , Doron Hirshberg
autogenerated on Thu May 13 2021 02:33:12