dynamic_graph_manager
4.3/ Convert the stl files in obj files

4.3.1/ Download the scripts

Download the following package using the package manager:

mkdir devel # if not done already
cd devel
git clone git@git-amd.tuebingen.mpg.de:amd-clmc/treep_amd_clmc.git
treep --clone model_tools

This should clone the repository in "workspace/src/catkin/utilities/model_tools" from https://git-amd.tuebingen.mpg.de/amd-clmc/model_tools with the following output:

clone.png

4.3.2/ Compile the package with catkin

This compilation will tell catkin where to find the python scripts the binaries depends on. In order to do so change directory to your catkin workspace and run:

catkin_make

4.3.3/ Run the conversion script

The conversion tools is located in model_tools/nodes/stl_to_obj. Though in order to run this tools you need to be in the active directory because the input path will local in order to makes things easy for the user. This is the reason why this binary is available through ros:

rosrun model_tools stl_to_obj --input_stl_dir [path to a stl folder] --output_obj_dir [path to a obj folder]

I strongly suggest you check the "–help" or "-h" output:

rosrun model_tools stl_to_obj -h

Last output known (28/02/2019) for the above instruction:

usage.png

4.3.3/ Typical use.

Change directory to your [robot_name]_description/meshes or your robot_properties_[robot_name]/meshes where you saved the stl files in stl:

- robot_properties_[robot_name]:
- meshes:
- stl:
- body.stl
- arm.stl
...

in the meshes folder you can typically run:

rosrun model_tools stl_to_obj -i stl/ -o obj/