Documentation
¶
Index ¶
- Constants
- func ParseRosbag(path string)
- func SetNewTopicId(topic *Topic)
- type ArgGetParam
- type ArgPublishers
- type ArgSetParam
- type Base
- type CustomMessage
- type CustomMessageSlice
- type Ros
- func (ros *Ros) AdvertiseTopic(topic *Topic) error
- func (ros *Ros) GetParam(paramName string) (string, error)
- func (ros *Ros) GetParams() ([]string, error)
- func (ros *Ros) GetPublishers(topicName string) ([]string, error)
- func (ros *Ros) GetServices() ([]string, error)
- func (ros *Ros) GetTopics() ([]string, error)
- func (ros *Ros) GetUrl() string
- func (ros *Ros) GetWs() *websocket.Conn
- func (ros *Ros) OutboundTopic(topic *Topic) error
- func (ros *Ros) PublishTopic(topic *Topic) error
- func (ros *Ros) SetParam(paramName string, value string) error
- func (ros *Ros) Subscribe(topicName string, callback TopicCallback) error
- func (ros *Ros) SubscribeTopic(topic *Topic, callback TopicCallback) error
- func (ros *Ros) SubscribeTopicWithChannel(topic *Topic, response *chan interface{}) error
- func (ros *Ros) UnsubscribeTopic(topic *Topic) error
- type RosTime
- type ServiceCall
- type ServiceResponse
- type Topic
- type TopicCallback
Constants ¶
View Source
const ( MessageData = 0x02 BagHeader = 0x03 IndexData = 0x04 ChunkRecord = 0x05 ChunkInfo = 0x06 ConnectionRecord = 0x07 )
View Source
const (
TimeoutInSec = 5
)
Variables ¶
This section is empty.
Functions ¶
func ParseRosbag ¶
func ParseRosbag(path string)
func SetNewTopicId ¶
func SetNewTopicId(topic *Topic)
Types ¶
type ArgGetParam ¶
type ArgPublishers ¶
type ArgPublishers struct {
Topic string `json:"topic"`
}
type ArgSetParam ¶
type CustomMessage ¶
type CustomMessage map[string]interface{}
type CustomMessageSlice ¶
type CustomMessageSlice struct {
CustomMessage
}
type Ros ¶
type Ros struct {
// contains filtered or unexported fields
}
func (*Ros) AdvertiseTopic ¶
func (*Ros) GetServices ¶
func (*Ros) OutboundTopic ¶
func (*Ros) PublishTopic ¶
func (*Ros) SubscribeTopic ¶
func (ros *Ros) SubscribeTopic(topic *Topic, callback TopicCallback) error
func (*Ros) SubscribeTopicWithChannel ¶
func (*Ros) UnsubscribeTopic ¶
type ServiceCall ¶
type ServiceCall struct { Op string `json:"op"` Id string `json:"id"` Service string `json:"service"` //Args string `json:"args,omitempty"` Args json.RawMessage `json:"args,omitempty"` }
type ServiceResponse ¶
type Topic ¶
type Topic struct { Op string `json:"op"` Id string `json:"id,omitempty"` Topic string `json:"topic"` Type string `json:"type,omitempty"` Throttle_rate int `json:"throttle_rate,omitempty"` //In msec Queue_length int `json:"queue_length,omitempty"` //Default: 1 Fragment_size int `json:"fragment_size,omitempty"` Compression string `json:"compression,omitempty"` Msg json.RawMessage `json:"msg,omitempty"` }
type TopicCallback ¶
type TopicCallback func(*json.RawMessage)
Click to show internal directories.
Click to hide internal directories.