Go to file
2026-03-18 09:19:23 +08:00
.idea feat:add tag gene 2026-03-17 15:36:02 +08:00
clients add camera client 2026-03-18 09:19:23 +08:00
generated add servoj and calibrateZeroQ 2026-03-16 09:23:56 +08:00
protos/cmvr add servoj and calibrateZeroQ 2026-03-16 09:23:56 +08:00
robot_model/xiaoyan_description feat: add ui 2026-02-25 06:23:32 +08:00
scripts feat:add tag gene 2026-03-17 15:36:02 +08:00
ui feat: add ui 2026-02-25 06:23:32 +08:00
actions.json feat:add generate js scripts 2025-12-17 14:03:31 +08:00
generate_json.py feat:add generate js scripts 2025-12-17 14:03:31 +08:00
README.md feat: add ui 2026-02-25 06:23:32 +08:00
requirements.txt add camera client 2026-03-18 09:19:23 +08:00
run_client.py feat:add readme.txt 2026-02-03 13:36:52 +08:00

grpc_client

Environment

  • Python: 3.9.25

Setup

pip install -r requirements.txt

Generate gRPC code

From repo root:

python scripts/gen_grpc_py.py

This reads .proto files under protos/ and writes Python code to generated/.

Run (module mode)

python -m clients.movej_client
python -m clients.get_joint_state_client
python -m clients.get_pose_client
python -m clients.torque_on_client
python -m clients.torque_off_client
python -m clients.torque_key_client
python -m clients.press_client
python -m clients.save_joint_to_csv
python -m clients.http_server

UI (PyQt)

python -m ui.app

Runtime parameters

  • gRPC server address/port: set in clients/base_client.py (default 192.168.0.222:50052).
  • HTTP server host/port: set in clients/http_server.py (default 0.0.0.0:8000).
  • device_id defaults to hc01 in most clients; change in code if needed.
  • UI parameters (host/port/device_id/interval) are set in the PyQt window and passed to the runner.