Documentation ¶
Index ¶
- Constants
- Variables
- func CloneGoalInfoSlice(dst, src []GoalInfo)
- func CloneGoalStatusArraySlice(dst, src []GoalStatusArray)
- func CloneGoalStatusSlice(dst, src []GoalStatus)
- func GoalInfo__Array_to_C(cSlice []CGoalInfo, goSlice []GoalInfo)
- func GoalInfo__Array_to_Go(goSlice []GoalInfo, cSlice []CGoalInfo)
- func GoalInfo__Sequence_to_C(cSlice *CGoalInfo__Sequence, goSlice []GoalInfo)
- func GoalInfo__Sequence_to_Go(goSlice *[]GoalInfo, cSlice CGoalInfo__Sequence)
- func GoalStatusArray__Array_to_C(cSlice []CGoalStatusArray, goSlice []GoalStatusArray)
- func GoalStatusArray__Array_to_Go(goSlice []GoalStatusArray, cSlice []CGoalStatusArray)
- func GoalStatusArray__Sequence_to_C(cSlice *CGoalStatusArray__Sequence, goSlice []GoalStatusArray)
- func GoalStatusArray__Sequence_to_Go(goSlice *[]GoalStatusArray, cSlice CGoalStatusArray__Sequence)
- func GoalStatus__Array_to_C(cSlice []CGoalStatus, goSlice []GoalStatus)
- func GoalStatus__Array_to_Go(goSlice []GoalStatus, cSlice []CGoalStatus)
- func GoalStatus__Sequence_to_C(cSlice *CGoalStatus__Sequence, goSlice []GoalStatus)
- func GoalStatus__Sequence_to_Go(goSlice *[]GoalStatus, cSlice CGoalStatus__Sequence)
- type CGoalInfo
- type CGoalInfo__Sequence
- type CGoalStatus
- type CGoalStatusArray
- type CGoalStatusArray__Sequence
- type CGoalStatus__Sequence
- type GoalInfo
- type GoalInfoPublisher
- type GoalInfoSubscription
- type GoalInfoSubscriptionCallback
- type GoalStatus
- type GoalStatusArray
- type GoalStatusArrayPublisher
- type GoalStatusArraySubscription
- type GoalStatusArraySubscriptionCallback
- type GoalStatusPublisher
- type GoalStatusSubscription
- type GoalStatusSubscriptionCallback
Constants ¶
const ( GoalStatus_STATUS_UNKNOWN int8 = 0 // Indicates status has not been properly set. GoalStatus_STATUS_ACCEPTED int8 = 1 // The goal has been accepted and is awaiting execution. GoalStatus_STATUS_EXECUTING int8 = 2 // The goal is currently being executed by the action server. GoalStatus_STATUS_CANCELING int8 = 3 // The client has requested that the goal be canceled and the action server hasaccepted the cancel request. GoalStatus_STATUS_SUCCEEDED int8 = 4 // The goal was achieved successfully by the action server. GoalStatus_STATUS_CANCELED int8 = 5 // The goal was canceled after an external request from an action client. GoalStatus_STATUS_ABORTED int8 = 6 // The goal was terminated by the action server without an external request. )
Variables ¶
var GoalInfoTypeSupport types.MessageTypeSupport = _GoalInfoTypeSupport{}
Modifying this variable is undefined behavior.
var GoalStatusArrayTypeSupport types.MessageTypeSupport = _GoalStatusArrayTypeSupport{}
Modifying this variable is undefined behavior.
var GoalStatusTypeSupport types.MessageTypeSupport = _GoalStatusTypeSupport{}
Modifying this variable is undefined behavior.
Functions ¶
func CloneGoalInfoSlice ¶
func CloneGoalInfoSlice(dst, src []GoalInfo)
CloneGoalInfoSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func CloneGoalStatusArraySlice ¶
func CloneGoalStatusArraySlice(dst, src []GoalStatusArray)
CloneGoalStatusArraySlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func CloneGoalStatusSlice ¶
func CloneGoalStatusSlice(dst, src []GoalStatus)
CloneGoalStatusSlice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src).
func GoalInfo__Array_to_C ¶
func GoalInfo__Array_to_Go ¶
func GoalInfo__Sequence_to_C ¶
func GoalInfo__Sequence_to_C(cSlice *CGoalInfo__Sequence, goSlice []GoalInfo)
func GoalInfo__Sequence_to_Go ¶
func GoalInfo__Sequence_to_Go(goSlice *[]GoalInfo, cSlice CGoalInfo__Sequence)
func GoalStatusArray__Array_to_C ¶
func GoalStatusArray__Array_to_C(cSlice []CGoalStatusArray, goSlice []GoalStatusArray)
func GoalStatusArray__Array_to_Go ¶
func GoalStatusArray__Array_to_Go(goSlice []GoalStatusArray, cSlice []CGoalStatusArray)
func GoalStatusArray__Sequence_to_C ¶
func GoalStatusArray__Sequence_to_C(cSlice *CGoalStatusArray__Sequence, goSlice []GoalStatusArray)
func GoalStatusArray__Sequence_to_Go ¶
func GoalStatusArray__Sequence_to_Go(goSlice *[]GoalStatusArray, cSlice CGoalStatusArray__Sequence)
func GoalStatus__Array_to_C ¶
func GoalStatus__Array_to_C(cSlice []CGoalStatus, goSlice []GoalStatus)
func GoalStatus__Array_to_Go ¶
func GoalStatus__Array_to_Go(goSlice []GoalStatus, cSlice []CGoalStatus)
func GoalStatus__Sequence_to_C ¶
func GoalStatus__Sequence_to_C(cSlice *CGoalStatus__Sequence, goSlice []GoalStatus)
func GoalStatus__Sequence_to_Go ¶
func GoalStatus__Sequence_to_Go(goSlice *[]GoalStatus, cSlice CGoalStatus__Sequence)
Types ¶
type CGoalInfo ¶
type CGoalInfo = C.action_msgs__msg__GoalInfo
type CGoalInfo__Sequence ¶
type CGoalInfo__Sequence = C.action_msgs__msg__GoalInfo__Sequence
type CGoalStatus ¶
type CGoalStatus = C.action_msgs__msg__GoalStatus
type CGoalStatusArray ¶
type CGoalStatusArray = C.action_msgs__msg__GoalStatusArray
type CGoalStatusArray__Sequence ¶
type CGoalStatusArray__Sequence = C.action_msgs__msg__GoalStatusArray__Sequence
type CGoalStatus__Sequence ¶
type CGoalStatus__Sequence = C.action_msgs__msg__GoalStatus__Sequence
type GoalInfo ¶
type GoalInfo struct { GoalId unique_identifier_msgs_msg.UUID `yaml:"goal_id"` // Goal ID Stamp builtin_interfaces_msg.Time `yaml:"stamp"` // Time when the goal was accepted }
func NewGoalInfo ¶
func NewGoalInfo() *GoalInfo
NewGoalInfo creates a new GoalInfo with default values.
func (*GoalInfo) GetTypeSupport ¶
func (t *GoalInfo) GetTypeSupport() types.MessageTypeSupport
func (*GoalInfo) SetDefaults ¶
func (t *GoalInfo) SetDefaults()
type GoalInfoPublisher ¶
GoalInfoPublisher wraps rclgo.Publisher to provide type safe helper functions
func NewGoalInfoPublisher ¶
func NewGoalInfoPublisher(node *rclgo.Node, topic_name string, options *rclgo.PublisherOptions) (*GoalInfoPublisher, error)
NewGoalInfoPublisher creates and returns a new publisher for the GoalInfo
func (*GoalInfoPublisher) Publish ¶
func (p *GoalInfoPublisher) Publish(msg *GoalInfo) error
type GoalInfoSubscription ¶
type GoalInfoSubscription struct {
*rclgo.Subscription
}
GoalInfoSubscription wraps rclgo.Subscription to provide type safe helper functions
func NewGoalInfoSubscription ¶
func NewGoalInfoSubscription(node *rclgo.Node, topic_name string, opts *rclgo.SubscriptionOptions, subscriptionCallback GoalInfoSubscriptionCallback) (*GoalInfoSubscription, error)
NewGoalInfoSubscription creates and returns a new subscription for the GoalInfo
func (*GoalInfoSubscription) TakeMessage ¶
func (s *GoalInfoSubscription) TakeMessage(out *GoalInfo) (*rclgo.MessageInfo, error)
type GoalInfoSubscriptionCallback ¶
type GoalInfoSubscriptionCallback func(msg *GoalInfo, info *rclgo.MessageInfo, err error)
GoalInfoSubscriptionCallback type is used to provide a subscription handler function for a GoalInfoSubscription.
type GoalStatus ¶
type GoalStatus struct { GoalInfo GoalInfo `yaml:"goal_info"` // Goal info (contains ID and timestamp). Status int8 `yaml:"status"` // Action goal state-machine status. }
func NewGoalStatus ¶
func NewGoalStatus() *GoalStatus
NewGoalStatus creates a new GoalStatus with default values.
func (*GoalStatus) Clone ¶
func (t *GoalStatus) Clone() *GoalStatus
func (*GoalStatus) CloneMsg ¶
func (t *GoalStatus) CloneMsg() types.Message
func (*GoalStatus) GetGoalID ¶
func (t *GoalStatus) GetGoalID() *types.GoalID
func (*GoalStatus) GetTypeSupport ¶
func (t *GoalStatus) GetTypeSupport() types.MessageTypeSupport
func (*GoalStatus) SetDefaults ¶
func (t *GoalStatus) SetDefaults()
func (*GoalStatus) SetGoalID ¶
func (t *GoalStatus) SetGoalID(id *types.GoalID)
type GoalStatusArray ¶
type GoalStatusArray struct {
StatusList []GoalStatus `yaml:"status_list"` // An array of goal statuses.
}
func NewGoalStatusArray ¶
func NewGoalStatusArray() *GoalStatusArray
NewGoalStatusArray creates a new GoalStatusArray with default values.
func (*GoalStatusArray) CallForEach ¶
func (t *GoalStatusArray) CallForEach(f func(interface{}))
func (*GoalStatusArray) Clone ¶
func (t *GoalStatusArray) Clone() *GoalStatusArray
func (*GoalStatusArray) CloneMsg ¶
func (t *GoalStatusArray) CloneMsg() types.Message
func (*GoalStatusArray) GetTypeSupport ¶
func (t *GoalStatusArray) GetTypeSupport() types.MessageTypeSupport
func (*GoalStatusArray) SetDefaults ¶
func (t *GoalStatusArray) SetDefaults()
type GoalStatusArrayPublisher ¶
GoalStatusArrayPublisher wraps rclgo.Publisher to provide type safe helper functions
func NewGoalStatusArrayPublisher ¶
func NewGoalStatusArrayPublisher(node *rclgo.Node, topic_name string, options *rclgo.PublisherOptions) (*GoalStatusArrayPublisher, error)
NewGoalStatusArrayPublisher creates and returns a new publisher for the GoalStatusArray
func (*GoalStatusArrayPublisher) Publish ¶
func (p *GoalStatusArrayPublisher) Publish(msg *GoalStatusArray) error
type GoalStatusArraySubscription ¶
type GoalStatusArraySubscription struct {
*rclgo.Subscription
}
GoalStatusArraySubscription wraps rclgo.Subscription to provide type safe helper functions
func NewGoalStatusArraySubscription ¶
func NewGoalStatusArraySubscription(node *rclgo.Node, topic_name string, opts *rclgo.SubscriptionOptions, subscriptionCallback GoalStatusArraySubscriptionCallback) (*GoalStatusArraySubscription, error)
NewGoalStatusArraySubscription creates and returns a new subscription for the GoalStatusArray
func (*GoalStatusArraySubscription) TakeMessage ¶
func (s *GoalStatusArraySubscription) TakeMessage(out *GoalStatusArray) (*rclgo.MessageInfo, error)
type GoalStatusArraySubscriptionCallback ¶
type GoalStatusArraySubscriptionCallback func(msg *GoalStatusArray, info *rclgo.MessageInfo, err error)
GoalStatusArraySubscriptionCallback type is used to provide a subscription handler function for a GoalStatusArraySubscription.
type GoalStatusPublisher ¶
GoalStatusPublisher wraps rclgo.Publisher to provide type safe helper functions
func NewGoalStatusPublisher ¶
func NewGoalStatusPublisher(node *rclgo.Node, topic_name string, options *rclgo.PublisherOptions) (*GoalStatusPublisher, error)
NewGoalStatusPublisher creates and returns a new publisher for the GoalStatus
func (*GoalStatusPublisher) Publish ¶
func (p *GoalStatusPublisher) Publish(msg *GoalStatus) error
type GoalStatusSubscription ¶
type GoalStatusSubscription struct {
*rclgo.Subscription
}
GoalStatusSubscription wraps rclgo.Subscription to provide type safe helper functions
func NewGoalStatusSubscription ¶
func NewGoalStatusSubscription(node *rclgo.Node, topic_name string, opts *rclgo.SubscriptionOptions, subscriptionCallback GoalStatusSubscriptionCallback) (*GoalStatusSubscription, error)
NewGoalStatusSubscription creates and returns a new subscription for the GoalStatus
func (*GoalStatusSubscription) TakeMessage ¶
func (s *GoalStatusSubscription) TakeMessage(out *GoalStatus) (*rclgo.MessageInfo, error)
type GoalStatusSubscriptionCallback ¶
type GoalStatusSubscriptionCallback func(msg *GoalStatus, info *rclgo.MessageInfo, err error)
GoalStatusSubscriptionCallback type is used to provide a subscription handler function for a GoalStatusSubscription.