public class Action extends java.lang.Object implements com.csjbot.coshandler.client_req.body_action.IBodyActionReq, com.csjbot.coshandler.client_req.chassis.IChassisReq, IAction, IActionV2
| 构造器和说明 |
|---|
Action()
Instantiates a new Action.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
action(int bodyPart,
int action)
Body movements,only useful for 8th generation Alice
|
void |
actionNew(int part,
int direction,
int angle,
int speed)
new Action. see docs,only useful for 9th generation Alice
|
void |
AliceHeadDown()
Alice moves her head up down
|
void |
AliceHeadHReset()
Alice head horizontal reset
|
void |
AliceHeadLeft()
Alice's head moves to the left
|
void |
AliceHeadRight()
Alice's head moves to the right
|
void |
AliceHeadUp()
Alice moves her head up
|
void |
AliceLeftArmDown()
Alice put her left arm down
|
void |
AliceLeftArmUp()
Alice raises her left arm
|
void |
AliceRightArmDown()
Alice put her right arm down
|
void |
AliceRightArmUp()
Alice raises her right arm
|
void |
cancelNavi(com.csjbot.coshandler.listener.OnNaviListener listener)
Cancel navigation
|
void |
closeDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
Amanda/ Foodcar close door
|
void |
doubleLargeArmDown()
Double boom down
|
void |
doubleLargeArmUp()
Double boom up
|
void |
doubleSmallArmDown()
Double forearms dwon
|
void |
doubleSmallArmUp()
Double forearms up
|
void |
getDoubleDoorState(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
Gets Amanda/ Foodcar's door state.
|
void |
getMapList(com.csjbot.coshandler.listener.OnMapListListener listListener)
Gets map list.
|
void |
getMapState(com.csjbot.coshandler.listener.OnMapStateListener listener)
Get map recovery status
|
void |
getPosition(com.csjbot.coshandler.listener.OnPositionListener listener)
Gets position.
|
void |
getSpeed(com.csjbot.coshandler.listener.OnSpeedGetListener listListener)
Get Speed
|
void |
goAngle(int rotation)
turn to a specific angle
|
void |
goHome(com.csjbot.coshandler.listener.OnNaviListener listener)
Back to the charging point
|
void |
leftLargeArmDown()
Left arm down
|
void |
leftLargeArmUp()
Left arm up
|
void |
leftSmallArmDown()
Left forearm down
|
void |
leftSmallArmUp()
Left forearm up
|
void |
loadMap()
Load map, use the default name
|
void |
loadMap(java.lang.String name)
Load map.
|
void |
loadMap(java.lang.String name,
float x,
float y,
float rotation)
Load map.
|
void |
move(int direction)
Move direction.
|
void |
moveAngle(int rotation,
com.csjbot.coshandler.listener.OnGoRotationListener listener)
Step angle
|
void |
navi(java.lang.String json,
com.csjbot.coshandler.listener.OnNaviListener listener)
Navi to target.
|
void |
nodAction()
nodding motion
|
void |
openDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
Amanda/ Foodcar open door
|
void |
reset()
Reset arm and head joints, only useful for 9th generation Alice
|
void |
righLargeArmUp()
Right arm up
|
void |
rightLargeArmDown()
Right arm down
|
void |
rightSmallArmDown()
Right forearm down
|
void |
rightSmallArmUp()
Right forearm up
|
void |
saveMap()
save map, use the default name
|
void |
saveMap(java.lang.String name)
save map.
|
void |
search(com.csjbot.coshandler.listener.OnNaviSearchListener listener) |
void |
sendAllNaviPoint(java.lang.String json)
Send all current navigation points to the underlying layer
|
void |
setPowerTime(java.lang.String data)
已过时。
|
void |
setSpeed(float speed)
Speed setting
|
void |
snowDoubleArm()
Snow's double arms swings
|
void |
SnowDoubleArmSwing(int count)
Snow waves her double arms
|
void |
snowLeftArm()
Snow's left arm swings
|
void |
SnowLeftArmSwing(int count)
Snow waves her left arm
|
void |
snowRightArm()
Snow's right arm swings
|
void |
SnowRightArmSwing(int count)
Snow waves her right arm
|
void |
startDance()
Start dancing
|
void |
startWave(int intervalTime)
Start waving
|
void |
startWaveHands(int intervalTime)
The robot began to swing its hands left and right
only useful for 8th generation Alice
|
void |
stopDance()
Stop dancing
|
void |
stopWave()
Stop waving
|
void |
stopWaveHands()
The robot stops swinging its hands left and right
only useful for 8th generation Alice
|
public void reset()
com.csjbot.coshandler.client_req.body_action.IBodyActionReqreset 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqpublic void action(int bodyPart,
int action)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqaction 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqbodyPart - Body partsaction - actionpublic void actionNew(int part,
int direction,
int angle,
int speed)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqactionNew 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqpart - the partdirection - the directionangle - the anglespeed - the speedpublic void startWaveHands(int intervalTime)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqstartWaveHands 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqintervalTime - the interval timepublic void stopWaveHands()
com.csjbot.coshandler.client_req.body_action.IBodyActionReqstopWaveHands 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqpublic void startDance()
com.csjbot.coshandler.client_req.body_action.IBodyActionReqstartDance 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqpublic void stopDance()
com.csjbot.coshandler.client_req.body_action.IBodyActionReqstopDance 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqpublic void openDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqopenDoubleDoor 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqlistener - the listenerpublic void closeDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqcloseDoubleDoor 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqlistener - the listenerpublic void getDoubleDoorState(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)
com.csjbot.coshandler.client_req.body_action.IBodyActionReqgetDoubleDoorState 在接口中 com.csjbot.coshandler.client_req.body_action.IBodyActionReqlistener - the listenerpublic void getPosition(com.csjbot.coshandler.listener.OnPositionListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqgetPosition 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistener - the listenerpublic void move(int direction)
com.csjbot.coshandler.client_req.chassis.IChassisReqmove 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqdirection - direction:方向 :0 前;1 后;2 左;3 右public void navi(java.lang.String json,
com.csjbot.coshandler.listener.OnNaviListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqnavi 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqjson - the json, contains Position info see samplelistener - the listenerpublic void sendAllNaviPoint(java.lang.String json)
com.csjbot.coshandler.client_req.chassis.IChassisReqsendAllNaviPoint 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqjson - all navi posisionspublic void cancelNavi(com.csjbot.coshandler.listener.OnNaviListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqcancelNavi 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistener - the Navi listenerpublic void goAngle(int rotation)
com.csjbot.coshandler.client_req.chassis.IChassisReqgoAngle 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqrotation - the degree of anglepublic void moveAngle(int rotation,
com.csjbot.coshandler.listener.OnGoRotationListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqmoveAngle 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqrotation - Rotation>0:turn left;
Rotation<0:turn rightlistener - the listenerpublic void goHome(com.csjbot.coshandler.listener.OnNaviListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqgoHome 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistener - the Navi listenerpublic void saveMap()
com.csjbot.coshandler.client_req.chassis.IChassisReqsaveMap 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqpublic void saveMap(java.lang.String name)
com.csjbot.coshandler.client_req.chassis.IChassisReqsaveMap 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqname - the namepublic void loadMap()
com.csjbot.coshandler.client_req.chassis.IChassisReqloadMap 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqpublic void loadMap(java.lang.String name)
com.csjbot.coshandler.client_req.chassis.IChassisReqloadMap 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqname - the namepublic void loadMap(java.lang.String name,
float x,
float y,
float rotation)
com.csjbot.coshandler.client_req.chassis.IChassisReqloadMap 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqname - the namex - the xy - the yrotation - the rotationpublic void setSpeed(float speed)
com.csjbot.coshandler.client_req.chassis.IChassisReqsetSpeed 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqspeed - the speed (0.3 ~ 1.2)
Different robots have different restrictionspublic void getSpeed(com.csjbot.coshandler.listener.OnSpeedGetListener listListener)
com.csjbot.coshandler.client_req.chassis.IChassisReqgetSpeed 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistListener - the speed listenerpublic void setPowerTime(java.lang.String data)
com.csjbot.coshandler.client_req.chassis.IChassisReqsetPowerTime 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqdata - the json of Timing power offpublic void getMapList(com.csjbot.coshandler.listener.OnMapListListener listListener)
com.csjbot.coshandler.client_req.chassis.IChassisReqgetMapList 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistListener - the list listenerpublic void getMapState(com.csjbot.coshandler.listener.OnMapStateListener listener)
com.csjbot.coshandler.client_req.chassis.IChassisReqgetMapState 在接口中 com.csjbot.coshandler.client_req.chassis.IChassisReqlistener - the listenerpublic void search(com.csjbot.coshandler.listener.OnNaviSearchListener listener)
search 在接口中 com.csjbot.coshandler.client_req.chassis.IStatusSearchpublic void leftLargeArmUp()
IActionleftLargeArmUp 在接口中 IActionpublic void leftLargeArmDown()
IActionleftLargeArmDown 在接口中 IActionpublic void leftSmallArmUp()
IActionleftSmallArmUp 在接口中 IActionpublic void leftSmallArmDown()
IActionleftSmallArmDown 在接口中 IActionpublic void righLargeArmUp()
IActionrighLargeArmUp 在接口中 IActionpublic void rightLargeArmDown()
IActionrightLargeArmDown 在接口中 IActionpublic void rightSmallArmUp()
IActionrightSmallArmUp 在接口中 IActionpublic void rightSmallArmDown()
IActionrightSmallArmDown 在接口中 IActionpublic void doubleLargeArmUp()
IActiondoubleLargeArmUp 在接口中 IActionpublic void doubleLargeArmDown()
IActiondoubleLargeArmDown 在接口中 IActionpublic void doubleSmallArmUp()
IActiondoubleSmallArmUp 在接口中 IActionpublic void doubleSmallArmDown()
IActiondoubleSmallArmDown 在接口中 IActionpublic void startWave(int intervalTime)
IActionpublic void snowRightArm()
IActionsnowRightArm 在接口中 IActionpublic void snowLeftArm()
IActionsnowLeftArm 在接口中 IActionpublic void snowDoubleArm()
IActionsnowDoubleArm 在接口中 IActionpublic void AliceHeadUp()
IActionV2AliceHeadUp 在接口中 IActionV2public void AliceHeadDown()
IActionV2AliceHeadDown 在接口中 IActionV2public void AliceHeadLeft()
IActionV2AliceHeadLeft 在接口中 IActionV2public void AliceHeadRight()
IActionV2AliceHeadRight 在接口中 IActionV2public void AliceHeadHReset()
IActionV2AliceHeadHReset 在接口中 IActionV2public void AliceLeftArmUp()
IActionV2AliceLeftArmUp 在接口中 IActionV2public void AliceLeftArmDown()
IActionV2AliceLeftArmDown 在接口中 IActionV2public void AliceRightArmUp()
IActionV2AliceRightArmUp 在接口中 IActionV2public void AliceRightArmDown()
IActionV2AliceRightArmDown 在接口中 IActionV2public void SnowLeftArmSwing(int count)
IActionV2SnowLeftArmSwing 在接口中 IActionV2count - waves count from = 0, to = 20public void SnowRightArmSwing(int count)
IActionV2SnowRightArmSwing 在接口中 IActionV2count - waves count from = 0, to = 20public void SnowDoubleArmSwing(int count)
IActionV2SnowDoubleArmSwing 在接口中 IActionV2count - waves count from = 0, to = 20