Public Member Functions | Private Member Functions | Private Attributes
pepperl_fuchs::R2000Node Class Reference

ROS driver node for the Pepperl+Fuchs R2000 laser range finder. More...

#include <r2000_node.h>

List of all members.

Public Member Functions

void cmdMsgCallback (const std_msgs::StringConstPtr &msg)
 Callback function for control commands.
 R2000Node ()
 Initialize and connect to laser range finder.

Private Member Functions

bool connect ()
void getScanData (const ros::TimerEvent &e)
 Time callback function for getting data from the driver and sending them out.

Private Attributes

ros::Subscriber cmd_subscriber_
 ROS subscriber for receiving control commands.
R2000Driverdriver_
 Pointer to driver.
std::string frame_id_
 frame_id of sensor_msgs/Laserscan messages
ros::Timer get_scan_data_timer_
 Callback timer for getScanData(...)
ros::NodeHandle nh_
 Internal ROS node handle.
int samples_per_scan_
 samples_per_scan parameter
int scan_frequency_
 scan_frequency parameter
ros::Publisher scan_publisher_
 ROS publisher for publishing scan data.
std::string scanner_ip_
 IP or hostname of laser range finder.

Detailed Description

ROS driver node for the Pepperl+Fuchs R2000 laser range finder.

Definition at line 41 of file r2000_node.h.


Constructor & Destructor Documentation

Initialize and connect to laser range finder.

Definition at line 37 of file r2000_node.cpp.


Member Function Documentation

void pepperl_fuchs::R2000Node::cmdMsgCallback ( const std_msgs::StringConstPtr &  msg)

Callback function for control commands.

Definition at line 145 of file r2000_node.cpp.

Connect to the laser range finder

Returns:
True on success, false otherwise

Definition at line 64 of file r2000_node.cpp.

Time callback function for getting data from the driver and sending them out.

Definition at line 106 of file r2000_node.cpp.


Member Data Documentation

ROS subscriber for receiving control commands.

Definition at line 68 of file r2000_node.h.

Pointer to driver.

Definition at line 83 of file r2000_node.h.

std::string pepperl_fuchs::R2000Node::frame_id_ [private]

frame_id of sensor_msgs/Laserscan messages

Definition at line 71 of file r2000_node.h.

Callback timer for getScanData(...)

Definition at line 62 of file r2000_node.h.

Internal ROS node handle.

Definition at line 59 of file r2000_node.h.

samples_per_scan parameter

Definition at line 80 of file r2000_node.h.

scan_frequency parameter

Definition at line 77 of file r2000_node.h.

ROS publisher for publishing scan data.

Definition at line 65 of file r2000_node.h.

IP or hostname of laser range finder.

Definition at line 74 of file r2000_node.h.


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


pepperl_fuchs_r2000
Author(s): Denis Dillenberger
autogenerated on Wed Aug 26 2015 15:22:22