From ba8ded1baeb33438bc16836f9e71bbaad352f249 Mon Sep 17 00:00:00 2001 From: Anton Tetov Johansson <anton@tetov.se> Date: Tue, 15 Feb 2022 13:57:40 +0000 Subject: [PATCH] Update README.md --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e48bab2..66cf0da 100644 --- a/README.md +++ b/README.md @@ -9,21 +9,18 @@ Tested on RobotWare version: 1. Clone this repo. 2. Install `protoc` from protobuf. There are [prebuilt binaries available from GitHub](https://github.com/protocolbuffers/protobuf/releases/latest) if `protoc` is not available in your package manager. - 3.Find `egm.proto` in either +3. Find `egm.proto` in either `%LOCALAPPDATA%\ABB\RobotWare\RobotWare_6.XXXXX\utility\Template\EGM\egm.proto` or on the robot. - -3. Run protoc to generate protobuf classes for python. Substitute `$SRC_DIR` for - the location of `egm.proto` +4. Run protoc to generate protobuf classes for python. The output path should be in the subdirectory abb_egm_pyclient inside the repository directory abb_egm_pyclient. ```bash -protoc --python_out=abb_egm_pyclient $SRC_DIR/egm.proto +protoc --python_out=path/to/repo_folder/abb_egm_pyclient path/to/egm.proto ``` -4. Install this package in your environment of choice. +5. Install this package in your environment of choice by running the following inside the repository directory. ```bash -cd abb_egm_pyclient pip install -e . ``` @@ -35,4 +32,13 @@ And on your computer (and your python environment): ```bash python -m abb_egm_pyclient.run --help + +# example given +python -m abb_egm_pyclient.run 6510 joint 30 0 0 20 10 0 0 +``` + +Or import the client from your own code: + +```python +from abb_egm_pyclient import EGMClient ``` -- GitLab