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
-
grpc:
sudo pip install grpcio
-
grpc-tools:
sudo pip install grpcio-tools
-
keyboard:
sudo pip install keyboard
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.
the demo is implemented by python , and gRPC supports c++,c#, Go,Java,Node,php,ruby,objective-c
Official document : GitHub
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