|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.digitalmuseum.mr.entity.ResourceAbstractImpl jp.digitalmuseum.mr.entity.PhysicalResourceAbstractImpl jp.digitalmuseum.mr.resource.DifferentialWheelsAbstractImpl jp.digitalmuseum.mr.entity.Roomba.RoombaDriver
public static class Roomba.RoombaDriver
Roomba
,
直列化された形式
入れ子のクラスの概要 | |
---|---|
static class |
Roomba.RoombaDriver.Note
Note consisting Song Note Number (31 – 127) The pitch of the musical note Roomba will play, according to the MIDI note numbering scheme. |
static class |
Roomba.RoombaDriver.Song
Roomba song consisted of 16 Notes at maximum. |
インタフェース jp.digitalmuseum.mr.resource.Wheels から継承された入れ子のクラス/インタフェース |
---|
Wheels.Spin, Wheels.WheelsStatus |
フィールドの概要 | |
---|---|
static int |
DEFAULT_ROTATION_SPEED
|
static int |
DEFAULT_SPEED
|
static int |
MAXIMUM_VELOCITY
|
static int |
R_BAUD
|
static int |
R_Buttons
Actuator commands / Buttons |
static int |
R_CLEAN
Cleaning commands / Clean |
static int |
R_CONTROL
identical to the Safe command. |
static int |
R_DIGITLED
Actuator commands / Digit LEDs ASCII |
static int |
R_DIGITLEDRAW
Actuator commands / Digit LEDs Raw |
static int |
R_DRIVE
Actuator commands / Drive |
static int |
R_DRIVEDIRECT
Actuator commands / Drive Direct |
static int |
R_DRIVEPWM
Actuator commands / Drive Pulse Width Modulation |
static int |
R_FULL
Mode commands / Full |
static int |
R_LEDS
Actuator commands / LEDs |
static int |
R_MAX
Cleaning commands / Max |
static int |
R_MOTORS
Actuator commands / Motors |
static int |
R_MOTORSPWM
Actuator commands / Motors |
static int |
R_PAUSERESUMESTREAM
Input commands / Pause/Resume stream |
static int |
R_PLAY
Actuator commands / Play |
static int |
R_POWER
Cleaning commands / Power off |
static int |
R_QUERYLIST
Input commands / Query list |
static int |
R_SAFE
Mode commands / Safe |
static int |
R_SCHEDULE
Cleaning commands / Schedule |
static int |
R_SCHEDULELEDS
Actuator commands / Scheduling LEDs |
static int |
R_SEEKDOCK
Cleaning commands / Seek Dock |
static int |
R_SENSORS
Input commands / Sensors |
static int |
R_SETDAYTIME
Cleaning commands / Set Day/Time |
static int |
R_SONG
Actuator commands / Song |
static int |
R_SPOT
Cleaning commands / Spot |
static int |
R_START
|
static int |
R_STREAM
Input commands / Stream |
コンストラクタの概要 | |
---|---|
Roomba.RoombaDriver(Connector connector)
|
|
Roomba.RoombaDriver(Roomba roomba)
|
メソッドの概要 | |
---|---|
void |
baud(byte baudCode)
This command sets the baud rate in bits per second (bps) at which OI commands and data are sent according to the baud code sent in the data byte. |
void |
clean()
This command starts the default cleaning mode. |
void |
control()
|
protected boolean |
doDrive(int leftPower,
int rightPower)
|
protected boolean |
doStopWheels()
|
void |
drive_(int velocity,
int radius)
This command controls Roomba’s drive wheels. |
void |
driveDirect(int leftVelocity,
int rightVelocity)
This command lets you control the forward and backward motion of Roomba’s drive wheels independently. |
void |
full()
This command gives you complete control over Roomba by putting the OI into Full mode, and turning off the cliff, wheel-drop and internal charger safety features. |
int |
getRecommendedRotationSpeed()
Get the recommended value for rotation speed. |
int |
getRecommendedSpeed()
Get the recommended value for default speed. |
void |
lightDigitLED(char c0,
char c1,
char c2,
char c3)
This command controls the four 7 segment displays on the Roomba 560 and 570 using ASCII character codes. |
void |
lightLED(boolean home,
boolean spot,
boolean checkRobot,
boolean debris,
int cleanOrPowerColor,
int cleanOrPowerIntensity)
This command controls the LEDs common to all models of Roomba 500. |
void |
max()
This command starts the Max cleaning mode. |
void |
motors(boolean vacuum)
With side brush and main brush motors on, control vacuum motor. |
void |
motors(boolean vacuum,
boolean sideBrush,
boolean mainBrush)
|
void |
motors(boolean vacuum,
boolean sideBrush,
boolean sideBrushClockwise,
boolean mainBrush,
boolean mainBrushOutward)
This command lets you control the forward and backward motion of Roomba’s main brush, side brush, and vacuum independently. |
protected void |
onFree()
Called when disposing this resource. Caution: This method should not be called outside this class. |
void |
play(int index)
This command lets you select a song to play from the songs added to Roomba using the Song command. |
void |
playSong(Roomba.RoombaDriver.Song song)
Register a song to Roomba with index 0 and play it immediately. |
void |
power()
This command powers down Roomba. |
void |
safe()
This command puts the OI into Safe mode, enabling user control of Roomba. |
void |
seekDock()
This command sends Roomba to the dock. |
void |
song(int index,
Roomba.RoombaDriver.Song song)
This command lets you specify up to four songs to the OI that you can play at a later time. |
void |
song(Roomba.RoombaDriver.Song song)
Register a song to Roomba with index 0. |
void |
spot()
This command starts the Spot cleaning mode. |
void |
start()
This command starts the OI. |
クラス jp.digitalmuseum.mr.resource.DifferentialWheelsAbstractImpl から継承されたメソッド |
---|
curve, curveLeft, curveRight, drive, getLeftWheelPower, getRightWheelPower, getRotationSpeed, getSpeed, getStatus, goBackward, goForward, initialize, setRotationSpeed, setSpeed, setStatus, spin, spinLeft, spinRight, stopWheels |
クラス 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.entity.ExclusiveResource から継承されたメソッド |
---|
getWriter, isWritable |
インタフェース jp.digitalmuseum.mr.entity.Resource から継承されたメソッド |
---|
getConfigurationComponent, getReaders, getRobot |
フィールドの詳細 |
---|
public static final int MAXIMUM_VELOCITY
public static final int DEFAULT_SPEED
public static final int DEFAULT_ROTATION_SPEED
public static final int R_START
public static final int R_BAUD
public static final int R_CONTROL
R_SAFE
,
定数フィールド値
public static final int R_SAFE
public static final int R_FULL
public static final int R_CLEAN
public static final int R_MAX
public static final int R_SPOT
public static final int R_SEEKDOCK
public static final int R_SCHEDULE
public static final int R_SETDAYTIME
public static final int R_POWER
public static final int R_DRIVE
public static final int R_DRIVEDIRECT
public static final int R_DRIVEPWM
public static final int R_MOTORS
public static final int R_MOTORSPWM
R_DRIVEPWM
,
定数フィールド値
public static final int R_LEDS
public static final int R_SCHEDULELEDS
public static final int R_DIGITLEDRAW
public static final int R_DIGITLED
public static final int R_Buttons
public static final int R_SONG
public static final int R_PLAY
public static final int R_SENSORS
public static final int R_QUERYLIST
public static final int R_STREAM
public static final int R_PAUSERESUMESTREAM
コンストラクタの詳細 |
---|
public Roomba.RoombaDriver(Connector connector)
public Roomba.RoombaDriver(Roomba roomba)
メソッドの詳細 |
---|
protected void onFree()
ResourceAbstractImpl
の記述:DifferentialWheelsAbstractImpl
内の onFree
ResourceAbstractImpl.free(Object)
public int getRecommendedSpeed()
DifferentialWheels
の記述:public int getRecommendedRotationSpeed()
DifferentialWheels
の記述:public void start()
public void baud(byte baudCode)
Baud Code | Baud Rate in BPS |
---|---|
0 | 300 |
1 | 600 |
2 | 1200 |
3 | 2400 |
4 | 4800 |
5 | 9600 |
6 | 14400 |
7 | 19200 |
8 | 28800 |
9 | 38400 |
10 | 57600 |
11 | 115200 |
public void control()
safe()
public void safe()
public void full()
public void clean()
public void max()
public void spot()
public void seekDock()
public void power()
public void drive_(int velocity, int radius)
velocity
- radius
- public void driveDirect(int leftVelocity, int rightVelocity)
leftVelocity
- rightVelocity
- public void motors(boolean vacuum)
vacuum
- motors(boolean, boolean, boolean)
public void motors(boolean vacuum, boolean sideBrush, boolean mainBrush)
public void motors(boolean vacuum, boolean sideBrush, boolean sideBrushClockwise, boolean mainBrush, boolean mainBrushOutward)
vacuum
- sideBrush
- sideBrushClockwise
- Clockwise or counter-clockwisemainBrush
- mainBrushOutward
- Outward or inwardpublic void lightLED(boolean home, boolean spot, boolean checkRobot, boolean debris, int cleanOrPowerColor, int cleanOrPowerIntensity)
home
- spot
- checkRobot
- debris
- cleanOrPowerColor
- 0-255 (green to red)cleanOrPowerIntensity
- 0-255public void lightDigitLED(char c0, char c1, char c2, char c3)
public void song(Roomba.RoombaDriver.Song song)
song(int, Song)
public void playSong(Roomba.RoombaDriver.Song song)
song(int, Song)
public void song(int index, Roomba.RoombaDriver.Song song)
index
- 0-4song
- Roomba.RoombaDriver.Song
public void play(int index)
index
- 0-4protected boolean doStopWheels()
DifferentialWheelsAbstractImpl
内の doStopWheels
protected boolean doDrive(int leftPower, int rightPower)
DifferentialWheelsAbstractImpl
内の doDrive
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |