Phobos is both a CLI tool and add-on for the open-source 3D modeling software Blender v3.3LTS to support your robot model creation and editing.
The Blender add-on enables the creation of WYSIWYG robot models for use in robot frameworks like ROS and ROCK or in real-time simulations such as MARS or Gazebo. Phobos exports formats such as URDF, SDF or SMURF and common mesh formats (Stereolithography (.stl), Wavefront (.obj) or Collada (.dae)).
Phobos was initiated and is currently developed at the Robotics Innovation Center of the German Research Center for Artificial Intelligence (DFKI) in Bremen, together with the Robotics Group of the University of Bremen.
Please contact Henning Wiedemann for any inquiries, or any questions and feedback not suited for the issues page.
With version 2.0.0 we did a refactoring of Phobos and its now possible to use phobos as a normal python package and command line tool (see below).
When running the new Phobos on a model created with an older version of Phobos, make sure to have a backup. For most cases you should be able to update your model by simply exporting it to smurf and then importing it again from that smurf file. Due to the changes between Blender 2 to 3 it might be necessary to check whether your materials already use the Specular BSDF or Principled BSDF shaders, if not you'd have to update this manually.
If you encounter any problems with this new version please do not hesitate to open an issue here.
Please have a look at our GitHub discussions.
Please let us know by opening an issue here.
Phobos has been published in the Journal of Open Source Software. We ask users to cite the use of Phobos, as it allows us to keep the project alive.
When citing, please provide this information:
If you are on the hunt for a BiBTeX entry, check out the FAQ section.
UPDATING: If you already have phobos installed and want to update. You have to remove the old version of Phobos first and close Blender. Then proceed with the installation steps explained below.
NOTE (WINDOWS): If you are using blender under Windows, make sure you have the latest version of Microsoft Visual C++ Redistributable installed. Otherwise Blender's python won't work properly.
To install Phobos in blender download the phobos.zip of the release or zip the phobos subdirectory (e.g. zip -r phobos.zip phobos
)
Phobos has several python dependencies, those have to be installed in blender before you can use phobos.
There are two ways of installing Phobos:
Blender->Edit->Preferences->Addons->Install
and activate it.${BLENDER_EXECUTABLE} -b --python install_requirements.py
Blender->Edit->Preferences->Addons->Install
and activate it.After installation the phobos main menu can be found on the right hand side of the 3D Viewport. If not already visible, one can find a very small arrow to open the Blender toolbar (purple circle showing it in the image).
Phobos is currently tested and running with Blender v3.3 LTS.
Install the requirements by executing install_requirements.py
with the python you want to install phobos to:
cd phobos
python3 install_requirements.py
Then just install it using pip:
cd phobos
pip install .
or with autoproj:
1) Add the package to your buildconf/package_set
2) Install via amake
Model of the SpaceClimber robot in Blender, next to the Phobos toolbar displayed on the left.
Phobos makes use of Blender's hierarchical object graph and its bone objects. These objects, normally used for animating 3D characters, allow to store 3D coordinate systems and apply constraints to their movements, for instance to restrict the movement of an object to a certain range on a specific axis. This allows to replicate the links and joints defined in a URDF model and together with the hierarchical tree of parent and child objects, the complete, branching kinematic chain of a robot can be represented. By attaching meshes or primitives to the bones, Phobos allows to add visual and collision objects to a model. Additional objects allow storing further information, e.g. centers of mass of each part of a robot, thus refining the physical representation. Sensor objects can be added to correctly place and orient devices such as laser scanners, cameras or contact sensors. Making use of Blender's custom object properties, any necessary information can be added to the model, from inertia tensors to opening angles of cameras.
Decomposition of the different elements from which Phobos models are composed in Blender. These elements can be arranged in Blender on different layers, thus avoiding confusion or obstruction of view when editing very complex models.
You can either use CLI-phobos as a normal python package or use the scripts provided with it.
For the latter do phobos --help
to get a list of the currently available scripts.
It will also tell you which dependencies are missing for some scripts.
Phobos is distributed under the 3-Clause BSD License.