Coder Social home page Coder Social logo

blender_urdf_visualizer's Introduction

Blender URDF Viewer

v0.1.3

Tested with Blender v2.90.1, v2.93.4

Available Add-ons:

  • URDF visualizer
  • Batch mesh decimator

Often when I'm generating URDFs from SolidWorks I need a visualizer where I can move joints and links around and also do things like decimate the meshes so they are a reasonable file size. This is a collection of those Blender scripts that I've found helpful while creating and working with URDF packages.

URDF Visualizer

GIF of Blender URDF visualization

Current Limitations

  • Only Fixed, Revolute, Continuous, and Prismatic joint types.
  • Doesn't handle primitives. Assumes you're working with generated mesh files.
  • Cannot save configuration.
  • Cannot load URDFs that have models in different packages.

Mesh Decimator

This does not produce any visual results, but allows you to select a directory of meshes and specify the maxium size that you'd like each mesh to be. The script will then automatically look for STL files, reduce their size if necessary, and re-export to get rid of the SOLID warning Rviz throws for STLs generated with SolidWorks.

Backups of all files are created (using a *.1, *.2, etc) modifier to the filename.

GIF of mesh decimation add-on

Current Limitations

  • Does not ask if you want to apply the decimation, all models above the size limit are decimated.
  • Only works on STLs.

Blender Addon Setup

For Linux

Create a symlink to the add-ons you wish to use in your local config:

cd ~/.config/blender/2.93/scripts/addons
ln -s ~/git/blender_urdf_visualizer/viewer blender_urdf_visualizer
ln -s ~/git/blender_urdf_visualizer/decimator blender_urdf_decimator

For Windows

Download the Windows Portable (.zip) version of Blender. Then

  1. Unzip Blender in the location you choose.
  2. Navigate to <blender_folder>/2.90/scripts/addons_contrib.
  3. Clone this repo into this directory.

Enable the Addon

To enable the Add-on in Blender:

  1. Open Blender
  2. Navigate to Edit > Preferences
  3. Select Add-ons > Testing
  4. Enable Object: URDF

NOTES:

  1. During development, you may need to disable the Add-on and re-enable it for it to load properly.
  2. To see all of the output from the console, launch blender from the command line.

GIF of how to enable the add-ons

blender_urdf_visualizer's People

Contributors

mcevoyandy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.