Documentation ¶
Index ¶
- Variables
- func CloneDurationSlice(dst, src []Duration)
- func CloneTimeSlice(dst, src []Time)
- func Duration__Array_to_C(cSlice []CDuration, goSlice []Duration)
- func Duration__Array_to_Go(goSlice []Duration, cSlice []CDuration)
- func Duration__Sequence_to_C(cSlice *CDuration__Sequence, goSlice []Duration)
- func Duration__Sequence_to_Go(goSlice *[]Duration, cSlice CDuration__Sequence)
- func Time__Array_to_C(cSlice []CTime, goSlice []Time)
- func Time__Array_to_Go(goSlice []Time, cSlice []CTime)
- func Time__Sequence_to_C(cSlice *CTime__Sequence, goSlice []Time)
- func Time__Sequence_to_Go(goSlice *[]Time, cSlice CTime__Sequence)
- type CDuration
- type CDuration__Sequence
- type CTime
- type CTime__Sequence
- type Duration
- type DurationPublisher
- type DurationSubscription
- type DurationSubscriptionCallback
- type Time
- type TimePublisher
- type TimeSubscription
- type TimeSubscriptionCallback
Constants ¶
This section is empty.
Variables ¶
var DurationTypeSupport types.MessageTypeSupport = _DurationTypeSupport{}
Modifying this variable is undefined behavior.
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_Go ¶
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_Go ¶
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 CDuration ¶
type CDuration = C.builtin_interfaces__msg__Duration
type CDuration__Sequence ¶
type CDuration__Sequence = C.builtin_interfaces__msg__Duration__Sequence
type CTime ¶
type CTime = C.builtin_interfaces__msg__Time
type CTime__Sequence ¶
type CTime__Sequence = C.builtin_interfaces__msg__Time__Sequence
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) GetTypeSupport ¶
func (t *Duration) GetTypeSupport() types.MessageTypeSupport
func (*Duration) SetDefaults ¶
func (t *Duration) SetDefaults()
type DurationPublisher ¶
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 (*Time) GetTypeSupport ¶
func (t *Time) GetTypeSupport() types.MessageTypeSupport
func (*Time) SetDefaults ¶
func (t *Time) SetDefaults()
type TimePublisher ¶
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.