public class VirtualJoystickView
extends RelativeLayout
implements org.ros.message.MessageListener<nav_msgs.Odometry>, org.ros.node.NodeMain
Constructor and Description |
---|
VirtualJoystickView(Context context) |
VirtualJoystickView(Context context,
AttributeSet attrs) |
VirtualJoystickView(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
void |
DisableSnapping()
Allows the user the option to turn off the auto-snap feature.
|
void |
EnableSnapping()
Allows the user the option to turn on the auto-snap feature.
|
org.ros.namespace.GraphName |
getDefaultNodeName() |
void |
onAnimationEnd(Animation animation) |
void |
onAnimationRepeat(Animation animation) |
void |
onAnimationStart(Animation animation) |
void |
onError(org.ros.node.Node node,
java.lang.Throwable throwable) |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b)
Initialize the fields with values that can only be determined once the
layout for the views has been determined.
|
void |
onNewMessage(nav_msgs.Odometry message) |
void |
onShutdown(org.ros.node.Node node) |
void |
onShutdownComplete(org.ros.node.Node node) |
void |
onStart(org.ros.node.ConnectedNode connectedNode) |
boolean |
onTouchEvent(MotionEvent event) |
void |
setHolonomic(boolean enabled) |
void |
setTopicName(java.lang.String topicName) |
public VirtualJoystickView(Context context)
public VirtualJoystickView(Context context, AttributeSet attrs)
public VirtualJoystickView(Context context, AttributeSet attrs, int defStyle)
public void setHolonomic(boolean enabled)
enabled
- true
if this joystick should publish linear velocities
along the Y axis instead of angular velocities along the Z axis,
false
otherwisepublic void onAnimationEnd(Animation animation)
public void onAnimationRepeat(Animation animation)
public void onAnimationStart(Animation animation)
public void onNewMessage(nav_msgs.Odometry message)
public boolean onTouchEvent(MotionEvent event)
public void EnableSnapping()
public void DisableSnapping()
protected void onLayout(boolean changed, int l, int t, int r, int b)
public void setTopicName(java.lang.String topicName)
public org.ros.namespace.GraphName getDefaultNodeName()
getDefaultNodeName
in interface org.ros.node.NodeMain
public void onStart(org.ros.node.ConnectedNode connectedNode)
onStart
in interface org.ros.node.NodeListener
public void onShutdown(org.ros.node.Node node)
onShutdown
in interface org.ros.node.NodeListener
public void onShutdownComplete(org.ros.node.Node node)
onShutdownComplete
in interface org.ros.node.NodeListener
public void onError(org.ros.node.Node node, java.lang.Throwable throwable)
onError
in interface org.ros.node.NodeListener