| Home | Trees | Indices | Help |
|---|
|
|
Class for processing and packaging Sick LD-MRS Laser Scan data messages into ROS messages.
Converts raw scan data into ROS PointCloud2 and LaserScan messages and publishes them on request.
The primary method you need to call is process_msg. This method processes the scan data
and publishes LaserScan and/or PointCloud2 messages of the (transformed) data.
You will also need to call set_timestamp_delta() to set the difference between the
current time and the LD-MRS on-board time (which you can extract from the message header)
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| Class Variables | |
elev_angles = array([-0.02094395, -0.00698132, 0.00698132, 0
|
|
header_format =
|
|
header_keys =
|
|
header_struct = <Struct object at 0x192d848>
|
|
num_header_bytes = 44
|
|
num_point_bytes = 10
|
|
v_cos_lut = array([ 0.99978068, 0.99997563, 0.99997563, 0.9
|
|
v_sin_lut = array([-0.02094242, -0.00698126, 0.00698126, 0.0
|
|
| Method Details |
Constructor
|
Compute the tick frequency from the start/end angles and times. This is typically within 1% of the nominal values. Note: we are using the device supplied tick resolution of 1/32nd degree
|
Process an incoming data message. Convert to (and publish) PointCloud2 and LaserScan ROS messages depending on whether the associated topics ('cloud', 'scan0', 'scan1', 'scan2', 'scan3') resp. are subscribed.
|
Publish scan topics on the ROS network.
Publishes four topics (one for each scan plane of the LD-MRS):
/<node_name>/scan0 -- the lowest scan plane
/<node_name>/scan1
/<node_name>/scan2
/<node_name>/scan3 -- the highest scan plane
|
Set the time delta to apply to the LD-MRS timestamp to bring it up to current ROS time.
|
Smooth the timestamp to track the expected scan rate. Parameter time_smoothing_factor controls Small errors between rostime and smoothed time are corrected by applying a correction weighted by the time_smoothong_gain Large errors above the time_error_threshold are corrected to recv_time by a step adjustment
|
Unpack the data from an LD-MRS scan data message into instance attributes to be picked up by make_point_cloud and/or make_scan.
|
| Class Variable Details |
elev_angles
|
header_keys
|
v_cos_lut
|
v_sin_lut
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Jan 11 12:17:29 2013 | http://epydoc.sourceforge.net |