typemap

package
v0.0.0-...-4d6de22 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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.

Jump to

Keyboard shortcuts

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