Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Krec to rrd conversion #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Krec to rrd conversion #20

wants to merge 3 commits into from

Conversation

alik-git
Copy link
Contributor

@alik-git alik-git commented Dec 8, 2024

very wip rn

@alik-git
Copy link
Contributor Author

alik-git commented Dec 8, 2024

okay so by running the krec_to_rrd script you should be able to reproduce the viz. I'm just plotting 2d actuator values at the moment, but made two views, one grouped by actuator fields, i.e. position velocity etc, and one grouped by individual actuators.

Grouped by fields:
image

Grouped by actuators:
image

You can easily toggle between these by just clicking on a separate tab. should be useful for debugging / inspection.

"""Usage:
# Visualize synthetic KRec data:
python examples/krec_to_rrd.py --synthetic --spawn-viewer -v
python examples/krec_to_rrd.py --input /home/kasm-user/ali_repos/kmodel/data/datasets/krec_data/dec_3__11_10am_og_krecs_edited/2024-12-03_17-47-30/recording_20241125_184919_04bf0bae-c5d7-46bb-b1ef-e021c1ad85f8.krec_edited.krec.mkv --spawn-viewer -v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove any personal paths...

@@ -0,0 +1,263 @@
"""Usage:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The headline of the file should be a oneliner explaining the script/module.

from generate_synthetic_krec import generate_synthetic_krec


def log_frame_data(frame, frame_idx):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add args/docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants