messages

package
v0.0.0-...-65acc58 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTypeNotFound = errors.New("type not found")

Functions

func ConvertToRosMsg

func ConvertToRosMsg(typeName string, data map[string]interface{}) (interface{}, error)

func GetCustomMsgsCallback

func GetCustomMsgsCallback(handleMessage func(interface{}) error, typeName string) interface{}

func GetMessageType

func GetMessageType(typeName string) (interface{}, error)

func GetStdMsgsCallback

func GetStdMsgsCallback(handleMessage func(interface{}) error, typeName string) interface{}

func GetStdMsgsSerializer

func GetStdMsgsSerializer(typeName string) (interface{}, error)

Types

type MessageHandler

type MessageHandler struct {
	// contains filtered or unexported fields
}

func NewMessageHandler

func NewMessageHandler(logger logging.Logger, setLastMessage func(map[string]interface{})) *MessageHandler

func (*MessageHandler) GetSubscriberConfigWithHandler

func (h *MessageHandler) GetSubscriberConfigWithHandler(typeName string) (*goroslib.SubscriberConf, error)

type SerializerTypeRegistry

type SerializerTypeRegistry map[string]func(map[string]interface{}) interface{}

type ThrottlingStates

type ThrottlingStates struct {
	msg.Package                  `ros:"sample_msgs"`
	Header                       std_msgs.Header `rosname:"header"`
	Undervoltage                 bool            `rosname:"undervoltage"`
	ArmFrequentlyCapped          bool            `rosname:"arm_frequently_capped"`
	Throttled                    bool            `rosname:"throttled"`
	SoftTemperatureLimitActive   bool            `rosname:"soft_temperature_limit_active"`
	UndervoltageOccurred         bool            `rosname:"undervoltage_occurred"`
	ArmFrequentlyCappedOccurred  bool            `rosname:"arm_frequently_capped_occurred"`
	ThrottlingOccurred           bool            `rosname:"throttling_occurred"`
	SoftTemperatureLimitOccurred bool            `rosname:"soft_temperature_limit_occurred"`
}

type TypeRegistry

type TypeRegistry map[string]func() interface{}

Jump to

Keyboard shortcuts

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