Documentation
¶
Index ¶
- Constants
- Variables
- type AdvertiseMessage
- type Base
- type PublishMessage
- type Ros
- type RosMessage
- type RosWs
- type Service
- type ServiceAdvertise
- type ServiceCall
- type ServiceCallback
- type ServiceResponse
- type ServiceUnadvertise
- type SubscribeMessage
- type Topic
- type TopicCallback
- type UnadvertiseMessage
- type UnsubscribeMessage
Constants ¶
View Source
const AdvertiseOp = "advertise"
View Source
const PublishOp = "publish"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#343-publish--publish-
View Source
const ServiceAdvertiseOp = "advertise_service"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#347-advertise-service
View Source
const ServiceCallOp = "call_service"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#346-call-service
View Source
const ServiceResponseOp = "service_response"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#349-service-response
View Source
const ServiceUnadvertiseOp = "unadvertise_service"
View Source
const SubscribeOp = "subscribe"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#344-subscribe
View Source
const UnadvertiseOp = "unadvertise"
View Source
const UnsubscribeOp = "unsubscribe"
https://github.com/biobotus/rosbridge_suite/blob/master/ROSBRIDGE_PROTOCOL.md#345-unsubscribe
Variables ¶
View Source
var ErrNotConnected = recws.ErrNotConnected
Functions ¶
This section is empty.
Types ¶
type AdvertiseMessage ¶
type PublishMessage ¶
type PublishMessage struct { Op string `json:"op"` Id string `json:"id,omitempty"` Topic string `json:"topic"` Msg json.RawMessage `json:"msg,omitempty"` }
type Ros ¶
type Ros struct {
// contains filtered or unexported fields
}
func (*Ros) RunForever ¶
func (ros *Ros) RunForever()
type RosMessage ¶
type RosMessage struct {
// contains filtered or unexported fields
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Advertise ¶
func (service *Service) Advertise(callback ServiceCallback) error
func (*Service) Call ¶
func (service *Service) Call(request json.RawMessage) (json.RawMessage, error)
func (*Service) Unadvertise ¶
type ServiceAdvertise ¶
type ServiceCall ¶
type ServiceCallback ¶
type ServiceCallback func(json.RawMessage) (bool, json.RawMessage)
type ServiceResponse ¶
type ServiceUnadvertise ¶
type SubscribeMessage ¶
type SubscribeMessage struct { Op string `json:"op"` Id string `json:"id,omitempty"` Topic string `json:"topic"` Type string `json:"type,omitempty"` ThrottleRate int `json:"throttle_rate,omitempty"` //In msec QueueLength int `json:"queue_length,omitempty"` //Default: 1 FragmentSize int `json:"fragment_size,omitempty"` Compression string `json:"compression,omitempty"` }
type Topic ¶
type Topic struct {
// contains filtered or unexported fields
}
func (*Topic) Subscribe ¶
func (topic *Topic) Subscribe(callback TopicCallback) error
func (*Topic) Unadvertise ¶
func (*Topic) Unsubscribe ¶
type TopicCallback ¶
type TopicCallback func(json.RawMessage)
type UnadvertiseMessage ¶
type UnsubscribeMessage ¶
Click to show internal directories.
Click to hide internal directories.