turtlesim_msg

package
v0.0.0-...-f3704aa Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorTypeSupport types.MessageTypeSupport = _ColorTypeSupport{}

Modifying this variable is undefined behavior.

View Source
var PoseTypeSupport types.MessageTypeSupport = _PoseTypeSupport{}

Modifying this variable is undefined behavior.

Functions

func CloneColorSlice

func CloneColorSlice(dst, src []Color)

CloneColorSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).

func ClonePoseSlice

func ClonePoseSlice(dst, src []Pose)

ClonePoseSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).

func Color__Array_to_C

func Color__Array_to_C(cSlice []CColor, goSlice []Color)

func Color__Array_to_Go

func Color__Array_to_Go(goSlice []Color, cSlice []CColor)

func Color__Sequence_to_C

func Color__Sequence_to_C(cSlice *CColor__Sequence, goSlice []Color)

func Color__Sequence_to_Go

func Color__Sequence_to_Go(goSlice *[]Color, cSlice CColor__Sequence)

func Pose__Array_to_C

func Pose__Array_to_C(cSlice []CPose, goSlice []Pose)

func Pose__Array_to_Go

func Pose__Array_to_Go(goSlice []Pose, cSlice []CPose)

func Pose__Sequence_to_C

func Pose__Sequence_to_C(cSlice *CPose__Sequence, goSlice []Pose)

func Pose__Sequence_to_Go

func Pose__Sequence_to_Go(goSlice *[]Pose, cSlice CPose__Sequence)

Types

type CColor

type CColor = C.turtlesim__msg__Color

type CColor__Sequence

type CColor__Sequence = C.turtlesim__msg__Color__Sequence

type CPose

type CPose = C.turtlesim__msg__Pose

type CPose__Sequence

type CPose__Sequence = C.turtlesim__msg__Pose__Sequence

type Color

type Color struct {
	R uint8 `yaml:"r"`
	G uint8 `yaml:"g"`
	B uint8 `yaml:"b"`
}

Do not create instances of this type directly. Always use NewColor function instead.

func NewColor

func NewColor() *Color

NewColor creates a new Color with default values.

func (*Color) Clone

func (t *Color) Clone() *Color

func (*Color) CloneMsg

func (t *Color) CloneMsg() types.Message

func (*Color) SetDefaults

func (t *Color) SetDefaults()

type Pose

type Pose struct {
	X               float32 `yaml:"x"`
	Y               float32 `yaml:"y"`
	Theta           float32 `yaml:"theta"`
	LinearVelocity  float32 `yaml:"linear_velocity"`
	AngularVelocity float32 `yaml:"angular_velocity"`
}

Do not create instances of this type directly. Always use NewPose function instead.

func NewPose

func NewPose() *Pose

NewPose creates a new Pose with default values.

func (*Pose) Clone

func (t *Pose) Clone() *Pose

func (*Pose) CloneMsg

func (t *Pose) CloneMsg() types.Message

func (*Pose) SetDefaults

func (t *Pose) SetDefaults()

Jump to

Keyboard shortcuts

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