Public Member Functions | Private Member Functions | Private Attributes | List of all members
LaserscanPublisher Class Reference

#include <laser_scan_publisher.h>

Inheritance diagram for LaserscanPublisher:
Inheritance graph
[legend]

Public Member Functions

 LaserscanPublisher (std::shared_ptr< ScanConfig > config, std::shared_ptr< ScanParameters > params, const std::string &scan_topic, const std::string &frame_id)
 
- Public Member Functions inherited from PFDataPublisher
 PFDataPublisher (std::shared_ptr< ScanConfig > config, std::shared_ptr< ScanParameters > params)
 
virtual void read (PFR2000Packet_A &packet)
 
virtual void read (PFR2000Packet_B &packet)
 
virtual void read (PFR2000Packet_C &packet)
 
virtual void read (PFR2300Packet_C1 &packet)
 
virtual bool start ()
 
virtual bool stop ()
 
- Public Member Functions inherited from PFPacketReader
virtual void read (std::shared_ptr< PFPacket > packet)
 
- Public Member Functions inherited from Reader< PFPacket >
virtual void set_scan_params (ScanParameters params)
 
virtual void set_scanoutput_config (ScanConfig config)
 

Private Member Functions

virtual void handle_scan (sensor_msgs::LaserScanPtr msg, uint16_t layer_idx, int layer_inclination, bool apply_correction)
 
void publish_scan (sensor_msgs::LaserScanPtr msg)
 

Private Attributes

ros::Publisher scan_publisher_
 

Additional Inherited Members

- Protected Member Functions inherited from PFDataPublisher
bool check_status (uint32_t status_flags)
 
virtual void resetCurrentScans ()
 
template<typename T >
void to_msg_queue (T &packet, uint16_t layer_idx=0, int layer_inclination=0)
 
- Protected Attributes inherited from PFDataPublisher
std::shared_ptr< ScanConfigconfig_
 
std::deque< sensor_msgs::LaserScanPtr > d_queue_
 
std::string frame_id_
 
ros::Publisher header_publisher_
 
ros::NodeHandle nh_
 
std::shared_ptr< ScanParametersparams_
 
std::mutex q_mutex_
 

Detailed Description

Definition at line 5 of file laser_scan_publisher.h.

Constructor & Destructor Documentation

◆ LaserscanPublisher()

LaserscanPublisher::LaserscanPublisher ( std::shared_ptr< ScanConfig config,
std::shared_ptr< ScanParameters params,
const std::string &  scan_topic,
const std::string &  frame_id 
)

Definition at line 5 of file laser_scan_publisher.cpp.

Member Function Documentation

◆ handle_scan()

void LaserscanPublisher::handle_scan ( sensor_msgs::LaserScanPtr  msg,
uint16_t  layer_idx,
int  layer_inclination,
bool  apply_correction 
)
privatevirtual

Implements PFDataPublisher.

Definition at line 14 of file laser_scan_publisher.cpp.

◆ publish_scan()

void LaserscanPublisher::publish_scan ( sensor_msgs::LaserScanPtr  msg)
private

Definition at line 20 of file laser_scan_publisher.cpp.

Member Data Documentation

◆ scan_publisher_

ros::Publisher LaserscanPublisher::scan_publisher_
private

Definition at line 12 of file laser_scan_publisher.h.


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


pf_driver
Author(s): Harsh Deshpande
autogenerated on Fri Feb 24 2023 03:59:35