|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.digitalmuseum.mr.entity.ResourceAbstractImpl jp.digitalmuseum.mr.entity.PhysicalResourceAbstractImpl jp.digitalmuseum.mr.resource.DifferentialWheelsAbstractImpl
public abstract class DifferentialWheelsAbstractImpl
入れ子のクラスの概要 |
---|
インタフェース jp.digitalmuseum.mr.resource.Wheels から継承された入れ子のクラス/インタフェース |
---|
Wheels.Spin, Wheels.WheelsStatus |
コンストラクタの概要 | |
---|---|
DifferentialWheelsAbstractImpl(Connector connector)
|
|
DifferentialWheelsAbstractImpl(PhysicalRobotAbstractImpl robot)
|
メソッドの概要 | |
---|---|
void |
curve(Wheels.Spin spin,
int innerSpeed)
Go forward and rotate left/right. |
void |
curveLeft(int innerSpeed)
Go forward and rotate left. |
void |
curveRight(int innerSpeed)
Go forward and rotate right. |
protected abstract boolean |
doDrive(int leftPower,
int rightPower)
|
protected abstract boolean |
doStopWheels()
|
boolean |
drive(int leftPower,
int rightPower)
Drive two wheels with given set of power. |
int |
getLeftWheelPower()
Get the current power of the left motor. |
int |
getRightWheelPower()
Get the current power of the right motor. |
int |
getRotationSpeed()
Get the current power of the motor to rotate. |
int |
getSpeed()
Get the current power of the motor. |
Wheels.WheelsStatus |
getStatus()
Get status of the wheels. |
void |
goBackward()
Go backward. |
void |
goForward()
Go forward. |
protected void |
initialize()
|
protected void |
onFree()
Called when disposing this resource. Caution: This method should not be called outside this class. |
boolean |
setRotationSpeed(int rotationSpeed)
Change the power of the motor to rotate. |
boolean |
setSpeed(int speed)
Change the power of the motor. |
protected void |
setStatus(Wheels.WheelsStatus status)
|
void |
spin(Wheels.Spin spin)
Spin left/right. |
void |
spinLeft()
Spin left. |
void |
spinRight()
Spin right. |
void |
stopWheels()
Stop. |
クラス jp.digitalmuseum.mr.entity.PhysicalResourceAbstractImpl から継承されたメソッド |
---|
getConnector, setConnector |
クラス jp.digitalmuseum.mr.entity.ResourceAbstractImpl から継承されたメソッド |
---|
getConfigurationComponent, getReaders, getRobot, getWriter, isWritable, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
インタフェース jp.digitalmuseum.mr.resource.DifferentialWheels から継承されたメソッド |
---|
getRecommendedRotationSpeed, getRecommendedSpeed |
インタフェース jp.digitalmuseum.mr.entity.ExclusiveResource から継承されたメソッド |
---|
getWriter, isWritable |
インタフェース jp.digitalmuseum.mr.entity.Resource から継承されたメソッド |
---|
getConfigurationComponent, getReaders, getRobot |
コンストラクタの詳細 |
---|
public DifferentialWheelsAbstractImpl(PhysicalRobotAbstractImpl robot)
public DifferentialWheelsAbstractImpl(Connector connector)
メソッドの詳細 |
---|
protected void initialize()
protected void onFree()
ResourceAbstractImpl
の記述:ResourceAbstractImpl
内の onFree
ResourceAbstractImpl.free(Object)
public Wheels.WheelsStatus getStatus()
Wheels
の記述:Wheels
内の getStatus
protected void setStatus(Wheels.WheelsStatus status)
public int getSpeed()
DifferentialWheels
の記述:DifferentialWheels
内の getSpeed
public boolean setSpeed(int speed)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の setSpeed
public int getRotationSpeed()
DifferentialWheels
の記述:DifferentialWheels
内の getRotationSpeed
public boolean setRotationSpeed(int rotationSpeed)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の setRotationSpeed
public int getLeftWheelPower()
DifferentialWheels
の記述:DifferentialWheels
内の getLeftWheelPower
public int getRightWheelPower()
DifferentialWheels
の記述:DifferentialWheels
内の getRightWheelPower
public void goForward()
WheelsController
の記述:WheelsController
内の goForward
public void goBackward()
WheelsController
の記述:WheelsController
内の goBackward
public void spin(Wheels.Spin spin)
WheelsController
の記述:WheelsController
内の spin
public void spinLeft()
WheelsController
の記述:WheelsController
内の spinLeft
public void spinRight()
WheelsController
の記述:WheelsController
内の spinRight
public void curve(Wheels.Spin spin, int innerSpeed)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の curve
public void curveLeft(int innerSpeed)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の curveLeft
public void curveRight(int innerSpeed)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の curveRight
public void stopWheels()
WheelsController
の記述:WheelsController
内の stopWheels
public boolean drive(int leftPower, int rightPower)
DifferentialWheelsController
の記述:DifferentialWheelsController
内の drive
protected abstract boolean doDrive(int leftPower, int rightPower)
protected abstract boolean doStopWheels()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |