public class ALNavigation extends ALProxy
| Constructor and Description |
|---|
ALNavigation(Session session) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStats() |
void |
exit()
Exits and unregisters the module.
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Object |
getMethodHelp(java.lang.String methodName)
Retrieves a method's description.
|
java.util.List<java.lang.String> |
getMethodList()
Retrieves the module's method list.
|
java.lang.Object |
getModuleHelp()
Retrieves the module's description.
|
java.lang.Float |
getSecurityDistance()
Distance in meters fromwhich the robot should stop if there is an obstacle.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
void |
move(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
Makes the robot move at the given speed in S.I. units.
|
void |
move(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
Makes the robot move at the given speed in S.I. units.
|
java.lang.Boolean |
moveAlong(java.lang.Object trajectory)
.
|
void |
moveTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
Makes the robot move at the given position.This is a blocking call.
|
void |
moveTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
Makes the robot move at the given position.This is a blocking call.
|
void |
moveToward(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
Makes the robot move at the given speed in normalized speed fraction.
|
void |
moveToward(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
Makes the robot move at the given speed in normalized speed fraction.
|
java.lang.Boolean |
navigateTo(java.lang.Float x,
java.lang.Float y)
Makes the robot navigate to a relative metrical target pose2D expressed in FRAME_ROBOT.
|
java.lang.Boolean |
navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
Makes the robot navigate to a relative metrical target pose2D expressed in FRAME_ROBOT.
|
java.lang.Boolean |
navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object config)
Makes the robot navigate to a relative metrical target pose2D expressed in FRAME_ROBOT.
|
java.lang.Boolean |
navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Object config)
Makes the robot navigate to a relative metrical target pose2D expressed in FRAME_ROBOT.
|
void |
onTouchChanged(java.lang.String param1,
java.lang.Object param2,
java.lang.String param3)
.
|
java.lang.Boolean |
ping()
Just a ping.
|
void |
setSecurityDistance(java.lang.Float param1)
Distance in meters fromwhich the robot should stop if there is an obstacle.
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
void |
stopNavigateTo()
Stops the navigateTo.
|
java.lang.String |
version()
Returns the version of the module.
|
java.lang.Boolean |
wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
Wait for the end of a long running method that was called using 'post'
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setServicepublic ALNavigation(Session session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Boolean isStatsEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void clearStats()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isTraceEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void exit()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String version()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean ping()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMethodList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getMethodHelp(java.lang.String methodName)
throws CallError,
java.lang.InterruptedException
methodName - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getModuleHelp()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'timeoutPeriod - The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isRunning(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'CallErrorjava.lang.InterruptedExceptionpublic void stop(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - the ID of the method to wait forCallErrorjava.lang.InterruptedExceptionpublic java.lang.String getBrokerName()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getUsage(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean navigateTo(java.lang.Float x,
java.lang.Float y)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Object config)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].config - Configuration ALValue. For example, [["SpeedFactor", 0.5]] sets speedFactor to 0.5CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].theta - Orientation of the robot (rad).CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean navigateTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object config)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].theta - Orientation of the robot (rad).config - Configuration ALValue. For example, [["SpeedFactor", 0.5]] sets speedFactor to 0.5CallErrorjava.lang.InterruptedExceptionpublic void moveTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].theta - The angle around z axis [rad].CallErrorjava.lang.InterruptedExceptionpublic void moveTo(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
throws CallError,
java.lang.InterruptedException
x - The position along x axis [m].y - The position along y axis [m].theta - The angle around z axis [rad].moveConfig - An ALValue with custom move configuration.CallErrorjava.lang.InterruptedExceptionpublic void move(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
throws CallError,
java.lang.InterruptedException
x - The speed along x axis [m.s-1].y - The speed along y axis [m.s-1].theta - The anglular speed around z axis [rad.s-1].CallErrorjava.lang.InterruptedExceptionpublic void move(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
throws CallError,
java.lang.InterruptedException
x - The speed along x axis [m.s-1].y - The speed along y axis [m.s-1].theta - The anglular speed around z axis [rad.s-1].moveConfig - An ALValue with custom move configuration.CallErrorjava.lang.InterruptedExceptionpublic void moveToward(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta)
throws CallError,
java.lang.InterruptedException
x - The speed along x axis [0.0-1.0].y - The speed along y axis [0.0-1.0].theta - The anglular speed around z axis [0.0-1.0].CallErrorjava.lang.InterruptedExceptionpublic void moveToward(java.lang.Float x,
java.lang.Float y,
java.lang.Float theta,
java.lang.Object moveConfig)
throws CallError,
java.lang.InterruptedException
x - The speed along x axis [0.0-1.0].y - The speed along y axis [0.0-1.0].theta - The anglular speed around z axis [0.0-1.0].moveConfig - An ALValue with custom move configuration.CallErrorjava.lang.InterruptedExceptionpublic void setSecurityDistance(java.lang.Float param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getSecurityDistance()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void stopNavigateTo()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean moveAlong(java.lang.Object trajectory)
throws CallError,
java.lang.InterruptedException
trajectory - An ALValue describing a trajectory.CallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.