public class SubscriberLayer<T> extends DefaultLayer
Constructor and Description |
---|
SubscriberLayer(org.ros.namespace.GraphName topicName,
java.lang.String messageType) |
Modifier and Type | Method and Description |
---|---|
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.
|
draw, onTouchEvent
public SubscriberLayer(org.ros.namespace.GraphName topicName, java.lang.String messageType)
public void onStart(org.ros.node.ConnectedNode connectedNode, Handler handler, org.ros.rosjava_geometry.FrameTransformTree frameTransformTree, Camera camera)
Layer
onStart
in interface Layer
onStart
in class DefaultLayer
public void onShutdown(VisualizationView view, org.ros.node.Node node)
Layer
onShutdown
in interface Layer
onShutdown
in class DefaultLayer
public org.ros.node.topic.Subscriber<T> getSubscriber()