Class: ROS::Master::Subscriber
- Inherits:
-
Object
- Object
- ROS::Master::Subscriber
- Defined in:
- lib/ros/master.rb
Overview
subscriber of topic
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#caller_id ⇒ Object
Returns the value of attribute caller_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(caller_id, topic_name, topic_type, api) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
#initialize(caller_id, topic_name, topic_type, api) ⇒ Subscriber
Returns a new instance of Subscriber.
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
#api ⇒ Object
Returns the value of attribute api.
92 93 94 |
# File 'lib/ros/master.rb', line 92 def api @api end |
#caller_id ⇒ Object
Returns the value of attribute caller_id.
89 90 91 |
# File 'lib/ros/master.rb', line 89 def caller_id @caller_id end |
#name ⇒ Object
Returns the value of attribute name.
90 91 92 |
# File 'lib/ros/master.rb', line 90 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
91 92 93 |
# File 'lib/ros/master.rb', line 91 def type @type end |