org.ros.android.view.visualization.layer
Class RobotLayer
java.lang.Object
org.ros.android.view.visualization.layer.DefaultLayer
org.ros.android.view.visualization.layer.RobotLayer
- All Implemented Interfaces:
- Layer, TfLayer, OpenGlDrawable
public class RobotLayer
- extends DefaultLayer
- implements TfLayer
Constructor Summary |
RobotLayer(java.lang.String frame,
Context context)
|
Method Summary |
void |
draw(GL10 gl)
|
org.ros.namespace.GraphName |
getFrame()
|
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. |
boolean |
onTouchEvent(VisualizationView view,
MotionEvent event)
Event handler for touch events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RobotLayer
public RobotLayer(java.lang.String frame,
Context context)
draw
public void draw(GL10 gl)
- Specified by:
draw
in interface OpenGlDrawable
- Overrides:
draw
in class DefaultLayer
onTouchEvent
public boolean onTouchEvent(VisualizationView view,
MotionEvent event)
- Description copied from interface:
Layer
- Event handler for touch events.
- Specified by:
onTouchEvent
in interface Layer
- Overrides:
onTouchEvent
in class DefaultLayer
- Parameters:
view
- the view generating the eventevent
- the touch event
- Returns:
- true if the event has been handled
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
getFrame
public org.ros.namespace.GraphName getFrame()
- Specified by:
getFrame
in interface TfLayer
- Returns:
- the
Layer
's reference frame