org.ros.android.view.visualization.layer
Class SubscriberLayer<T>
java.lang.Object
org.ros.android.view.visualization.layer.DefaultLayer
org.ros.android.view.visualization.layer.SubscriberLayer<T>
- All Implemented Interfaces:
- Layer, OpenGlDrawable
- Direct Known Subclasses:
- CompressedBitmapLayer, GridCellsLayer, LaserScanLayer, OccupancyGridLayer, PathLayer, PoseSubscriberLayer
public class SubscriberLayer<T>
- extends DefaultLayer
Constructor Summary |
SubscriberLayer(org.ros.namespace.GraphName topicName,
java.lang.String messageType)
|
Method Summary |
org.ros.node.topic.Subscriber<T> |
getSubscriber()
|
void |
onShutdown(VisualizationView view,
org.ros.node.Node node)
Called when the view is removed from the view. |
void |
onStart(org.ros.node.ConnectedNode connectedNode,
Handler handler,
org.ros.rosjava_geometry.FrameTransformTree frameTransformTree,
Camera camera)
Called when the layer is registered at the navigation view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriberLayer
public SubscriberLayer(org.ros.namespace.GraphName topicName,
java.lang.String messageType)
onStart
public void onStart(org.ros.node.ConnectedNode connectedNode,
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 DefaultLayer
onShutdown
public void onShutdown(VisualizationView view,
org.ros.node.Node node)
- Description copied from interface:
Layer
- Called when the view is removed from the view.
- Specified by:
onShutdown
in interface Layer
- Overrides:
onShutdown
in class DefaultLayer
getSubscriber
public org.ros.node.topic.Subscriber<T> getSubscriber()