Class: ROS::Service
- Inherits:
-
Object
- Object
- ROS::Service
- Defined in:
- lib/ros/service.rb
Overview
Super Class of ServiceServer and ServiceClient
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (String) caller_id
readonly
Caller id of this node.
-
- (String) service_name
readonly
Service name (like '/add_two_ints').
-
- (Class) service_type
readonly
Class instance of srv converted class (like Std_msgs/String).
Instance Method Summary (collapse)
-
- (Service) initialize(caller_id, service_name, service_type)
constructor
A new instance of Service.
Constructor Details
- (Service) initialize(caller_id, service_name, service_type)
Returns a new instance of Service
21 22 23 24 25 |
# File 'lib/ros/service.rb', line 21 def initialize(caller_id, service_name, service_type) @caller_id = caller_id @service_name = service_name @service_type = service_type end |
Instance Attribute Details
- (String) caller_id (readonly)
Returns caller id of this node
28 29 30 |
# File 'lib/ros/service.rb', line 28 def caller_id @caller_id end |
- (String) service_name (readonly)
Returns service name (like ‘/add_two_ints’)
31 32 33 |
# File 'lib/ros/service.rb', line 31 def service_name @service_name end |
- (Class) service_type (readonly)
Returns class instance of srv converted class (like Std_msgs/String)
34 35 36 |
# File 'lib/ros/service.rb', line 34 def service_type @service_type end |