Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.85 KB

README.en.md

File metadata and controls

56 lines (32 loc) · 1.85 KB

CyberDog_Ctrl

chn This project implements the gRPC client by which sending commands to cyberdog. the communicate protocol is official open sourcecyberdog_app.proto, since there is no specific protocol description document, we can only predict the use method of the specific interface based on the application mode on the mobile App

Currently, only basic movement control and basic action command control are available

Dependencies

  • grpc:sudo pip install grpcio

  • grpc-tools:sudo pip install grpcio-tools

  • keyboard:sudo pip install keyboard

Protocol generation

download protocol file:cyberdog_app.proto

and save it in the same directory as make_proto.bash, run make_proto.bash

then cyberdog_app_pb2.py and cyberdog_app_pb2_grpc.py files will be generated.

gRPC Protocol

the demo is implemented by python , and gRPC supports c++,c#, Go,Java,Node,php,ruby,objective-c

Official document : GitHub

How to use

Connect cyberdog using official CyberdogApp.(inorder to connect cyberdog to network) Get cyberdog's ip address by shell cmd ifconfig in cyberdog's terminal. Connect pc to the same net work as cyberdog.

Run :sudo python3 cyberdog_ctrl.py

input mode-selected and ip:

  • RunOrderCMD:

    The following actions are performed:

    • Stand up
    • Shake hands
    • Get down
  • RunMoveCMD:

    The following actions are performed:

    • Stand up
    • Swith gait to slow tort
    • Move base command
    • Get down