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

- (ServiceServer) initialize(caller_id, service_name, api, service_api)

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



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

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

- (String) api

Get XMLRPC URI.

Returns:

  • (String)

    URI of service server (XMLRPC URI)



94
95
96
# File 'lib/ros/master.rb', line 94

def api
  @api
end

- (String) caller_id

Get caller_id.

Returns:

  • (String)

    caller_id



82
83
84
# File 'lib/ros/master.rb', line 82

def caller_id
  @caller_id
end

- (String) name

Get the name of service.

Returns:

  • (String)

    name of service.



86
87
88
# File 'lib/ros/master.rb', line 86

def name
  @name
end

- (String) service_api

Get TCPROS api URI.

Returns:

  • (String)

    URI of service (TCPROS URI).



90
91
92
# File 'lib/ros/master.rb', line 90

def service_api
  @service_api
end