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

#include <laser_plugin.h>

Inheritance diagram for LaserPlugin:
Inheritance graph
[legend]

Public Member Functions

void initialize (ed::InitData &init)
 
 LaserPlugin ()
 
void process (const ed::WorldModel &world, ed::UpdateRequest &req)
 
virtual ~LaserPlugin ()
 
- Public Member Functions inherited from ed::Plugin
virtual void configure (tue::Configuration)
 
virtual void initialize ()
 
const std::stringname () const
 
virtual void process (const PluginInput &, UpdateRequest &)
 
virtual ~Plugin ()
 

Private Member Functions

void scanCallback (const sensor_msgs::LaserScan::ConstPtr &msg)
 
void update (const ed::WorldModel &world, const sensor_msgs::LaserScan::ConstPtr &scan, const geo::Pose3D &sensor_pose, ed::UpdateRequest &req)
 Update the worldmodel based on a novel laserscan message. More...
 

Private Attributes

ros::CallbackQueue cb_queue_
 
std::queue< sensor_msgs::LaserScan::ConstPtr > scan_buffer_
 
ros::Subscriber sub_scan_
 
LaserUpdater updater_
 

Additional Inherited Members

- Protected Attributes inherited from ed::Plugin
TFBufferConstPtr tf_buffer_
 

Detailed Description

Definition at line 19 of file laser_plugin.h.

Constructor & Destructor Documentation

◆ LaserPlugin()

LaserPlugin::LaserPlugin ( )

Definition at line 48 of file laser_plugin.cpp.

◆ ~LaserPlugin()

LaserPlugin::~LaserPlugin ( )
virtual

Definition at line 52 of file laser_plugin.cpp.

Member Function Documentation

◆ initialize()

void LaserPlugin::initialize ( ed::InitData init)
virtual

Reimplemented from ed::Plugin.

Definition at line 56 of file laser_plugin.cpp.

◆ process()

void LaserPlugin::process ( const ed::WorldModel world,
ed::UpdateRequest req 
)
virtual

Reimplemented from ed::Plugin.

Definition at line 74 of file laser_plugin.cpp.

◆ scanCallback()

void LaserPlugin::scanCallback ( const sensor_msgs::LaserScan::ConstPtr &  msg)
private

Definition at line 152 of file laser_plugin.cpp.

◆ update()

void LaserPlugin::update ( const ed::WorldModel world,
const sensor_msgs::LaserScan::ConstPtr &  scan,
const geo::Pose3D sensor_pose,
ed::UpdateRequest req 
)
private

Update the worldmodel based on a novel laserscan message.

Parameters
[in]worldworldmodel to be updated
[in]scanlaserscan message
[in]sensor_posepose of the sensor at the time of the measurement
[out]requpdate request

Definition at line 129 of file laser_plugin.cpp.

Member Data Documentation

◆ cb_queue_

ros::CallbackQueue LaserPlugin::cb_queue_
private

Definition at line 35 of file laser_plugin.h.

◆ scan_buffer_

std::queue<sensor_msgs::LaserScan::ConstPtr> LaserPlugin::scan_buffer_
private

Definition at line 39 of file laser_plugin.h.

◆ sub_scan_

ros::Subscriber LaserPlugin::sub_scan_
private

Definition at line 37 of file laser_plugin.h.

◆ updater_

LaserUpdater LaserPlugin::updater_
private

Definition at line 41 of file laser_plugin.h.


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