Class: ROS::Master::Publisher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Publisher.

Parameters:

  • caller_id (String)

    caller_id of publisher node

  • topic_name (String)

    name of topic

  • api (String)

    XMLRPC URI of publisher node



99
100
101
102
103
104
# File 'lib/ros/master.rb', line 99

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.



109
110
111
# File 'lib/ros/master.rb', line 109

def api
  @api
end

#caller_idObject

Returns the value of attribute caller_id.



106
107
108
# File 'lib/ros/master.rb', line 106

def caller_id
  @caller_id
end

#nameObject

Returns the value of attribute name.



107
108
109
# File 'lib/ros/master.rb', line 107

def name
  @name
end

#typeObject

Returns the value of attribute type.



108
109
110
# File 'lib/ros/master.rb', line 108

def type
  @type
end