Documentation ¶
Index ¶
- func GetAction(actionType string) (types.ActionTypeSupport, bool)
- func GetActionMust(actionType string) types.ActionTypeSupport
- func GetMessage(msgType string) (types.MessageTypeSupport, bool)
- func GetMessageMust(msgType string) types.MessageTypeSupport
- func GetService(srvType string) (types.ServiceTypeSupport, bool)
- func GetServiceMust(srvType string) types.ServiceTypeSupport
- func RegisterAction(alias string, actionType types.ActionTypeSupport)
- func RegisterMessage(alias string, msgType types.MessageTypeSupport)
- func RegisterService(alias string, srvType types.ServiceTypeSupport)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAction ¶
func GetAction(actionType string) (types.ActionTypeSupport, bool)
GetAction is the GetMessage equivalent for actions.
func GetActionMust ¶
func GetActionMust(actionType string) types.ActionTypeSupport
GetActionMust is the GetMessageMust equivalent for actions.
func GetMessage ¶
func GetMessage(msgType string) (types.MessageTypeSupport, bool)
GetMessage translates for ex
"std_msgs/ColorRGBA"
to
std_msgs.ColorRGBA -Go type
returns true if the type mapping is found
func GetMessageMust ¶
func GetMessageMust(msgType string) types.MessageTypeSupport
GetMessageMust panics if there is no mapping
func GetService ¶
func GetService(srvType string) (types.ServiceTypeSupport, bool)
GetService is the GetMessage equivalent for services.
func GetServiceMust ¶
func GetServiceMust(srvType string) types.ServiceTypeSupport
GetServiceMust is the GetMessageMust equivalent for services.
func RegisterAction ¶
func RegisterAction(alias string, actionType types.ActionTypeSupport)
RegisterAction is the RegisterMessage equivalent for actions.
func RegisterMessage ¶
func RegisterMessage(alias string, msgType types.MessageTypeSupport)
RegisterMessage sets the type string to implementation dispatcher, so the correct type can be dynamically chosen. The Golang types of ROS2 Message use
func init() {}
to automatically populate this when imported.
func RegisterService ¶
func RegisterService(alias string, srvType types.ServiceTypeSupport)
RegisterService is the RegisterMessage equivalent for services.
Types ¶
This section is empty.