FramesViewer
A simple live 6D frames viewer
https://user-images.githubusercontent.com/6552564/194662755-2a6c181c-e662-4104-a71d-10e85bad3a87.mp4
Installation
pip install FramesViewer
or
pip3 install -e .
Example :
from FramesViewer import Viewer
import FramesViewer.utils as utils
import time
fv = Viewer()
fv.start()
# Frames
frame1 = utils.make_pose([0.15, 0.15, 0], [45, 0, 0])
frame2 = utils.make_pose([0.15, 0.15, 0.15], [0, 90, 45])
frame3 = frame2.copy()
fv.push_frame(frame1, "frame1", [1, 0, 0])
fv.push_frame(frame2, "frame2", [0, 1, 0])
fv.push_link("frame1", "frame2", color=(1, 0, 0))
fv.push_frame(frame3, "frame3")
fv.delete_frame("frame3")
fv.create_points_List("a", size=10, color=(1, 0, 0))
# verts = [[0, 0, 0], [1, 0, 0], [1, 1, 0]]
# fv.createMesh("test", verts=verts)
# Points
for i in range(10):
for j in range(10):
for z in range(10):
fv.push_point("a", [i*0.1, j*0.1, z*0.1])
# An infinite loop is needed to keep the viewer thread alive.
while True:
frame2 = utils.translate_absolute(frame2, [0, 0.0005, 0])
frame2 = utils.rotate_in_self(frame2, [0.5, 0.5, 0.5])
fv.push_frame(frame2, "frame2", [0, 1, 0])
time.sleep(0.01)
Once fv.start() is called, the viewer runs in a separate thread.
You can then dynamically call fv.push_frame(...) to add, update or remove frames.
Metadata
Release files for FramesViewer 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| framesviewer-1.1.0.tar.gz | 10.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| framesviewer-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.0 kB
Release files / framesviewer-1.1.0.tar.gz
| Download URL | framesviewer-1.1.0.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
190f66920cec044f64951c31675372c97c5ab35cba0822cd6a0d08a57965ba48
|
|
BLAKE2b-256 checksum How to use checksums |
6ce929c535d651097877cf8dcae503dad8de1989882aa1f18a5f3cb2d11e71f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / framesviewer-1.1.0-py3-none-any.whl
| Download URL | framesviewer-1.1.0-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
34845cb59a79a92106d160aa5ea615e3653897308e21a2c3701f742b84b558ae
|
|
BLAKE2b-256 checksum How to use checksums |
d31934505a7ffa9e3c69a2acaa28f7f8ad44dfaf948d185864dc67a0bee3fb1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|