org.ros.android.view.visualization.shape
Class PoseShape
java.lang.Object
org.ros.android.view.visualization.shape.TriangleFanShape
org.ros.android.view.visualization.shape.RobotShape
org.ros.android.view.visualization.shape.GoalShape
org.ros.android.view.visualization.shape.PoseShape
- All Implemented Interfaces:
- OpenGlDrawable, Shape
public class PoseShape
- extends GoalShape
Represents the pose that will be published.
This shape is defined in pixel space and will not be affected by the zoom
level of the camera.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoseShape
public PoseShape(Camera camera)
scale
protected void scale(GL10 gl)
- Scales the coordinate system.
This is called after transforming the surface according to transform
.
getColor
public Color getColor()
- Specified by:
getColor
in interface Shape
- Returns:
- the
Color
of this Shape
setColor
public void setColor(Color color)
- Specified by:
setColor
in interface Shape
- Parameters:
color
- the Color
of this Shape
getTransform
public org.ros.rosjava_geometry.Transform getTransform()
- Specified by:
getTransform
in interface Shape
- Returns:
- the
Transform
that will be applied to this Shape
before it is drawn
setTransform
public void setTransform(org.ros.rosjava_geometry.Transform pose)
- Specified by:
setTransform
in interface Shape
- Parameters:
pose
- the Transform
that will be applied to this Shape
before it is drawn