Method: Rclrb::Node#create_client

Defined in:
lib/rclrb/node.rb

#create_client(srv_type, srv_name, qos_profile = QoSProfileServicesDefault) ⇒ Object

Create a new service client. Parameters:

  • srv_type: The service type.

  • srv_name (str): The name of the service.

  • qos_profile (optional QoSProfile): The quality of service profile to apply the service client.

  • callback_group (optional CallbackGroup): The callback group for the service client. If None, then the nodes default callback group is used



113
114
115
116
117
# File 'lib/rclrb/node.rb', line 113

def create_client(srv_type, srv_name, qos_profile=QoSProfileServicesDefault)
  handle = CApi::rcl_get_zero_initialized_client()
  client = Client.new(handle, @node_handle, srv_type, srv_name, qos_profile)
  return client
end