Skip to content

Commit 8c109a7

Browse files
committed
Merge branch 'wasm_devel' into 2.0-master
# Conflicts: # .github/workflows/build-linux-android.yml
2 parents 13488b9 + 628f788 commit 8c109a7

121 files changed

Lines changed: 4439 additions & 1069 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-linux-android.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Build Linux and Android
22

33
on:
44
push:
5-
branches: [ "2.0-master" ]
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
branches: [ "2.0-master", "wasm_devel" ]
68
pull_request:
79
branches: [ "2.0-master" ]
810

@@ -14,9 +16,23 @@ jobs:
1416

1517
steps:
1618
- uses: actions/checkout@v4
19+
with:
20+
submodules: recursive
21+
- name: Detect tag
22+
if: startsWith(github.ref, 'refs/tags/')
23+
run: echo "TRAVIS_TAG=$GITHUB_REF_NAME" >> $GITHUB_ENV
24+
- name: Retrieve the secret and decode it to a file
25+
env:
26+
MY_KEYSTORE_BASE64: ${{ secrets.MY_KEYSTORE_BASE64 }}
27+
run: |
28+
echo $MY_KEYSTORE_BASE64 | base64 --decode > my.keystore
1729
- name: Install dependencies
1830
run: bash travis/install_dependencies.bash
1931
- name: Build client
32+
env:
33+
KEYSTORE_PWD: ${{ secrets.KEYSTORE_PWD }}
2034
run: bash travis/build_client.bash
2135
- name: Build server
22-
run: bash travis/build_and_deploy_server.bash
36+
run: source env/bin/activate; bash travis/build_and_deploy_server.bash
37+
- name: Deploy client
38+
run: bash travis/deploy_client.bash

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cmake_minimum_required(VERSION 3.16)
2-
project(robot_monitoring VERSION 2.6.0)
2+
project(robot_monitoring VERSION 2.7.5)
33

44
add_subdirectory(xbot2_gui)

proto/generic.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
syntax = "proto3";
2+
3+
import "jointstate.proto";
4+
import "text.proto";
5+
import "process_output.proto";
6+
import "theora_packet.proto";
7+
8+
message Message {
9+
10+
int32 seq = 1;
11+
JointState jointstate = 2;
12+
Text text = 3;
13+
ProcessOutput process_output = 4;
14+
TheoraPacket theora_packet = 5;
15+
16+
}

proto/jointstate.proto

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
syntax = "proto3";
2+
3+
message FloatArray {
4+
repeated float value = 1;
5+
}
6+
7+
message JointState {
8+
9+
repeated float linkPos = 1;
10+
repeated float motPos = 2;
11+
repeated float linkVel = 3;
12+
repeated float motVel = 4;
13+
repeated float tor = 5;
14+
repeated float motorTemp = 6;
15+
repeated float driverTemp = 7;
16+
17+
repeated float posRef = 8;
18+
repeated float velRef = 9;
19+
repeated float torRef = 10;
20+
repeated float k = 11;
21+
repeated float d = 12;
22+
23+
map<string, FloatArray> aux = 13;
24+
25+
float vbatt = 14;
26+
float ibatt = 15;
27+
}

proto/process_output.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
syntax = "proto3";
2+
3+
message ProcessOutput {
4+
5+
string name = 1;
6+
string out = 2;
7+
string err = 3;
8+
}

proto/text.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
syntax = "proto3";
2+
3+
message Text {
4+
5+
string text = 1;
6+
}

proto/theora_packet.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
syntax = "proto3";
2+
3+
message TheoraPacket {
4+
string stream_name = 1;
5+
bytes data = 2;
6+
int32 b_o_s = 3;
7+
int32 e_o_s = 4;
8+
int32 granulepos = 5;
9+
int32 packetno = 6;
10+
}
11+

proto/update_proto.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
protoc *.proto --python_out=../server/src/xbot2_gui_server/proto

server/setup.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = xbot2_gui_server
3-
version = 2.6.0
3+
version = 2.7.3
44
author = Arturo Laurenzi
55
author_email = arturo.laurenzi@iit.it
66
description = Backend for XBot2 QML GUI
@@ -23,6 +23,7 @@ python_requires = >=3.8
2323
install_requires =
2424
aiohttp
2525
asyncudp
26+
protobuf>=5.29.0,<5.29.9
2627

2728

2829
[options.packages.find]
@@ -31,3 +32,4 @@ where = src
3132
[options.entry_points]
3233
console_scripts =
3334
xbot2_gui_server = xbot2_gui_server.main:main
35+
xbot2_gui = xbot2_gui_server.xbot2_gui:main
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from ecat_repl.stuff import read_sdo, set_uri
2+
3+
set_uri('amax-5580.local:5555')
4+
an = read_sdo(['Assigned_name'], [1])[1]['Assigned_name']
5+
print(an)

0 commit comments

Comments
 (0)