shape_msgs

package
v0.0.0-...-d8760f3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by ros-gen-go. source: Mesh.msg DO NOT EDIT!

Code generated by ros-gen-go. source: MeshTriangle.msg DO NOT EDIT!

Code generated by ros-gen-go. source: Plane.msg DO NOT EDIT!

Code generated by ros-gen-go. source: SolidPrimitive.msg DO NOT EDIT!

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgMesh = &_MsgMesh{
		`# Definition of a mesh

# list of triangles; the index values refer to positions in vertices[]
MeshTriangle[] triangles

# the actual vertices that make up the mesh
geometry_msgs/Point[] vertices
`,
		"shape_msgs/Mesh",
		"de320644698bf336f8f37512079d2586",
	}
)
View Source
var (
	MsgMeshTriangle = &_MsgMeshTriangle{
		`# Definition of a triangle's vertices
uint32[3] vertex_indices
`,
		"shape_msgs/MeshTriangle",
		"9f61477ed8ee061cb6d71555c375ad8f",
	}
)
View Source
var (
	MsgPlane = &_MsgPlane{
		`# Representation of a plane, using the plane equation ax + by + cz + d = 0

# a := coef[0]
# b := coef[1]
# c := coef[2]
# d := coef[3]

float64[4] coef
`,
		"shape_msgs/Plane",
		"fc4d6d85ce294ff40862d9c7e9556367",
	}
)
View Source
var (
	MsgSolidPrimitive = &_MsgSolidPrimitive{
		`# Define box, sphere, cylinder, cone 
# All shapes are defined to have their bounding boxes centered around 0,0,0.

uint8 BOX=1
uint8 SPHERE=2
uint8 CYLINDER=3
uint8 CONE=4

# The type of the shape
uint8 type


# The dimensions of the shape
float64[] dimensions

# The meaning of the shape dimensions: each constant defines the index in the 'dimensions' array

# For the BOX type, the X, Y, and Z dimensions are the length of the corresponding
# sides of the box.
uint8 BOX_X=0
uint8 BOX_Y=1
uint8 BOX_Z=2


# For the SPHERE type, only one component is used, and it gives the radius of
# the sphere.
uint8 SPHERE_RADIUS=0


# For the CYLINDER and CONE types, the center line is oriented along
# the Z axis.  Therefore the CYLINDER_HEIGHT (CONE_HEIGHT) component
# of dimensions gives the height of the cylinder (cone).  The
# CYLINDER_RADIUS (CONE_RADIUS) component of dimensions gives the
# radius of the base of the cylinder (cone).  Cone and cylinder
# primitives are defined to be circular. The tip of the cone is
# pointing up, along +Z axis.

uint8 CYLINDER_HEIGHT=0
uint8 CYLINDER_RADIUS=1

uint8 CONE_HEIGHT=0
uint8 CONE_RADIUS=1
`,
		"shape_msgs/SolidPrimitive",
		"9121085a5b5bb159b33cd1739087e356",
	}
)

Functions

This section is empty.

Types

type Mesh

type Mesh struct {
	Triangles []MeshTriangle
	Vertices  []geometry_msgs.Point
}

func (*Mesh) Deserialize

func (m *Mesh) Deserialize(r io.Reader) (err error)

func (*Mesh) Serialize

func (m *Mesh) Serialize(w io.Writer) (err error)

type MeshTriangle

type MeshTriangle struct {
	VertexIndices [3]uint32
}

func (*MeshTriangle) Deserialize

func (m *MeshTriangle) Deserialize(r io.Reader) (err error)

func (*MeshTriangle) Serialize

func (m *MeshTriangle) Serialize(w io.Writer) (err error)

type Plane

type Plane struct {
	Coef [4]float64
}

func (*Plane) Deserialize

func (m *Plane) Deserialize(r io.Reader) (err error)

func (*Plane) Serialize

func (m *Plane) Serialize(w io.Writer) (err error)

type SolidPrimitive

type SolidPrimitive struct {
	Type       uint8
	Dimensions []float64
}

func (*SolidPrimitive) Deserialize

func (m *SolidPrimitive) Deserialize(r io.Reader) (err error)

func (*SolidPrimitive) Serialize

func (m *SolidPrimitive) Serialize(w io.Writer) (err error)

Jump to

Keyboard shortcuts

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