Class: ROS::Master::ParameterSubscriber

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

Overview

parameter subscriber

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller_id, api, key) ⇒ ParameterSubscriber

Returns a new instance of ParameterSubscriber.

Parameters:

  • caller_id (String)

    caller_id of subscriber node

  • api (String)

    XMLRPC URI of subscriber

  • key (String)

    key for parameter



45
46
47
48
49
# File 'lib/ros/master.rb', line 45

def initialize(caller_id, api, key)
  @caller_id = caller_id
  @api = api
  @key = key
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



53
54
55
# File 'lib/ros/master.rb', line 53

def api
  @api
end

#caller_idObject

Returns the value of attribute caller_id.



51
52
53
# File 'lib/ros/master.rb', line 51

def caller_id
  @caller_id
end

#keyObject

Returns the value of attribute key.



52
53
54
# File 'lib/ros/master.rb', line 52

def key
  @key
end