Class: ROS::Master::Publisher
- Inherits:
-
Object
- Object
- ROS::Master::Publisher
- Defined in:
- lib/ros/master.rb
Overview
Publisher struct for Master
Instance Attribute Summary (collapse)
-
- (String) api
Get XMLRPC API URI.
-
- (String) caller_id
Get caller_id.
-
- (String) msg_type
Get type of topic.
-
- (String) name
Get the name of topic.
Instance Method Summary (collapse)
-
- (Publisher) initialize(caller_id, topic_name, topic_type, api)
constructor
A new instance of Publisher.
Constructor Details
- (Publisher) initialize(caller_id, topic_name, topic_type, api)
Returns a new instance of Publisher
132 133 134 135 136 137 |
# File 'lib/ros/master.rb', line 132 def initialize(caller_id, topic_name, topic_type, api) @caller_id = caller_id @name = topic_name @msg_type = topic_type @api = api end |
Instance Attribute Details
- (String) api
Get XMLRPC API URI
153 154 155 |
# File 'lib/ros/master.rb', line 153 def api @api end |
- (String) caller_id
Get caller_id.
141 142 143 |
# File 'lib/ros/master.rb', line 141 def caller_id @caller_id end |
- (String) msg_type
Get type of topic.
149 150 151 |
# File 'lib/ros/master.rb', line 149 def msg_type @msg_type end |
- (String) name
Get the name of topic.
145 146 147 |
# File 'lib/ros/master.rb', line 145 def name @name end |