urdf-go

module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: MIT

README

codecov Go Reference

urdf-go

A Golang wrapper for interpreting URDF files (a version of xml).

Installation

You can use this library in your own Go projects by running:

go get github.com/WrenchRobotics/urdf-go

Usage

This library is designed so that you only need a single loader to get a complete model of the URDF.

package main

import (
	"fmt"

	"github.com/WrenchRobotics/urdf-go/loaders"
)

func main() {
	// Setup
	urdfPath := "500ml.urdf"

	// Load using our loading library
	urdfModel, err := loaders.FromURDFFile(urdfPath)
	if err != nil {
		panic(fmt.Errorf("there was an issue loading the URDF file: %v", err))
	}

	// Print information about the loaded model
	fmt.Println("the number of links in the model:", urdfModel.NumLinks())
	fmt.Println("the number of joints in the model:", urdfModel.NumJoints())
	fmt.Println("the number of materials in the model:", urdfModel.NumMaterials())

}

More information about usage and documentation for the API can be found on our libraries entries on pkg.go.dev here.

Directories

Path Synopsis
This package contains objects and functions that are useful for URDF decoding as well as internal manipulations of URDF models in Go.
This package contains objects and functions that are useful for URDF decoding as well as internal manipulations of URDF models in Go.
geometry
This package contains convenience methods for handling the different types of geometries that are allowed in a URDF.
This package contains convenience methods for handling the different types of geometries that are allowed in a URDF.
inertial
inertial defines convenience structs and methods for defining inertial quantities (e.g., mass) from URDF files.
inertial defines convenience structs and methods for defining inertial quantities (e.g., mass) from URDF files.
joint/type
This package is used to define a form of enum with the internal type JointType.
This package is used to define a form of enum with the internal type JointType.
pose
This package defines a number of helper structs and methods for managing poses and 3D math.
This package defines a number of helper structs and methods for managing poses and 3D math.
examples
beaker command
gripper command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL