Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
poselib
is a library for loading, manipulating, and retargeting skeleton poses and motions. It is separated into three modules: poselib.core
for basic data loading and tensor operations, poselib.skeleton
for higher-level skeleton operations, and poselib.visualization
for displaying skeleton poses. This library is built on top of the PyTorch framework and requires data to be in PyTorch tensors.
poselib.core.rotation3d
: A set of Torch JIT functions for computing quaternions, transforms, and rotation/transformation matrices.
quat_*
manipulate and create quaternions in [x, y, z, w] format (where w is the real component).transform_*
handle 7D transforms in [quat, pos] format.rot_matrix_*
handle 3x3 rotation matrices.euclidean_*
handle 4x4 Euclidean transformation matrices.poselib.core.tensor_utils
: Provides loading and saving functions for PyTorch tensors.poselib.skeleton.skeleton3d
: Utilities for loading and manipulating skeleton poses, and retargeting poses to different skeletons.
SkeletonTree
is a class that stores a skeleton as a tree structure. This describes the skeleton topology and joints.SkeletonState
describes the static state of a skeleton, and provides both global and local joint angles.SkeletonMotion
describes a time-series of skeleton states and provides utilities for computing joint velocities.poselib.visualization.common
: Functions used for visualizing skeletons interactively in matplotlib
.
q
to quit window.w
- loop animationx
- play/pause animationz
- previous framec
- next framen
- quit windowPoselib provides several key features for working with animation data. We list some of the frequently used ones here, and provide instructions and examples on their usage.
Poselib supports importing skeletal animation sequences from .fbx format into a SkeletonMotion representation. To use this functionality, you will need to first set up the Python FBX SDK on your machine using the following instructions.
This package is necessary to read data from fbx files, which is a proprietary file format owned by Autodesk. The latest FBX SDK tested was FBX SDK 2020.2.1 for Python 3.7, which can be found on the Autodesk website: https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-2020-2-1.
Follow the instructions at https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_scripting_with_python_fbx_installing_python_fbx_html for download, install, and copy/paste instructions for the FBX Python SDK.
This repo provides an example script fbx_importer.py
that shows usage of importing a .fbx file. Note that SkeletonMotion.from_fbx()
takes in an optional parameter root_joint
, which can be used to specify a joint in the skeleton tree as the root joint. If root_joint
is not specified, we will default to using the first node in the FBX scene that contains animation data.
MJCF is a robotics file format supported by Isaac Gym. For convenience, we provide an API for importing MJCF assets into SkeletonTree definitions to represent the skeleton topology. An example script mjcf_importer.py
is provided to show usage of this.
This can be helpful if motion sequences need to be retargeted to your simulation skeleton that's been created in MJCF format. Importing the file to SkeletonTree format will allow you to generate T-poses or other retargeting poses that can be used for retargeting. We also show an example of creating a T-Pose for our AMP Humanoid asset in generate_amp_humanoid_tpose.py
.
Retargeting motions is important when your source data uses skeletons that have different morphologies than your target skeletons. We provide APIs for performing retarget of motion sequences in our SkeletonState and SkeletonMotion classes.
To use the retargeting API, users must provide the following information:
We provide an example script retarget_motion.py
to demonstrate usage of the retargeting API for the CMU Motion Capture Database. Note that the retargeting data for this script is stored in data/configs/retarget_cmu_to_amp.json
.
Additionally, a SkeletonState T-Pose file and retargeting config file are also provided for the SFU Motion Capture Database. These can be found at data/sfu_tpose.npy
and data/configs/retarget_sfu_to_amp.json
.
We provide a description of the functions and classes available in poselib in the comments of the APIs. Please check them out for more details.
FAQs
Library for loading, manipulating, and retargeting skeleton poses and motions.
We found that poselib-v2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.