Skip to main content

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)

Source distribution for FramesViewer 1.1.0
File Size Uploaded
framesviewer-1.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for FramesViewer 1.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page