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
-
#caller_id ⇒ String
readonly
Caller id of this node.
-
#service_name ⇒ String
readonly
Service name (like ‘/add_two_ints’).
-
#service_type ⇒ Class
readonly
Class instance of srv converted class (like Std_msgs/String).
Instance Method Summary collapse
-
#initialize(caller_id, service_name, service_type) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(caller_id, service_name, service_type) ⇒ Service
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
#caller_id ⇒ String (readonly)
Returns caller id of this node.
28 29 30 |
# File 'lib/ros/service.rb', line 28 def caller_id @caller_id end |
#service_name ⇒ String (readonly)
Returns service name (like ‘/add_two_ints’).
31 32 33 |
# File 'lib/ros/service.rb', line 31 def service_name @service_name end |
#service_type ⇒ Class (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 |