Blender Robotics Utils
This repository contains utilities for exporting/controlling your robot in Blender
Maintainers
This repository is maintained by:
@Nicogene |
urdfToBlender
Python script that given the urdf of a robot as input, define the complete rig, in terms of bones, meshes and joint limits.
Dependencies
- Blender > 2.79
- iDynTree python bindings
GAZEBO_MODEL_PATH
properly set.
An easy way to install the dependencies is to use the conda binaries packages. Just install conda and then:
conda create -n blenderenv
conda activate blenderenv
conda install -c conda-forge -c robotology python= yarp idyntree
conda env config vars set PYTHONPATH=/where/the/bindings/are/installed
where
is the python version used inside Blender.
Usage
Once installed correctly the dependencies run:
(Windows Powershell)
& "C:\Program Files\Blender Foundation\Blender \blender.exe" --python-use-system-env
(Linux & macOs)
$ blender --python-use-system-env
Go to "Scripting" section, open urdfToBlender
, then run. It will open a dialog for selecting the urdf to be converted to rig.
After selecting the urdf, the script creates the rig of the robot in term of armature and meshes.
Examples
iCub 2.5 | iCub 3 |
---|---|
Known limitations
- Only fixed or revolute joints are handled(see https://github.com/robotology/idyntree/issues/881, it requires iDynTree >= 3.3.0).
- Only
.stl
and.ply
format are supported for meshes.
🚧
iCubNeckBlenderController Simple demo script that opens a YARP remote_controlboard
for controlling the iCub head, and attach to the animations frames a callback for moving the joints accordingly to the movements of the rig. Since it is script that has been created with the purpose to show the potentialities of Blender in robotics, this will be not improved/extended or maintained. Here is a video showing this simple controller on iCub.
PI07Demo.mp4
🚧
blenderRCBPanel WORK IN PROGRESS