EpisodeSegmenter
A python library for segmenting simulation episodes of activities. This is done by detecting physical interactions, and events in the simulation. This library also integrates with NEEMPycramInterface to segment NEEM episodes as a use case.
Installation
pip install episode_segmenter
Example Usage
All below examples assume the neems are located in a 'test' database at 'localhost' which can be accessed by 'newuser' using password 'password'.
Replaying the motions of a NEEM and segmenting it:
This is done by using the PyCRAMNEEMInterface class which provides an easy way to replay the motions of a NEEM, then using the NEEMSegmenter class which implements EpisodeSegmenter to segment the motions into activities, actions, and events.
from neem_pycram_interface import PyCRAMNEEMInterface
from episode_segmenter.neem_segmenter import NEEMSegmenter
from pycram.datastructures.enums import WorldMode
from pycram.worlds.bullet_world import BulletWorld
BulletWorld(WorldMode.GUI)
pni = PyCRAMNEEMInterface('mysql+pymysql://newuser:password@localhost/test')
ns = NEEMSegmenter(pni, annotate_events=True)
ns.run_event_detectors_on_neem([15])
Metadata
Release files for episode-segmenter 1.0.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| episode_segmenter-1.0.22.tar.gz | 51.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| episode_segmenter-1.0.22-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 92.5 kB
Release files / episode_segmenter-1.0.22.tar.gz
| Download URL | episode_segmenter-1.0.22.tar.gz |
|---|---|
| Size | 51.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e522e47ab7eb505be037be12ae53f4446bf55119f0c92e910129cdef905c1b61
|
|
BLAKE2b-256 checksum How to use checksums |
2e9bedbc9bb94f5336bb0e30ce2005e85f771603c2e6977e56578cf26bcd3e5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / episode_segmenter-1.0.22-py3-none-any.whl
| Download URL | episode_segmenter-1.0.22-py3-none-any.whl |
|---|---|
| Size | 41.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3531b3cb37aca2fc862b26a170bede68b3607162f02b90f67212a8252e408f17
|
|
BLAKE2b-256 checksum How to use checksums |
42b8ae829b36f8081356728fad4affb4d09ad969fe3be83594a92e340aea7e41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|