Class: ROS::Master::ServiceServer

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

Overview

service server

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller_id, service_name, api, service_api) ⇒ ServiceServer

Returns a new instance of ServiceServer.

Parameters:

  • caller_id (String)

    caller_id of service server

  • service_name (String)

    name of service

  • api (String)

    XMLRPC URI of service server node

  • service_api (String)

    Service URI



63
64
65
66
67
68
# File 'lib/ros/master.rb', line 63

def initialize(caller_id, service_name, api, service_api)
  @caller_id = caller_id
  @name = service_name
  @api = api
  @service_api = service_api
end

Instance Attribute Details

#apiObject

Returns the value of attribute api.



73
74
75
# File 'lib/ros/master.rb', line 73

def api
  @api
end

#caller_idObject

Returns the value of attribute caller_id.



70
71
72
# File 'lib/ros/master.rb', line 70

def caller_id
  @caller_id
end

#nameObject

Returns the value of attribute name.



71
72
73
# File 'lib/ros/master.rb', line 71

def name
  @name
end

#service_apiObject

Returns the value of attribute service_api.



72
73
74
# File 'lib/ros/master.rb', line 72

def service_api
  @service_api
end