Skip to content

priyasundaresan/blender_bullet_traj_vis

Repository files navigation

Blender/PyBullet Trajectory Visualizations

Installation
Usage

Installation

Install Python dependencies

conda env create -f environment.yml
pip install networkx==2.5 # random fix to make urdfpy work

Install Blender 2.93

alias blender="/Applications/Blender.app/Contents/MacOS/Blender"
  • After this, run source ~/.bashrc

Usage

  • Provide an input trajectory traj.npy which is N x 7 and play it back using a Panda URDF in PyBullet
python pybullet_replay.py --joint_angles_file traj.npy
  • Render images of the trajectory into a directory called images # Note, this is slow on CPU, so try to subsample your trajectories to length 20-30 poses; (TODO: add support for CUDA rendering)
# Note, see the settings at line 249 for different modes of visualizing
blender -b -P render.py 
  • See the script to configure different camera poses/rendering settings and adding objects to the scene

Example Renderings

  • Composite multiple frames to create a trajectory visualization (saves to result.png)
python overlay_traj.py

Example Overlays

* You can use tools like https://ezgif.com/maker to upload images and create gifs:

Example Gifs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages