Giter VIP home page Giter VIP logo

rerun-loader-python-example-urdf's Introduction

URDF -> Rerun plugin

This is an example data-loader plugin that lets you view URDF files in the Rerun Viewer. It uses the external data loader mechanism to add this capability to the viewer without modifying the viewer itself.

nao.mp4

External data loaders are executables that are available to the Rerun Viewer via the PATH variable, with a name that starts with rerun-loader-.

This example is written in Python, and uses urdf_parser_py to read the files. ROS package-relative paths support both ROS 1 and ROS 2-based resolving.

Installing the Rerun Viewer

The simplest option is just (this example currently requires a prerelease):

pip install --pre -f https://build.rerun.io/commit/1dad7c8/wheels --upgrade rerun-sdk

Read this guide for more options.

Installing the plugin

Installing pipx

The most robust way to install the plugin to your PATH is using pipx.

If you don't have pipx installed on your system, you can follow the official instructions here.

Installing the plugin with pipx

Now you can install the plugin to your PATH using

pipx install git+https://github.com/rerun-io/rerun-loader-python-example-urdf.git
pipx ensurepath

Note: you can use the --python argument to specify the Python interpreter to use with pipx. On unix-like systems --python $(which python) will use the currently active Python.

Make sure it's installed by running it from your terminal, which should output an error and usage description:

rerun-loader-urdf
usage: rerun-loader-urdf [-h] [--recording-id RECORDING_ID] filepath
rerun-loader-urdf: error: the following arguments are required: filepath

Try it out

Download an example URDF file

curl -OL https://github.com/rerun-io/rerun-loader-python-example-urdf/raw/main/example.urdf

Open in the Rerun Viewer

You can either first open the viewer, and then open the file from there using drag-and-drop or the menu>open… dialog, or you can open it directly from the terminal like:

rerun example.urdf

rerun-loader-python-example-urdf's People

Contributors

roym899 avatar 02alexander avatar nikolauswest 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.