builtin_interfaces_msg

package
v0.0.0-...-56b24e1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DurationTypeSupport types.MessageTypeSupport = _DurationTypeSupport{}

Modifying this variable is undefined behavior.

View Source
var TimeTypeSupport types.MessageTypeSupport = _TimeTypeSupport{}

Modifying this variable is undefined behavior.

Functions

func CloneDurationSlice

func CloneDurationSlice(dst, src []Duration)

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

func CloneTimeSlice

func CloneTimeSlice(dst, src []Time)

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

func Duration__Array_to_C

func Duration__Array_to_C(cSlice []CDuration, goSlice []Duration)

func Duration__Array_to_Go

func Duration__Array_to_Go(goSlice []Duration, cSlice []CDuration)

func Duration__Sequence_to_C

func Duration__Sequence_to_C(cSlice *CDuration__Sequence, goSlice []Duration)

func Duration__Sequence_to_Go

func Duration__Sequence_to_Go(goSlice *[]Duration, cSlice CDuration__Sequence)

func Time__Array_to_C

func Time__Array_to_C(cSlice []CTime, goSlice []Time)

func Time__Array_to_Go

func Time__Array_to_Go(goSlice []Time, cSlice []CTime)

func Time__Sequence_to_C

func Time__Sequence_to_C(cSlice *CTime__Sequence, goSlice []Time)

func Time__Sequence_to_Go

func Time__Sequence_to_Go(goSlice *[]Time, cSlice CTime__Sequence)

Types

type Duration

type Duration struct {
	Sec     int32  `yaml:"sec"`     // Seconds component, range is valid over any possible int32 value.
	Nanosec uint32 `yaml:"nanosec"` // Nanoseconds component in the range of [0, 10e9).
}

func NewDuration

func NewDuration() *Duration

NewDuration creates a new Duration with default values.

func (*Duration) Clone

func (t *Duration) Clone() *Duration

func (*Duration) CloneMsg

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

func (*Duration) GetTypeSupport

func (t *Duration) GetTypeSupport() types.MessageTypeSupport

func (*Duration) SetDefaults

func (t *Duration) SetDefaults()

type DurationPublisher

type DurationPublisher struct {
	*rclgo.Publisher
}

DurationPublisher wraps rclgo.Publisher to provide type safe helper functions

func NewDurationPublisher

func NewDurationPublisher(node *rclgo.Node, topic_name string, options *rclgo.PublisherOptions) (*DurationPublisher, error)

NewDurationPublisher creates and returns a new publisher for the Duration

func (*DurationPublisher) Publish

func (p *DurationPublisher) Publish(msg *Duration) error

type DurationSubscription

type DurationSubscription struct {
	*rclgo.Subscription
}

DurationSubscription wraps rclgo.Subscription to provide type safe helper functions

func NewDurationSubscription

func NewDurationSubscription(node *rclgo.Node, topic_name string, opts *rclgo.SubscriptionOptions, subscriptionCallback DurationSubscriptionCallback) (*DurationSubscription, error)

NewDurationSubscription creates and returns a new subscription for the Duration

func (*DurationSubscription) TakeMessage

func (s *DurationSubscription) TakeMessage(out *Duration) (*rclgo.MessageInfo, error)

type DurationSubscriptionCallback

type DurationSubscriptionCallback func(msg *Duration, info *rclgo.MessageInfo, err error)

DurationSubscriptionCallback type is used to provide a subscription handler function for a DurationSubscription.

type Time

type Time struct {
	Sec     int32  `yaml:"sec"`     // The seconds component, valid over all int32 values.
	Nanosec uint32 `yaml:"nanosec"` // The nanoseconds component, valid in the range [0, 10e9).
}

func NewTime

func NewTime() *Time

NewTime creates a new Time with default values.

func (*Time) Clone

func (t *Time) Clone() *Time

func (*Time) CloneMsg

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

func (*Time) GetTypeSupport

func (t *Time) GetTypeSupport() types.MessageTypeSupport

func (*Time) SetDefaults

func (t *Time) SetDefaults()

type TimePublisher

type TimePublisher struct {
	*rclgo.Publisher
}

TimePublisher wraps rclgo.Publisher to provide type safe helper functions

func NewTimePublisher

func NewTimePublisher(node *rclgo.Node, topic_name string, options *rclgo.PublisherOptions) (*TimePublisher, error)

NewTimePublisher creates and returns a new publisher for the Time

func (*TimePublisher) Publish

func (p *TimePublisher) Publish(msg *Time) error

type TimeSubscription

type TimeSubscription struct {
	*rclgo.Subscription
}

TimeSubscription wraps rclgo.Subscription to provide type safe helper functions

func NewTimeSubscription

func NewTimeSubscription(node *rclgo.Node, topic_name string, opts *rclgo.SubscriptionOptions, subscriptionCallback TimeSubscriptionCallback) (*TimeSubscription, error)

NewTimeSubscription creates and returns a new subscription for the Time

func (*TimeSubscription) TakeMessage

func (s *TimeSubscription) TakeMessage(out *Time) (*rclgo.MessageInfo, error)

type TimeSubscriptionCallback

type TimeSubscriptionCallback func(msg *Time, info *rclgo.MessageInfo, err error)

TimeSubscriptionCallback type is used to provide a subscription handler function for a TimeSubscription.

Jump to

Keyboard shortcuts

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