Public Member Functions | Private Member Functions | Private Attributes | List of all members
velodyne_driver::VelodyneDriver Class Reference

#include <driver.h>

Public Member Functions

bool poll (void)
 
 VelodyneDriver (ros::NodeHandle node, ros::NodeHandle private_nh, std::string const &node_name=ros::this_node::getName())
 
 ~VelodyneDriver ()
 

Private Member Functions

void callback (velodyne_driver::VelodyneNodeConfig &config, uint32_t level)
 
void diagTimerCallback (const ros::TimerEvent &event)
 

Private Attributes

struct {
   int   cut_angle
 
   bool   enabled
 
   std::string   frame_id
 
   std::string   model
 
   int   npackets
 
   double   rpm
 
   double   time_offset
 
   bool   timestamp_first_packet
 
config_
 
double diag_max_freq_
 
double diag_min_freq_
 
ros::Timer diag_timer_
 
boost::shared_ptr< diagnostic_updater::TopicDiagnosticdiag_topic_
 
diagnostic_updater::Updater diagnostics_
 
boost::shared_ptr< Inputinput_
 
int last_azimuth_
 
ros::Publisher output_
 
boost::shared_ptr< dynamic_reconfigure::Server< velodyne_driver::VelodyneNodeConfig > > srv_
 

Detailed Description

Definition at line 48 of file driver.h.

Constructor & Destructor Documentation

◆ VelodyneDriver()

velodyne_driver::VelodyneDriver::VelodyneDriver ( ros::NodeHandle  node,
ros::NodeHandle  private_nh,
std::string const &  node_name = ros::this_node::getName() 
)

Definition at line 50 of file driver.cc.

◆ ~VelodyneDriver()

velodyne_driver::VelodyneDriver::~VelodyneDriver ( )
inline

Definition at line 54 of file driver.h.

Member Function Documentation

◆ callback()

void velodyne_driver::VelodyneDriver::callback ( velodyne_driver::VelodyneNodeConfig &  config,
uint32_t  level 
)
private

Definition at line 276 of file driver.cc.

◆ diagTimerCallback()

void velodyne_driver::VelodyneDriver::diagTimerCallback ( const ros::TimerEvent event)
private

Definition at line 290 of file driver.cc.

◆ poll()

bool velodyne_driver::VelodyneDriver::poll ( void  )

poll the device

Returns
true unless end of file reached

Definition at line 195 of file driver.cc.

Member Data Documentation

◆ config_

struct { ... } velodyne_driver::VelodyneDriver::config_

◆ cut_angle

int velodyne_driver::VelodyneDriver::cut_angle

Definition at line 76 of file driver.h.

◆ diag_max_freq_

double velodyne_driver::VelodyneDriver::diag_max_freq_
private

Definition at line 91 of file driver.h.

◆ diag_min_freq_

double velodyne_driver::VelodyneDriver::diag_min_freq_
private

Definition at line 90 of file driver.h.

◆ diag_timer_

ros::Timer velodyne_driver::VelodyneDriver::diag_timer_
private

Definition at line 88 of file driver.h.

◆ diag_topic_

boost::shared_ptr<diagnostic_updater::TopicDiagnostic> velodyne_driver::VelodyneDriver::diag_topic_
private

Definition at line 92 of file driver.h.

◆ diagnostics_

diagnostic_updater::Updater velodyne_driver::VelodyneDriver::diagnostics_
private

Definition at line 89 of file driver.h.

◆ enabled

bool velodyne_driver::VelodyneDriver::enabled

Definition at line 78 of file driver.h.

◆ frame_id

std::string velodyne_driver::VelodyneDriver::frame_id

Definition at line 72 of file driver.h.

◆ input_

boost::shared_ptr<Input> velodyne_driver::VelodyneDriver::input_
private

Definition at line 83 of file driver.h.

◆ last_azimuth_

int velodyne_driver::VelodyneDriver::last_azimuth_
private

Definition at line 85 of file driver.h.

◆ model

std::string velodyne_driver::VelodyneDriver::model

Definition at line 73 of file driver.h.

◆ npackets

int velodyne_driver::VelodyneDriver::npackets

Definition at line 74 of file driver.h.

◆ output_

ros::Publisher velodyne_driver::VelodyneDriver::output_
private

Definition at line 84 of file driver.h.

◆ rpm

double velodyne_driver::VelodyneDriver::rpm

Definition at line 75 of file driver.h.

◆ srv_

boost::shared_ptr<dynamic_reconfigure::Server<velodyne_driver:: VelodyneNodeConfig> > velodyne_driver::VelodyneDriver::srv_
private

Definition at line 67 of file driver.h.

◆ time_offset

double velodyne_driver::VelodyneDriver::time_offset

Definition at line 77 of file driver.h.

◆ timestamp_first_packet

bool velodyne_driver::VelodyneDriver::timestamp_first_packet

Definition at line 79 of file driver.h.


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


velodyne_driver
Author(s): Jack O'Quin, Patrick Beeson, Michael Quinlan, Yaxin Liu
autogenerated on Tue Mar 1 2022 00:02:01