poseproxy 0.0.1__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {poseproxy-0.0.1 → poseproxy-0.0.2}/PKG-INFO +11 -10
- {poseproxy-0.0.1 → poseproxy-0.0.2}/README.md +10 -9
- {poseproxy-0.0.1 → poseproxy-0.0.2}/build.sh +1 -1
- {poseproxy-0.0.1 → poseproxy-0.0.2}/pyproject.toml +3 -3
- {poseproxy-0.0.1 → poseproxy-0.0.2}/tests/test_pose_server.py +1 -1
- {poseproxy-0.0.1 → poseproxy-0.0.2}/vicon_poses.py +1 -1
- {poseproxy-0.0.1 → poseproxy-0.0.2}/.gitignore +0 -0
- {poseproxy-0.0.1 → poseproxy-0.0.2}/pose_server.py +0 -0
- {poseproxy-0.0.1 → poseproxy-0.0.2}/requirements.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: poseproxy
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: Simple Pose Forwarder For Motion Capturing Systems
|
|
5
5
|
Author-email: Jonas Eschmann <jonas.eschmann@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -10,25 +10,25 @@ Provides-Extra: vicon
|
|
|
10
10
|
Requires-Dist: pyvicon-datastream==0.2.4; extra == 'vicon'
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# poseproxy
|
|
14
14
|
|
|
15
15
|
Streams one rigid body from any mocap system to a browser. Requires Python 3.10+.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Install from PyPI:
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
python3 -m venv .venv
|
|
21
21
|
. .venv/bin/activate
|
|
22
|
-
pip install
|
|
23
|
-
|
|
22
|
+
pip install poseproxy
|
|
23
|
+
poseproxy --demo
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
For Vicon:
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
pip install '
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
pip install 'poseproxy[vicon]'
|
|
30
|
+
poseproxy.vicon --host 192.154.4.124 --list # List current object names
|
|
31
|
+
poseproxy.vicon --host 192.154.4.124 --subject crazyflie | poseproxy
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
Vicon uses the root segment; override with `--segment NAME`. Server defaults:
|
|
@@ -57,7 +57,7 @@ Other adapters must emit this format as flushed, newline-delimited JSON to
|
|
|
57
57
|
stdout, with diagnostics on stderr:
|
|
58
58
|
|
|
59
59
|
```sh
|
|
60
|
-
python -u my_mocap_adapter.py |
|
|
60
|
+
python -u my_mocap_adapter.py | poseproxy
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
## Browser
|
|
@@ -75,4 +75,5 @@ Grant Chrome's local/loopback permission. Allowed origins: `https://rc.rl.tools`
|
|
|
75
75
|
`http://localhost:8000`, `http://127.0.0.1:8000`; extend with `--allow-origin URL`.
|
|
76
76
|
`/health` returns `last_pose_age_s` (`null` before any sample).
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
From the repository root: `pip install ./poseproxy`.
|
|
79
|
+
Tests: `python -B -m unittest discover -s poseproxy/tests -v`.
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# poseproxy
|
|
2
2
|
|
|
3
3
|
Streams one rigid body from any mocap system to a browser. Requires Python 3.10+.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Install from PyPI:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
8
|
python3 -m venv .venv
|
|
9
9
|
. .venv/bin/activate
|
|
10
|
-
pip install
|
|
11
|
-
|
|
10
|
+
pip install poseproxy
|
|
11
|
+
poseproxy --demo
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
For Vicon:
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
|
-
pip install '
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
pip install 'poseproxy[vicon]'
|
|
18
|
+
poseproxy.vicon --host 192.154.4.124 --list # List current object names
|
|
19
|
+
poseproxy.vicon --host 192.154.4.124 --subject crazyflie | poseproxy
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
Vicon uses the root segment; override with `--segment NAME`. Server defaults:
|
|
@@ -45,7 +45,7 @@ Other adapters must emit this format as flushed, newline-delimited JSON to
|
|
|
45
45
|
stdout, with diagnostics on stderr:
|
|
46
46
|
|
|
47
47
|
```sh
|
|
48
|
-
python -u my_mocap_adapter.py |
|
|
48
|
+
python -u my_mocap_adapter.py | poseproxy
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
## Browser
|
|
@@ -63,4 +63,5 @@ Grant Chrome's local/loopback permission. Allowed origins: `https://rc.rl.tools`
|
|
|
63
63
|
`http://localhost:8000`, `http://127.0.0.1:8000`; extend with `--allow-origin URL`.
|
|
64
64
|
`/health` returns `last_pose_age_s` (`null` before any sample).
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
From the repository root: `pip install ./poseproxy`.
|
|
67
|
+
Tests: `python -B -m unittest discover -s poseproxy/tests -v`.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "poseproxy"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.2"
|
|
8
8
|
description = "Simple Pose Forwarder For Motion Capturing Systems"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Jonas Eschmann", email = "jonas.eschmann@gmail.com"}]
|
|
@@ -19,5 +19,5 @@ vicon = ["pyvicon-datastream==0.2.4"]
|
|
|
19
19
|
only-include = ["pose_server.py", "vicon_poses.py"]
|
|
20
20
|
|
|
21
21
|
[project.scripts]
|
|
22
|
-
|
|
23
|
-
"
|
|
22
|
+
poseproxy = "pose_server:main"
|
|
23
|
+
"poseproxy.vicon" = "vicon_poses:main"
|
|
@@ -79,7 +79,7 @@ class ViconTests(unittest.TestCase):
|
|
|
79
79
|
def run_list_command(self, sdk):
|
|
80
80
|
stdout, stderr = StringIO(), StringIO()
|
|
81
81
|
with patch.dict(sys.modules, {"pyvicon_datastream": sdk}), \
|
|
82
|
-
patch.object(sys, "argv", ["
|
|
82
|
+
patch.object(sys, "argv", ["poseproxy.vicon", "--host", "vicon", "--list"]), \
|
|
83
83
|
redirect_stdout(stdout), redirect_stderr(stderr):
|
|
84
84
|
vicon_main()
|
|
85
85
|
return stdout.getvalue(), stderr.getvalue()
|
|
@@ -72,7 +72,7 @@ def main():
|
|
|
72
72
|
try:
|
|
73
73
|
import pyvicon_datastream as sdk
|
|
74
74
|
except ImportError:
|
|
75
|
-
parser.exit(1, "Install the Vicon adapter
|
|
75
|
+
parser.exit(1, "Install the Vicon adapter: pip install 'poseproxy[vicon]'\n")
|
|
76
76
|
stream = None
|
|
77
77
|
try:
|
|
78
78
|
if args.list_objects:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|