com.csjbot.coshandler.core

## 类 Action

- java.lang.Object
- - com.csjbot.coshandler.core.Action

- 所有已实现的接口:
    com.csjbot.coshandler.client_req.base.IClientReq, com.csjbot.coshandler.client_req.body_action.IBodyActionReq, com.csjbot.coshandler.client_req.chassis.IChassisReq, com.csjbot.coshandler.client_req.chassis.IStatusSearch, IAction, IActionV2

      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

  Created by Administrator on 2019/7/15.

- - ### 构造器概要

    构造器
    构造器和说明
    `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

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### Action

          public Action()

      Instantiates a new Action.

  - ### 方法详细资料

    - #### reset

          public void reset()

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Reset arm and head joints, only useful for 9th generation Alice
      指定者:
        `reset` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`

    - #### action

          public void action(int bodyPart,
                             int action)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Body movements,only useful for 8th generation Alice
      指定者:
        `action` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `bodyPart` - Body parts
        `action` - action

    - #### actionNew

          public void actionNew(int part,
                                int direction,
                                int angle,
                                int speed)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      new Action. see docs,only useful for 9th generation Alice
      指定者:
        `actionNew` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `part` - the part
        `direction` - the direction
        `angle` - the angle
        `speed` - the speed

    - #### startWaveHands

          public void startWaveHands(int intervalTime)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      The robot began to swing its hands left and right only useful for 8th generation Alice
      指定者:
        `startWaveHands` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `intervalTime` - the interval time

    - #### stopWaveHands

          public void stopWaveHands()

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      The robot stops swinging its hands left and right only useful for 8th generation Alice
      指定者:
        `stopWaveHands` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`

    - #### startDance

          public void startDance()

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Start dancing
      指定者:
        `startDance` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`

    - #### stopDance

          public void stopDance()

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Stop dancing
      指定者:
        `stopDance` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`

    - #### openDoubleDoor

          public void openDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Amanda/ Foodcar open door
      指定者:
        `openDoubleDoor` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `listener` - the listener

    - #### closeDoubleDoor

          public void closeDoubleDoor(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Amanda/ Foodcar close door
      指定者:
        `closeDoubleDoor` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `listener` - the listener

    - #### getDoubleDoorState

          public void getDoubleDoorState(com.csjbot.coshandler.listener.OnDoubleDoorStateListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      Gets Amanda/ Foodcar's door state.
      指定者:
        `getDoubleDoorState` 在接口中 `com.csjbot.coshandler.client_req.body_action.IBodyActionReq`
      参数:
        `listener` - the listener

    - #### getPosition

          public void getPosition(com.csjbot.coshandler.listener.OnPositionListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Gets position.
      指定者:
        `getPosition` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listener` - the listener

    - #### move

          public void move(int direction)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Move direction.
      指定者:
        `move` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `direction` - direction:方向 :0 前;1 后;2 左;3 右

    - #### navi

          public void navi(java.lang.String json,
                           com.csjbot.coshandler.listener.OnNaviListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Navi to target.
      指定者:
        `navi` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `json` - the json, contains Position info see sample
        `listener` - the listener

    - #### sendAllNaviPoint

          public void sendAllNaviPoint(java.lang.String json)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Send all current navigation points to the underlying layer
      指定者:
        `sendAllNaviPoint` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `json` - all navi posisions

    - #### cancelNavi

          public void cancelNavi(com.csjbot.coshandler.listener.OnNaviListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Cancel navigation
      指定者:
        `cancelNavi` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listener` - the Navi listener

    - #### goAngle

          public void goAngle(int rotation)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      turn to a specific angle
      指定者:
        `goAngle` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `rotation` - the degree of angle

    - #### moveAngle

          public void moveAngle(int rotation,
                                com.csjbot.coshandler.listener.OnGoRotationListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Step angle
      指定者:
        `moveAngle` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `rotation` - Rotation>0:turn left; Rotation<0:turn right
        `listener` - the listener

    - #### goHome

          public void goHome(com.csjbot.coshandler.listener.OnNaviListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Back to the charging point
      指定者:
        `goHome` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listener` - the Navi listener

    - #### saveMap

          public void saveMap()

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      save map, use the default name
      指定者:
        `saveMap` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`

    - #### saveMap

          public void saveMap(java.lang.String name)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      save map.
      指定者:
        `saveMap` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `name` - the name

    - #### loadMap

          public void loadMap()

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Load map, use the default name
      指定者:
        `loadMap` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`

    - #### loadMap

          public void loadMap(java.lang.String name)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Load map.
      指定者:
        `loadMap` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `name` - the name

    - #### loadMap

          public void loadMap(java.lang.String name,
                              float x,
                              float y,
                              float rotation)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Load map. Let the robot out of a specific point on the map
      指定者:
        `loadMap` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `name` - the name
        `x` - the x
        `y` - the y
        `rotation` - the rotation

    - #### setSpeed

          public void setSpeed(float speed)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Speed setting
      指定者:
        `setSpeed` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `speed` - the speed (0.3 ~ 1.2) Different robots have different restrictions

    - #### getSpeed

          public void getSpeed(com.csjbot.coshandler.listener.OnSpeedGetListener listListener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Get Speed
      指定者:
        `getSpeed` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listListener` - the speed listener

    - #### setPowerTime

          public void setPowerTime(java.lang.String data)

      已过时。
      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Sets power off time.
      指定者:
        `setPowerTime` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `data` - the json of Timing power off

    - #### getMapList

          public void getMapList(com.csjbot.coshandler.listener.OnMapListListener listListener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Gets map list.
      指定者:
        `getMapList` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listListener` - the list listener

    - #### getMapState

          public void getMapState(com.csjbot.coshandler.listener.OnMapStateListener listener)

      从接口复制的说明: `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      Get map recovery status
      指定者:
        `getMapState` 在接口中 `com.csjbot.coshandler.client_req.chassis.IChassisReq`
      参数:
        `listener` - the listener

    - #### search

          public void search(com.csjbot.coshandler.listener.OnNaviSearchListener listener)

      指定者:
        `search` 在接口中 `com.csjbot.coshandler.client_req.chassis.IStatusSearch`

    - #### leftLargeArmUp

          public void leftLargeArmUp()

      从接口复制的说明: `IAction`
      Left arm up
      指定者:
        `leftLargeArmUp` 在接口中 `IAction`

    - #### leftLargeArmDown

          public void leftLargeArmDown()

      从接口复制的说明: `IAction`
      Left arm down
      指定者:
        `leftLargeArmDown` 在接口中 `IAction`

    - #### leftSmallArmUp

          public void leftSmallArmUp()

      从接口复制的说明: `IAction`
      Left forearm up
      指定者:
        `leftSmallArmUp` 在接口中 `IAction`

    - #### leftSmallArmDown

          public void leftSmallArmDown()

      从接口复制的说明: `IAction`
      Left forearm down
      指定者:
        `leftSmallArmDown` 在接口中 `IAction`

    - #### righLargeArmUp

          public void righLargeArmUp()

      从接口复制的说明: `IAction`
      Right arm up
      指定者:
        `righLargeArmUp` 在接口中 `IAction`

    - #### rightLargeArmDown

          public void rightLargeArmDown()

      从接口复制的说明: `IAction`
      Right arm down
      指定者:
        `rightLargeArmDown` 在接口中 `IAction`

    - #### rightSmallArmUp

          public void rightSmallArmUp()

      从接口复制的说明: `IAction`
      Right forearm up
      指定者:
        `rightSmallArmUp` 在接口中 `IAction`

    - #### rightSmallArmDown

          public void rightSmallArmDown()

      从接口复制的说明: `IAction`
      Right forearm down
      指定者:
        `rightSmallArmDown` 在接口中 `IAction`

    - #### doubleLargeArmUp

          public void doubleLargeArmUp()

      从接口复制的说明: `IAction`
      Double boom up
      指定者:
        `doubleLargeArmUp` 在接口中 `IAction`

    - #### doubleLargeArmDown

          public void doubleLargeArmDown()

      从接口复制的说明: `IAction`
      Double boom down
      指定者:
        `doubleLargeArmDown` 在接口中 `IAction`

    - #### doubleSmallArmUp

          public void doubleSmallArmUp()

      从接口复制的说明: `IAction`
      Double forearms up
      指定者:
        `doubleSmallArmUp` 在接口中 `IAction`

    - #### doubleSmallArmDown

          public void doubleSmallArmDown()

      从接口复制的说明: `IAction`
      Double forearms dwon
      指定者:
        `doubleSmallArmDown` 在接口中 `IAction`

    - #### nodAction

          public void nodAction()

      从接口复制的说明: `IAction`
      nodding motion
      指定者:
        `nodAction` 在接口中 `IAction`

    - #### startWave

          public void startWave(int intervalTime)

      从接口复制的说明: `IAction`
      Start waving
      指定者:
        `startWave` 在接口中 `IAction`

    - #### stopWave

          public void stopWave()

      从接口复制的说明: `IAction`
      Stop waving
      指定者:
        `stopWave` 在接口中 `IAction`

    - #### snowRightArm

          public void snowRightArm()

      从接口复制的说明: `IAction`
      Snow's right arm swings
      指定者:
        `snowRightArm` 在接口中 `IAction`

    - #### snowLeftArm

          public void snowLeftArm()

      从接口复制的说明: `IAction`
      Snow's left arm swings
      指定者:
        `snowLeftArm` 在接口中 `IAction`

    - #### snowDoubleArm

          public void snowDoubleArm()

      从接口复制的说明: `IAction`
      Snow's double arms swings
      指定者:
        `snowDoubleArm` 在接口中 `IAction`

    - #### AliceHeadUp

          public void AliceHeadUp()

      从接口复制的说明: `IActionV2`
      Alice moves her head up
      指定者:
        `AliceHeadUp` 在接口中 `IActionV2`

    - #### AliceHeadDown

          public void AliceHeadDown()

      从接口复制的说明: `IActionV2`
      Alice moves her head up down
      指定者:
        `AliceHeadDown` 在接口中 `IActionV2`

    - #### AliceHeadLeft

          public void AliceHeadLeft()

      从接口复制的说明: `IActionV2`
      Alice's head moves to the left
      指定者:
        `AliceHeadLeft` 在接口中 `IActionV2`

    - #### AliceHeadRight

          public void AliceHeadRight()

      从接口复制的说明: `IActionV2`
      Alice's head moves to the right
      指定者:
        `AliceHeadRight` 在接口中 `IActionV2`

    - #### AliceHeadHReset

          public void AliceHeadHReset()

      从接口复制的说明: `IActionV2`
      Alice head horizontal reset
      指定者:
        `AliceHeadHReset` 在接口中 `IActionV2`

    - #### AliceLeftArmUp

          public void AliceLeftArmUp()

      从接口复制的说明: `IActionV2`
      Alice raises her left arm
      指定者:
        `AliceLeftArmUp` 在接口中 `IActionV2`

    - #### AliceLeftArmDown

          public void AliceLeftArmDown()

      从接口复制的说明: `IActionV2`
      Alice put her left arm down
      指定者:
        `AliceLeftArmDown` 在接口中 `IActionV2`

    - #### AliceRightArmUp

          public void AliceRightArmUp()

      从接口复制的说明: `IActionV2`
      Alice raises her right arm
      指定者:
        `AliceRightArmUp` 在接口中 `IActionV2`

    - #### AliceRightArmDown

          public void AliceRightArmDown()

      从接口复制的说明: `IActionV2`
      Alice put her right arm down
      指定者:
        `AliceRightArmDown` 在接口中 `IActionV2`

    - #### SnowLeftArmSwing

          public void SnowLeftArmSwing(int count)

      从接口复制的说明: `IActionV2`
      Snow waves her left arm
      指定者:
        `SnowLeftArmSwing` 在接口中 `IActionV2`
      参数:
        `count` - waves count from = 0, to = 20

    - #### SnowRightArmSwing

          public void SnowRightArmSwing(int count)

      从接口复制的说明: `IActionV2`
      Snow waves her right arm
      指定者:
        `SnowRightArmSwing` 在接口中 `IActionV2`
      参数:
        `count` - waves count from = 0, to = 20

    - #### SnowDoubleArmSwing

          public void SnowDoubleArmSwing(int count)

      从接口复制的说明: `IActionV2`
      Snow waves her double arms
      指定者:
        `SnowDoubleArmSwing` 在接口中 `IActionV2`
      参数:
        `count` - waves count from = 0, to = 20