Public Member Functions | Private Member Functions | Private Attributes | List of all members
rslidar_driver::rslidarDriver Class Reference

#include <rsdriver.h>

Public Member Functions

void difopPoll (void)
 
bool poll (void)
 
 rslidarDriver (ros::NodeHandle node, ros::NodeHandle private_nh)
 rslidarDriver More...
 
 ~rslidarDriver ()
 

Private Member Functions

void callback (rslidar_driver::rslidarNodeConfig &config, uint32_t level)
 Callback for dynamic reconfigure. More...
 

Private Attributes

struct {
   int   cut_angle
 
   std::string   frame_id
 tf frame ID More...
 
   std::string   model
 device model name More...
 
   int   npackets
 number of packets to collect More...
 
   double   rpm
 device rotation rate (RPMs) More...
 
   double   time_offset
 time in seconds added to each time stamp More...
 
config_
 
double diag_max_freq_
 
double diag_min_freq_
 
boost::shared_ptr< diagnostic_updater::TopicDiagnosticdiag_topic_
 
diagnostic_updater::Updater diagnostics_
 
boost::shared_ptr< Inputdifop_input_
 
ros::Publisher difop_output_
 
boost::shared_ptr< boost::thread > difop_thread_
 
boost::shared_ptr< Inputmsop_input_
 
ros::Publisher msop_output_
 
boost::shared_ptr< dynamic_reconfigure::Server< rslidar_driver::rslidarNodeConfig > > srv_
 Pointer to dynamic reconfigure service srv_. More...
 

Detailed Description

Definition at line 68 of file rsdriver.h.

Constructor & Destructor Documentation

rslidar_driver::rslidarDriver::rslidarDriver ( ros::NodeHandle  node,
ros::NodeHandle  private_nh 
)

rslidarDriver

Parameters
noderaw packet output topic
private_nh通过这个节点传参数

Definition at line 56 of file rsdriver.cpp.

rslidar_driver::rslidarDriver::~rslidarDriver ( )
inline

Definition at line 78 of file rsdriver.h.

Member Function Documentation

void rslidar_driver::rslidarDriver::callback ( rslidar_driver::rslidarNodeConfig &  config,
uint32_t  level 
)
private

Callback for dynamic reconfigure.

Definition at line 266 of file rsdriver.cpp.

void rslidar_driver::rslidarDriver::difopPoll ( void  )

Definition at line 244 of file rsdriver.cpp.

bool rslidar_driver::rslidarDriver::poll ( void  )

poll the device

Returns
true unless end of file reached

Definition at line 171 of file rsdriver.cpp.

Member Data Documentation

struct { ... } rslidar_driver::rslidarDriver::config_
int rslidar_driver::rslidarDriver::cut_angle

Definition at line 100 of file rsdriver.h.

double rslidar_driver::rslidarDriver::diag_max_freq_
private

Definition at line 111 of file rsdriver.h.

double rslidar_driver::rslidarDriver::diag_min_freq_
private

Definition at line 110 of file rsdriver.h.

boost::shared_ptr<diagnostic_updater::TopicDiagnostic> rslidar_driver::rslidarDriver::diag_topic_
private

Definition at line 112 of file rsdriver.h.

diagnostic_updater::Updater rslidar_driver::rslidarDriver::diagnostics_
private

diagnostics updater

Definition at line 109 of file rsdriver.h.

boost::shared_ptr<Input> rslidar_driver::rslidarDriver::difop_input_
private

Definition at line 104 of file rsdriver.h.

ros::Publisher rslidar_driver::rslidarDriver::difop_output_
private

Definition at line 106 of file rsdriver.h.

boost::shared_ptr<boost::thread> rslidar_driver::rslidarDriver::difop_thread_
private

Definition at line 113 of file rsdriver.h.

std::string rslidar_driver::rslidarDriver::frame_id

tf frame ID

Definition at line 95 of file rsdriver.h.

std::string rslidar_driver::rslidarDriver::model

device model name

Definition at line 96 of file rsdriver.h.

boost::shared_ptr<Input> rslidar_driver::rslidarDriver::msop_input_
private

Definition at line 103 of file rsdriver.h.

ros::Publisher rslidar_driver::rslidarDriver::msop_output_
private

Definition at line 105 of file rsdriver.h.

int rslidar_driver::rslidarDriver::npackets

number of packets to collect

Definition at line 97 of file rsdriver.h.

double rslidar_driver::rslidarDriver::rpm

device rotation rate (RPMs)

Definition at line 98 of file rsdriver.h.

boost::shared_ptr<dynamic_reconfigure::Server<rslidar_driver::rslidarNodeConfig> > rslidar_driver::rslidarDriver::srv_
private

Pointer to dynamic reconfigure service srv_.

Definition at line 90 of file rsdriver.h.

double rslidar_driver::rslidarDriver::time_offset

time in seconds added to each time stamp

Definition at line 99 of file rsdriver.h.


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


rslidar_driver
Author(s): Tony Zhang , Tony Zhang
autogenerated on Mon Jun 10 2019 14:41:07