Class: ROS::Master::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/ros/master.rb

Overview

subscriber of topic

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller_id, topic_name, topic_type, api) ⇒ Subscriber

Returns a new instance of Subscriber.

Parameters:

  • caller_id (String)

    caller_id of subscriber node

  • topic_name (String)

    name of topic

  • api (String)

    XMLRPC URI of subscriber node



82
83
84
85
86
87
# File 'lib/ros/master.rb', line 82

def initialize(caller_id, topic_name, topic_type, api)
  @caller_id = caller_id
  @name = topic_name
  @type = topic_type
  @api = api
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



92
93
94
# File 'lib/ros/master.rb', line 92

def api
  @api
end

#caller_idObject

Returns the value of attribute caller_id.



89
90
91
# File 'lib/ros/master.rb', line 89

def caller_id
  @caller_id
end

#nameObject

Returns the value of attribute name.



90
91
92
# File 'lib/ros/master.rb', line 90

def name
  @name
end

#typeObject

Returns the value of attribute type.



91
92
93
# File 'lib/ros/master.rb', line 91

def type
  @type
end