Documentation
¶
Index ¶
- Variables
- func ConvertToRosMsg(typeName string, data map[string]interface{}) (interface{}, error)
- func GetCustomMsgsCallback(handleMessage func(interface{}) error, typeName string) interface{}
- func GetMessageType(typeName string) (interface{}, error)
- func GetStdMsgsCallback(handleMessage func(interface{}) error, typeName string) interface{}
- func GetStdMsgsSerializer(typeName string) (interface{}, error)
- type MessageHandler
- type SerializerTypeRegistry
- type ThrottlingStates
- type TypeRegistry
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTypeNotFound = errors.New("type not found")
Functions ¶
func ConvertToRosMsg ¶
func GetCustomMsgsCallback ¶
func GetMessageType ¶
func GetStdMsgsCallback ¶
func GetStdMsgsSerializer ¶
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 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{}
Click to show internal directories.
Click to hide internal directories.