Documentation ¶
Index ¶
- Constants
- Variables
- func CloneMeshSlice(dst, src []Mesh)
- func CloneMeshTriangleSlice(dst, src []MeshTriangle)
- func ClonePlaneSlice(dst, src []Plane)
- func CloneSolidPrimitiveSlice(dst, src []SolidPrimitive)
- func MeshTriangle__Array_to_C(cSlice []CMeshTriangle, goSlice []MeshTriangle)
- func MeshTriangle__Array_to_Go(goSlice []MeshTriangle, cSlice []CMeshTriangle)
- func MeshTriangle__Sequence_to_C(cSlice *CMeshTriangle__Sequence, goSlice []MeshTriangle)
- func MeshTriangle__Sequence_to_Go(goSlice *[]MeshTriangle, cSlice CMeshTriangle__Sequence)
- func Mesh__Array_to_C(cSlice []CMesh, goSlice []Mesh)
- func Mesh__Array_to_Go(goSlice []Mesh, cSlice []CMesh)
- func Mesh__Sequence_to_C(cSlice *CMesh__Sequence, goSlice []Mesh)
- func Mesh__Sequence_to_Go(goSlice *[]Mesh, cSlice CMesh__Sequence)
- func Plane__Array_to_C(cSlice []CPlane, goSlice []Plane)
- func Plane__Array_to_Go(goSlice []Plane, cSlice []CPlane)
- func Plane__Sequence_to_C(cSlice *CPlane__Sequence, goSlice []Plane)
- func Plane__Sequence_to_Go(goSlice *[]Plane, cSlice CPlane__Sequence)
- func SolidPrimitive__Array_to_C(cSlice []CSolidPrimitive, goSlice []SolidPrimitive)
- func SolidPrimitive__Array_to_Go(goSlice []SolidPrimitive, cSlice []CSolidPrimitive)
- func SolidPrimitive__Sequence_to_C(cSlice *CSolidPrimitive__Sequence, goSlice []SolidPrimitive)
- func SolidPrimitive__Sequence_to_Go(goSlice *[]SolidPrimitive, cSlice CSolidPrimitive__Sequence)
- type CMesh
- type CMeshTriangle
- type CMeshTriangle__Sequence
- type CMesh__Sequence
- type CPlane
- type CPlane__Sequence
- type CSolidPrimitive
- type CSolidPrimitive__Sequence
- type Mesh
- type MeshTriangle
- type Plane
- type SolidPrimitive
Constants ¶
const ( SolidPrimitive_BOX uint8 = 1 SolidPrimitive_SPHERE uint8 = 2 SolidPrimitive_CYLINDER uint8 = 3 SolidPrimitive_CONE uint8 = 4 SolidPrimitive_BOX_X uint8 = 0 // For type BOX, the X, Y, and Z dimensions are the length of the corresponding sides of the box. SolidPrimitive_BOX_Y uint8 = 1 // For type BOX, the X, Y, and Z dimensions are the length of the corresponding sides of the box. SolidPrimitive_BOX_Z uint8 = 2 // For type BOX, the X, Y, and Z dimensions are the length of the corresponding sides of the box. SolidPrimitive_SPHERE_RADIUS uint8 = 0 // For the SPHERE type, only one component is used, and it gives the radius of the sphere. SolidPrimitive_CYLINDER_HEIGHT uint8 = 0 SolidPrimitive_CYLINDER_RADIUS uint8 = 1 SolidPrimitive_CONE_HEIGHT uint8 = 0 SolidPrimitive_CONE_RADIUS uint8 = 1 )
Variables ¶
var MeshTriangleTypeSupport types.MessageTypeSupport = _MeshTriangleTypeSupport{}
Modifying this variable is undefined behavior.
var MeshTypeSupport types.MessageTypeSupport = _MeshTypeSupport{}
Modifying this variable is undefined behavior.
var PlaneTypeSupport types.MessageTypeSupport = _PlaneTypeSupport{}
Modifying this variable is undefined behavior.
var SolidPrimitiveTypeSupport types.MessageTypeSupport = _SolidPrimitiveTypeSupport{}
Modifying this variable is undefined behavior.
Functions ¶
func CloneMeshSlice ¶
func CloneMeshSlice(dst, src []Mesh)
CloneMeshSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func CloneMeshTriangleSlice ¶
func CloneMeshTriangleSlice(dst, src []MeshTriangle)
CloneMeshTriangleSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func ClonePlaneSlice ¶
func ClonePlaneSlice(dst, src []Plane)
ClonePlaneSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func CloneSolidPrimitiveSlice ¶
func CloneSolidPrimitiveSlice(dst, src []SolidPrimitive)
CloneSolidPrimitiveSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func MeshTriangle__Array_to_C ¶
func MeshTriangle__Array_to_C(cSlice []CMeshTriangle, goSlice []MeshTriangle)
func MeshTriangle__Array_to_Go ¶
func MeshTriangle__Array_to_Go(goSlice []MeshTriangle, cSlice []CMeshTriangle)
func MeshTriangle__Sequence_to_C ¶
func MeshTriangle__Sequence_to_C(cSlice *CMeshTriangle__Sequence, goSlice []MeshTriangle)
func MeshTriangle__Sequence_to_Go ¶
func MeshTriangle__Sequence_to_Go(goSlice *[]MeshTriangle, cSlice CMeshTriangle__Sequence)
func Mesh__Array_to_C ¶
func Mesh__Array_to_Go ¶
func Mesh__Sequence_to_C ¶
func Mesh__Sequence_to_C(cSlice *CMesh__Sequence, goSlice []Mesh)
func Mesh__Sequence_to_Go ¶
func Mesh__Sequence_to_Go(goSlice *[]Mesh, cSlice CMesh__Sequence)
func Plane__Array_to_C ¶
func Plane__Array_to_Go ¶
func Plane__Sequence_to_C ¶
func Plane__Sequence_to_C(cSlice *CPlane__Sequence, goSlice []Plane)
func Plane__Sequence_to_Go ¶
func Plane__Sequence_to_Go(goSlice *[]Plane, cSlice CPlane__Sequence)
func SolidPrimitive__Array_to_C ¶
func SolidPrimitive__Array_to_C(cSlice []CSolidPrimitive, goSlice []SolidPrimitive)
func SolidPrimitive__Array_to_Go ¶
func SolidPrimitive__Array_to_Go(goSlice []SolidPrimitive, cSlice []CSolidPrimitive)
func SolidPrimitive__Sequence_to_C ¶
func SolidPrimitive__Sequence_to_C(cSlice *CSolidPrimitive__Sequence, goSlice []SolidPrimitive)
func SolidPrimitive__Sequence_to_Go ¶
func SolidPrimitive__Sequence_to_Go(goSlice *[]SolidPrimitive, cSlice CSolidPrimitive__Sequence)
Types ¶
type CMesh ¶
type CMesh = C.shape_msgs__msg__Mesh
type CMeshTriangle ¶
type CMeshTriangle = C.shape_msgs__msg__MeshTriangle
type CMeshTriangle__Sequence ¶
type CMeshTriangle__Sequence = C.shape_msgs__msg__MeshTriangle__Sequence
type CMesh__Sequence ¶
type CMesh__Sequence = C.shape_msgs__msg__Mesh__Sequence
type CPlane ¶
type CPlane = C.shape_msgs__msg__Plane
type CPlane__Sequence ¶
type CPlane__Sequence = C.shape_msgs__msg__Plane__Sequence
type CSolidPrimitive ¶
type CSolidPrimitive = C.shape_msgs__msg__SolidPrimitive
type CSolidPrimitive__Sequence ¶
type CSolidPrimitive__Sequence = C.shape_msgs__msg__SolidPrimitive__Sequence
type Mesh ¶
type Mesh struct { Triangles []MeshTriangle `yaml:"triangles"` // List of triangles; the index values refer to positions in vertices[]. Vertices []geometry_msgs_msg.Point `yaml:"vertices"` // The actual vertices that make up the mesh. }
Do not create instances of this type directly. Always use NewMesh function instead.
func (*Mesh) SetDefaults ¶
func (t *Mesh) SetDefaults()
type MeshTriangle ¶
type MeshTriangle struct {
VertexIndices [3]uint32 `yaml:"vertex_indices"`
}
Do not create instances of this type directly. Always use NewMeshTriangle function instead.
func NewMeshTriangle ¶
func NewMeshTriangle() *MeshTriangle
NewMeshTriangle creates a new MeshTriangle with default values.
func (*MeshTriangle) Clone ¶
func (t *MeshTriangle) Clone() *MeshTriangle
func (*MeshTriangle) CloneMsg ¶
func (t *MeshTriangle) CloneMsg() types.Message
func (*MeshTriangle) SetDefaults ¶
func (t *MeshTriangle) SetDefaults()
type Plane ¶
type Plane struct {
Coef [4]float64 `yaml:"coef"` // 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]
}
Do not create instances of this type directly. Always use NewPlane function instead.
func (*Plane) SetDefaults ¶
func (t *Plane) SetDefaults()
type SolidPrimitive ¶
type SolidPrimitive struct { Type uint8 `yaml:"type"` // The type of the shape Dimensions []float64 `yaml:"dimensions"` // At no point will dimensions have a length > 3.. The dimensions of the shape }
Do not create instances of this type directly. Always use NewSolidPrimitive function instead.
func NewSolidPrimitive ¶
func NewSolidPrimitive() *SolidPrimitive
NewSolidPrimitive creates a new SolidPrimitive with default values.
func (*SolidPrimitive) Clone ¶
func (t *SolidPrimitive) Clone() *SolidPrimitive
func (*SolidPrimitive) CloneMsg ¶
func (t *SolidPrimitive) CloneMsg() types.Message
func (*SolidPrimitive) SetDefaults ¶
func (t *SolidPrimitive) SetDefaults()