rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rospify.service.ServiceProxy Class Reference

Stand-in for `rospy.ServiceProxy`, wrapping the creation of ROS2 service client. More...

Inheritance diagram for rosros.rospify.service.ServiceProxy:
Inheritance graph

Public Member Functions

 __new__ (cls, name, service_class, persistent=None, headers=None)
 Returns rclpy.client.Client instance.
 
 __subclasshook__ (cls, C)
 Returns true if C is a ROS2 service client class, else `NotImplemented`.
 

Detailed Description

Stand-in for `rospy.ServiceProxy`, wrapping the creation of ROS2 service client.

Definition at line 130 of file service.py.

Member Function Documentation

◆ __new__()

rosros.rospify.service.ServiceProxy.__new__ (   cls,
  name,
  service_class,
  persistent = None,
  headers = None 
)

Returns rclpy.client.Client instance.

Parameters
namename of service to call
service_classauto-generated service class
persistentignored (ROS1 compatibility stand-in)
headersignored (ROS1 compatibility stand-in)

Definition at line 141 of file service.py.

◆ __subclasshook__()

rosros.rospify.service.ServiceProxy.__subclasshook__ (   cls,
  C 
)

Returns true if C is a ROS2 service client class, else `NotImplemented`.

Definition at line 145 of file service.py.


The documentation for this class was generated from the following file: