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

- (ParameterSubscriber) initialize(caller_id, api, key)

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



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

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

Instance Attribute Details

- (String) api

Get api URI of this subscriber.

Returns:

  • (String)

    URI of the subscriber.



62
63
64
# File 'lib/ros/master.rb', line 62

def api
  @api
end

- (String) caller_id

Get caller_id.

Returns:

  • (String)

    caller_id



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

def caller_id
  @caller_id
end

- (String) key

Get key of parameter.

Returns:

  • (String)

    key



58
59
60
# File 'lib/ros/master.rb', line 58

def key
  @key
end