Skip to content

Commit 6808b54

Browse files
authored
Merge pull request #92 from AGH-CEAI/feature/grpc_client_install_script
`aegis_grpc`: Client instalation script
2 parents 1012eb2 + 938a02a commit 6808b54

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

aegis_grpc/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
* [PR-92](https://github.com/AGH-CEAI/aegis_ros/pull/92) - Added Python client installation script.
1213
* [PR-88](https://github.com/AGH-CEAI/aegis_ros/pull/88) - Added gRPC robot motion commands with MoveIt.
1314
* [PR-88](https://github.com/AGH-CEAI/aegis_ros/pull/88) - MVP of the gRPC Python client.
1415
* [PR-82](https://github.com/AGH-CEAI/aegis_ros/pull/82) - MVP of the gRPC-ROS server.

aegis_grpc/README.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,10 @@ It aims to provide a form of "frequency clutch" between real-time domain and low
1010
The client needs to Python packages: 1) [proto_aegis_grpc](./python_proto/README.md) and 2) [aegis_grpc_client](./python_client/README.md).
1111

1212
## Build & install
13-
1. Build the protobuf messages for Python:
14-
```bash
15-
# in aegis_ros/aegis_grpc
16-
cmake -S . -B build
17-
cmake --build build --target generate_protos
18-
```
19-
2. Build and install the packages:
13+
Use the provided script for automated build & installation of the 2 Python packages:
14+
2015
```bash
21-
pip uninstall proto_aegis_grpc aegis_grpc_client -y
22-
cd python_proto
23-
poetry build
24-
pip install ./dist/proto_aegis_grpc-1.0.0-py3-none-any.whl
25-
cd ../python_client
26-
poetry build
27-
pip install ./dist/aegis_grpc_client-0.1.0-py3-none-any.whl
16+
bash install_client.sh
2817
```
2918

3019
## Usage

aegis_grpc/install_client.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
cmake -S . -B build
4+
cmake --build build --target generate_protos
5+
6+
pip uninstall proto_aegis_grpc aegis_grpc_client -y
7+
cd python_proto
8+
poetry build
9+
pip install ./dist/proto_aegis_grpc-*.whl
10+
cd ../python_client
11+
poetry build
12+
pip install ./dist/aegis_grpc_client-*.whl

0 commit comments

Comments
 (0)