urdf

package
v0.0.0-...-1c36b67 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	X float64
	Y float64
	Z float64
}

func (*Axis) UnmarshalXML

func (a *Axis) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Box

type Box struct {
	Size Size `xml:"size,attr"`
}

type Calibration

type Calibration struct {
	Rising  *float64 `xml:"rising,attr"`
	Falling *float64 `xml:"falling,attr"`
}

type Collision

type Collision struct {
	Name     *string  `xml:"name,attr"`
	Origin   Origin   `xml:"origin"`
	Geometry Geometry `xml:"geometry"`
}

type Color

type Color struct {
	R float64
	G float64
	B float64
	A float64
}

func (*Color) UnmarshalXML

func (c *Color) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Cylinder

type Cylinder struct {
	Radius float64 `xml:"radius,attr"`
	Length float64 `xml:"length,attr"`
}

type Dynamics

type Dynamics struct {
	Damping  *float64 `xml:"damping,attr"`
	Friction *float64 `xml:"friction,attr"`
}

type Geometry

type Geometry struct {
	Box      *Box      `xml:"box"`
	Cylinder *Cylinder `xml:"cylinder"`
	Sphere   *Sphere   `xml:"sphere"`
	Mesh     *Resource `xml:"mesh"`
}

type Inertia

type Inertia struct {
	Ixx float64 `xml:"ixx,attr"`
	Ixy float64 `xml:"ixy,attr"`
	Ixz float64 `xml:"ixz,attr"`
	Iyy float64 `xml:"iyy,attr"`
	Iyz float64 `xml:"iyz,attr"`
	Izz float64 `xml:"izz,attr"`
}

type Inertial

type Inertial struct {
	Origin  Origin  `xml:"origin"`
	Mass    Mass    `xml:"mass"`
	Inertia Inertia `xml:"inertia"`
}

type Joint

type Joint struct {
	Name             string            `xml:"name,attr"`
	Type             string            `xml:"type,attr"`
	Origin           Origin            `xml:"origin"`
	Parent           LinkRef           `xml:"parent"`
	Child            LinkRef           `xml:"child"`
	Axis             Axis              `xml:"axis"`
	Calibration      *Calibration      `xml:"calibration"`
	Dyanmics         *Dynamics         `xml:"dynamics"`
	Limit            *Limit            `xml:"limit"`
	Mimic            *Mimic            `xml:"mimic"`
	SafetyController *SafetyController `xml:"safety_controller"`
}

type Limit

type Limit struct {
	Lower    *float64 `xml:"lower,attr"`
	Upper    *float64 `xml:"upper,attr"`
	Effort   float64  `xml:"effort,attr"`
	Velocity float64  `xml:"velocity,attr"`
}
type Link struct {
	Name       string      `xml:"name,attr"`
	Inertial   *Inertial   `xml:"inertial"`
	Visuals    []Visual    `xml:"visual"`
	Collisions []Collision `xml:"collision"`
}

type LinkRef

type LinkRef struct {
	Link string `xml:"link,attr"`
}

type Mass

type Mass struct {
	Value float64 `xml:"value,attr"`
}

type Material

type Material struct {
	Name    string    `xml:"name,attr"`
	Color   *Color    `xml:"color"`
	Texture *Resource `xml:"texture"`
}

type Mimic

type Mimic struct {
	Joint      string   `xml:"joint"`
	Multiplier *float64 `xml:"multiplier"`
	Offset     *float64 `xml:"offset"`
}

type Origin

type Origin struct {
	X     float64
	Y     float64
	Z     float64
	Roll  float64
	Pitch float64
	Yaw   float64
}

func (*Origin) UnmarshalXML

func (o *Origin) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Resource

type Resource struct {
	Filename string `xml:"filename,attr"`
}

type Robot

type Robot struct {
	Name   string  `xml:"name,attr"`
	Links  []Link  `xml:"link"`
	Joints []Joint `xml:"joint"`
}

func LoadFromFile

func LoadFromFile(filename string) (*Robot, error)

func LoadFromString

func LoadFromString(source string) (*Robot, error)

func (*Robot) FindJoint

func (r *Robot) FindJoint(s string) int
func (r *Robot) FindLink(s string) int

type SafetyController

type SafetyController struct {
	SoftLowerLimit *float64 `xml:"soft_lower_limit"`
	SoftUpperLimit *float64 `xml:"soft_upper_limit"`
	KPosition      *float64 `xml:"k_position"`
	KVelocity      float64  `xml:"k_velocity"`
}

type Size

type Size struct {
	X float64
	Y float64
	Z float64
}

func (*Size) UnmarshalXML

func (s *Size) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Sphere

type Sphere struct {
	Radius float64 `xml:"radius,attr"`
}

type Visual

type Visual struct {
	Name     *string   `xml:"name,attr"`
	Origin   Origin    `xml:"origin"`
	Geometry Geometry  `xml:"geometry"`
	Material *Material `xml:"material"`
}

Jump to

Keyboard shortcuts

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