org.ros.android.view.visualization.layer
Class LaserScanLayer

java.lang.Object
  extended by org.ros.android.view.visualization.layer.DefaultLayer
      extended by org.ros.android.view.visualization.layer.SubscriberLayer<sensor_msgs.LaserScan>
          extended by org.ros.android.view.visualization.layer.LaserScanLayer
All Implemented Interfaces:
Layer, TfLayer, OpenGlDrawable

public class LaserScanLayer
extends SubscriberLayer<sensor_msgs.LaserScan>
implements TfLayer

A SubscriberLayer that visualizes sensor_msgs/LaserScan messages.


Constructor Summary
LaserScanLayer(org.ros.namespace.GraphName topicName)
           
LaserScanLayer(java.lang.String topicName)
           
 
Method Summary
 void draw(GL10 gl)
           
 org.ros.namespace.GraphName getFrame()
           
 void onStart(org.ros.node.ConnectedNode connectedNode, android.os.Handler handler, org.ros.rosjava_geometry.FrameTransformTree frameTransformTree, Camera camera)
          Called when the layer is registered at the navigation view.
 
Methods inherited from class org.ros.android.view.visualization.layer.SubscriberLayer
getSubscriber, onShutdown
 
Methods inherited from class org.ros.android.view.visualization.layer.DefaultLayer
addRenderListener, onTouchEvent, removeRenderListener, requestRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaserScanLayer

public LaserScanLayer(java.lang.String topicName)

LaserScanLayer

public LaserScanLayer(org.ros.namespace.GraphName topicName)
Method Detail

draw

public void draw(GL10 gl)
Specified by:
draw in interface OpenGlDrawable
Overrides:
draw in class DefaultLayer

onStart

public void onStart(org.ros.node.ConnectedNode connectedNode,
                    android.os.Handler handler,
                    org.ros.rosjava_geometry.FrameTransformTree frameTransformTree,
                    Camera camera)
Description copied from interface: Layer
Called when the layer is registered at the navigation view.

Specified by:
onStart in interface Layer
Overrides:
onStart in class SubscriberLayer<sensor_msgs.LaserScan>

getFrame

public org.ros.namespace.GraphName getFrame()
Specified by:
getFrame in interface TfLayer
Returns:
the Layer's reference frame