rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.patch Namespace Reference

Patches ROS1 classes with ROS2-compatible members, and vice versa. More...

Functions

 client_call_wrapper (call)
 Returns service client call-function wrapped to ensure invoke with request instance.
 
 Duration__abs (self)
 Returns absolute value of this duration.
 
 Duration__add (self, other)
 Returns a new duration, adding given duration to this.
 
 Duration__divmod (self, val)
 Returns the divmod result for this and another duration.
 
 Duration__floordiv (self, val)
 Floor-divides this duration by a number or a duration.
 
 Duration__from_msg (cls, msg)
 Returns a new Duration from given.
 
 Duration__init (self, secs=0, nsecs=0, *seconds=0, nanoseconds=0)
 Constructs a new `Duration`, using either ROS1 or ROS2 arguments.
 
 Duration__mod (self, val)
 Returns the remainder of dividing this duration by another duration.
 
 Duration__mul (self, val)
 Multiplies this duration by an integer or float.
 
 Duration__neg (self)
 Returns negative value of this duration.
 
 Duration__sub (self, other)
 Subtracts a duration from this duration.
 
 Duration__truediv (self, val)
 Divides this duration by an integer or float.
 
 patch_ros1 ()
 Patches ROS1 classes with generic compatibility with ROS2 and rosros.
 
 patch_ros1_rclify ()
 Patches ROS1 classes with full stand-ins for ROS2 methods and properties.
 
 patch_ros2 ()
 Patches ROS2 classes with full stand-ins for ROS1 methods and properties.
 
 publish_wrapper (publish)
 Returns publish-function wrapped to ensure invoke with message instance.
 
 Publisher__assert_liveliness (self)
 Does nothing (ROS2 compatibility stand-in).
 
 Publisher__publish (self, *args, **kwds)
 Publishes message, supports giving message field values as dictionary in args[0].
 
 Rate__remaining (self)
 Returns time remaining for rate to sleep, as `Duration`.
 
 rostimer_sleep_on_event (duration, event=None)
 Sleeps for the specified duration in ROS time, or until event gets set.
 
 Service__init (self, name, service_class, handler, buff_size=65536, error_handler=None)
 Wraps Service.__init__() to support returning None from server callback.
 
 Service__init (self, service_handle, srv_type, srv_name, callback, callback_group, qos_profile)
 Wraps Service.__init__() to support returning list/dict/None from server callback.
 
 Service__spin (self)
 Spins ROS2 until service or node shutdown.
 
 service_serve_wrapper (self, serve)
 Returns service serve-function wrapped to ensure return with response instance.
 
 ServiceProxy__call (self, *args, **kwargs)
 Calls the service, supports giving request field values as dictionary in args[0].
 
 ServiceProxy__call_async (self, *args, **kwargs)
 Make a service request and asyncronously get the result.
 
 ServiceProxy__remove_pending_request (self, future)
 Does nothing (ROS2 compatibility stand-in).
 
 ServiceProxy__service_is_ready (self)
 Returns whether service is ready.
 
 ServiceProxy__wait_for_service (self, timeout=None, timeout_sec=None)
 Waits for a service server to become ready.
 
 set_extra_attribute (obj, name, value)
 Sets value for object patched attribute.
 
 Subscriber__init (self, name, data_class, callback=None, callback_args=None, queue_size=None, buff_size=65536, tcp_nodelay=False)
 Wraps rospy.Subscriber.__init__() to add raw bytes autoconversion support.
 
 SubscriberImpl__receive_callback (self, msgs, connection)
 Wraps rospy.topics.SubscriberImpl.receive_callback() with raw bytes autoconversion.
 
 Subscription__add_callback (self, cb, cb_args)
 Registers a callback to be invoked whenever a new message is received.
 
 Subscription__callback_args (self)
 Returns callback args given in constructor.
 
 Subscription__init (self, subscription_handle, msg_type, topic, callback, callback_group, qos_profile, raw, event_callbacks)
 Wraps Subscription.__init__() to support AnyMsg and multiple callbacks.
 
 Subscription__invoke_callbacks (self, msg)
 Handler for received message, invokes all added callbacks.
 
 Subscription__remove_callback (self, cb, cb_args)
 Unregisters a message callback.
 
 Temporal__to_msg (self)
 Returns a new Time or Duration from this.
 
 Time__clock_type (self)
 Returns the ClockType of this Time.
 
 Time__del (self)
 Clear object-related data, if any.
 
 Time__from_msg (cls, msg, clock_type=ClockType.ROS_TIME)
 Returns a new Time from given.
 
 Time__init (self, secs=0, nsecs=0, *seconds=0, nanoseconds=0, clock_type=ClockType.SYSTEM_TIME)
 Constructs a new ROS1 `Time`, using either ROS1 or ROS2 arguments.
 
 Time__seconds_nanoseconds (self)
 Returns time as (seconds, nanoseconds).
 
 Timer__cancel (self)
 Sets timer on pause, until reset or shutdown.
 
 Timer__clock (self)
 Returns the Clock used by this timer.
 
 Timer__getName (self)
 Returns timer name.
 
 Timer__ident (self)
 Returns timer identifier as a non-negative integer.
 
 Timer__init (self, callback, callback_group, timer_period_ns, clock, *context=None)
 Constructs a new ROS2 `Timer`.
 
 Timer__init (self, period, callback, oneshot=False, reset=False)
 Constructs a new ROS1 Timer.
 
 Timer__is_alive (self)
 Returns whether timer is still running.
 
 Timer__is_canceled (self)
 Returns whether the timer has been canceled (paused until reset or shutdown).
 
 Timer__is_ready (self)
 Returns whether timer callback should be called right now.
 
 Timer__isDaemon (self)
 Returns `True`.
 
 Timer__join (self)
 Returns when timer has terminated.
 
 Timer__reset (self)
 Sets last call time to now, postponing next callback by full period; uncancels if canceled.
 
 Timer__run (self)
 Override rospy.Timer.run() to support canceling and resetting, and call timestamps.
 
 Timer__setDaemon (self, daemonic)
 Raises error.
 
 Timer__setName (self, name)
 Sets timer name.
 
 Timer__shutdown (self)
 Stop firing callbacks.
 
 Timer__time_since_last_call (self)
 Returns nanoseconds since last timer callback (ROS2 compatibility stand-in).
 
 Timer__time_until_next_call (self)
 Returns nanoseconds until next timer callback (ROS2 compatibility stand-in).
 
 Timer__timer_period_ns (self)
 Returns timer period in nanoseconds.
 
 Timer__timer_period_ns__setter (self, value)
 Sets timer period in nanoseconds, resets timer if running.
 
 TVal__is_nonzero (self)
 Returns whether value is not zero.
 
 TVal__is_zero (self)
 Returns whether value is zero.
 
 TVal__nsecs (self)
 Returns the nanoseconds portion as `int`.
 
 TVal__secs (self)
 Returns the seconds portion as `int`.
 
 TVal__to_nsec (self)
 Returns value in nanoseconds as `int`.
 
 TVal__to_sec (self)
 Returns value in seconds as `float`.
 

Variables

 _anymsg
 
 _callbacks
 
 _clock
 
 _invoke_callbacks
 
 _name
 
 _paused
 
 _period
 
 _shutdown
 
 _time_last
 
 _time_next
 
 _wakeable
 
 call
 
 data_class
 
dict EXTRA_ATTRS = {}
 Extra attributes for objects with __slots__, as {id(obj): {attrname: attrval}}.
 
 impl
 
 nanoseconds
 
 nsecs
 
bool PATCHED = False
 Whether generic patching has been done during this runtime.
 
bool PATCHED_FULL = False
 Whether full patching has been done during this runtime.
 
 resolved_name
 
 ROS1_Duration__init = rospy.Duration.__init__
 
 ROS1_Publisher__publish = rospy.Publisher.publish
 
 ROS1_Service__init = rospy.Service.__init__
 
 ROS1_ServiceProxy__call = rospy.ServiceProxy.call
 
 ROS1_Subscriber__init = rospy.Subscriber.__init__
 
 ROS1_SubscriberImpl__receive_callback = rospy.topics._SubscriberImpl.receive_callback
 
 ROS1_Time__init = rospy.Time.__init__
 
 ROS1_Timer__init = rospy.Timer.__init__
 
 ROS2_Duration__init = rclpy.duration.Duration.__init__
 
 ROS2_Service__init = rclpy.service.Service.__init__
 
 ROS2_Subscription__init = rclpy.subscription.Subscription.__init__
 
 ROS2_Time__init = rclpy.time.Time.__init__
 
 ROS2_Timer__init = rclpy.timer.Timer.__init__
 
 rospy = None
 
 secs
 
int TIMER_COUNTER = 0
 

Detailed Description

Patches ROS1 classes with ROS2-compatible members, and vice versa.

Function Documentation

◆ client_call_wrapper()

rosros.patch.client_call_wrapper (   call)

Returns service client call-function wrapped to ensure invoke with request instance.

Definition at line 550 of file patch.py.

◆ Duration__abs()

rosros.patch.Duration__abs (   self)

Returns absolute value of this duration.

Definition at line 595 of file patch.py.

◆ Duration__add()

rosros.patch.Duration__add (   self,
  other 
)

Returns a new duration, adding given duration to this.

Parameters
otheranother `Duration` instance
Returns
new `Duration` instance

Definition at line 606 of file patch.py.

◆ Duration__divmod()

rosros.patch.Duration__divmod (   self,
  val 
)

Returns the divmod result for this and another duration.

Parameters
valdivision factor, as `Duration` to divide by
Returns
(division floored result as `int`, remaining time as `Duration`)

Definition at line 672 of file patch.py.

◆ Duration__floordiv()

rosros.patch.Duration__floordiv (   self,
  val 
)

Floor-divides this duration by a number or a duration.

Parameters
valdivision factor, as `int` or `float` or `Duration` to divide by
Returns
new `Duration` instance if divided by a number, or seconds as integer if divided by a `Duration`

Definition at line 637 of file patch.py.

◆ Duration__from_msg()

rosros.patch.Duration__from_msg (   cls,
  msg 
)

Returns a new Duration from given.

Definition at line 347 of file patch.py.

◆ Duration__init()

rosros.patch.Duration__init (   self,
  secs = 0,
  nsecs = 0,
seconds = 0,
  nanoseconds = 0 
)

Constructs a new `Duration`, using either ROS1 or ROS2 arguments.

Constructs a new ROS2 `Duration`, using either ROS1 or ROS2 arguments.

Definition at line 337 of file patch.py.

◆ Duration__mod()

rosros.patch.Duration__mod (   self,
  val 
)

Returns the remainder of dividing this duration by another duration.

Parameters
valmodulo factor, as `int` or `float` to mod by
Returns
new `Duration` instance of remaining time after mod

Definition at line 662 of file patch.py.

◆ Duration__mul()

rosros.patch.Duration__mul (   self,
  val 
)

Multiplies this duration by an integer or float.

Parameters
valmultiplication factor, as `int` or `float`
Returns
new `Duration` instance

Definition at line 626 of file patch.py.

◆ Duration__neg()

rosros.patch.Duration__neg (   self)

Returns negative value of this duration.

Definition at line 591 of file patch.py.

◆ Duration__sub()

rosros.patch.Duration__sub (   self,
  other 
)

Subtracts a duration from this duration.

Parameters
otheranother `Duration` instance
Returns
new `Duration` instance

Definition at line 616 of file patch.py.

◆ Duration__truediv()

rosros.patch.Duration__truediv (   self,
  val 
)

Divides this duration by an integer or float.

Parameters
valdivision factor, as `int` or `float` or `Duration` to divide by
Returns
new `Duration` instance if divided by a number, or seconds as float if divided by a `Duration`

Definition at line 650 of file patch.py.

◆ patch_ros1()

rosros.patch.patch_ros1 ( )

Patches ROS1 classes with generic compatibility with ROS2 and rosros.

Definition at line 56 of file patch.py.

◆ patch_ros1_rclify()

rosros.patch.patch_ros1_rclify ( )

Patches ROS1 classes with full stand-ins for ROS2 methods and properties.

Definition at line 76 of file patch.py.

◆ patch_ros2()

rosros.patch.patch_ros2 ( )

Patches ROS2 classes with full stand-ins for ROS1 methods and properties.

Definition at line 127 of file patch.py.

◆ publish_wrapper()

rosros.patch.publish_wrapper (   publish)

Returns publish-function wrapped to ensure invoke with message instance.

Definition at line 574 of file patch.py.

◆ Publisher__assert_liveliness()

rosros.patch.Publisher__assert_liveliness (   self)

Does nothing (ROS2 compatibility stand-in).

Definition at line 233 of file patch.py.

◆ Publisher__publish()

rosros.patch.Publisher__publish (   self,
args,
**  kwds 
)

Publishes message, supports giving message field values as dictionary in args[0].

Definition at line 239 of file patch.py.

◆ Rate__remaining()

rosros.patch.Rate__remaining (   self)

Returns time remaining for rate to sleep, as `Duration`.

Definition at line 754 of file patch.py.

◆ rostimer_sleep_on_event()

rosros.patch.rostimer_sleep_on_event (   duration,
  event = None 
)

Sleeps for the specified duration in ROS time, or until event gets set.

Returns immediately if duration is negative or event is set.

Parameters
durationseconds (or rospy.Duration) to sleep
eventthreading.Event to wait() on, if any, will return early if event gets set
Exceptions
ROSInterruptExceptionif ROS shutdown occurs before sleep completes
ROSTimeMovedBackwardsExceptionif ROS time is set backwards

Definition at line 506 of file patch.py.

◆ Service__init() [1/2]

rosros.patch.Service__init (   self,
  name,
  service_class,
  handler,
  buff_size = 65536,
  error_handler = None 
)

Wraps Service.__init__() to support returning None from server callback.

Definition at line 248 of file patch.py.

◆ Service__init() [2/2]

rosros.patch.Service__init (   self,
  service_handle,
  srv_type,
  srv_name,
  callback,
  callback_group,
  qos_profile 
)

Wraps Service.__init__() to support returning list/dict/None from server callback.

Definition at line 681 of file patch.py.

◆ Service__spin()

rosros.patch.Service__spin (   self)

Spins ROS2 until service or node shutdown.

Definition at line 688 of file patch.py.

◆ service_serve_wrapper()

rosros.patch.service_serve_wrapper (   self,
  serve 
)

Returns service serve-function wrapped to ensure return with response instance.

Definition at line 225 of file patch.py.

◆ ServiceProxy__call()

rosros.patch.ServiceProxy__call (   self,
args,
**  kwargs 
)

Calls the service, supports giving request field values as dictionary in args[0].

Definition at line 256 of file patch.py.

◆ ServiceProxy__call_async()

rosros.patch.ServiceProxy__call_async (   self,
args,
**  kwargs 
)

Make a service request and asyncronously get the result.

Service is invoked in a background thread.

This accepts either a request message instance, or positional and keyword arguments to create a new request instance.

Returns
`concurrent.futures.Future`-conforming interface that completes when request does

Definition at line 273 of file patch.py.

◆ ServiceProxy__remove_pending_request()

rosros.patch.ServiceProxy__remove_pending_request (   self,
  future 
)

Does nothing (ROS2 compatibility stand-in).

Parameters
futureignored (ROS2 compatibility stand-in)

Definition at line 284 of file patch.py.

◆ ServiceProxy__service_is_ready()

rosros.patch.ServiceProxy__service_is_ready (   self)

Returns whether service is ready.

Provides rospy.ServiceProxy with service_is_ready() like rclpy.client.Client has.

Returns
True if a server is ready, False otherwise

Definition at line 293 of file patch.py.

◆ ServiceProxy__wait_for_service()

rosros.patch.ServiceProxy__wait_for_service (   self,
  timeout = None,
  timeout_sec = None 
)

Waits for a service server to become ready.

Returns as soon as a server becomes ready or if the timeout expires.

Gives rospy.ServiceProxy.wait_for_service the behavior of rclpy.client.Client.wait_for_service.

Parameters
timeouttime to wait, as seconds or ROS Duration. If None, then wait forever.
timeout_secseconds to wait; if None, wait forever (ROS2 compatibility stand-in)
Returns
True if server became ready or False on a timeout

Definition at line 308 of file patch.py.

◆ set_extra_attribute()

rosros.patch.set_extra_attribute (   obj,
  name,
  value 
)

Sets value for object patched attribute.

Definition at line 215 of file patch.py.

◆ Subscriber__init()

rosros.patch.Subscriber__init (   self,
  name,
  data_class,
  callback = None,
  callback_args = None,
  queue_size = None,
  buff_size = 65536,
  tcp_nodelay = False 
)

Wraps rospy.Subscriber.__init__() to add raw bytes autoconversion support.

Definition at line 320 of file patch.py.

◆ SubscriberImpl__receive_callback()

rosros.patch.SubscriberImpl__receive_callback (   self,
  msgs,
  connection 
)

Wraps rospy.topics.SubscriberImpl.receive_callback() with raw bytes autoconversion.

Definition at line 328 of file patch.py.

◆ Subscription__add_callback()

rosros.patch.Subscription__add_callback (   self,
  cb,
  cb_args 
)

Registers a callback to be invoked whenever a new message is received.

Parameters
cbcallback function to invoke with message data instance, i.e. fn(data). If callback args is set, they will be passed in as the second argument.
cb_cargsadditional arguments to pass to callback

Definition at line 732 of file patch.py.

◆ Subscription__callback_args()

rosros.patch.Subscription__callback_args (   self)

Returns callback args given in constructor.

Definition at line 710 of file patch.py.

◆ Subscription__init()

rosros.patch.Subscription__init (   self,
  subscription_handle,
  msg_type,
  topic,
  callback,
  callback_group,
  qos_profile,
  raw,
  event_callbacks 
)

Wraps Subscription.__init__() to support AnyMsg and multiple callbacks.

Definition at line 699 of file patch.py.

◆ Subscription__invoke_callbacks()

rosros.patch.Subscription__invoke_callbacks (   self,
  msg 
)

Handler for received message, invokes all added callbacks.

Definition at line 714 of file patch.py.

◆ Subscription__remove_callback()

rosros.patch.Subscription__remove_callback (   self,
  cb,
  cb_args 
)

Unregisters a message callback.

Parameters
cbcallback function
cb_cargsadditional arguments associated with callback

Definition at line 743 of file patch.py.

◆ Temporal__to_msg()

rosros.patch.Temporal__to_msg (   self)

Returns a new Time or Duration from this.

Definition at line 342 of file patch.py.

◆ Time__clock_type()

rosros.patch.Time__clock_type (   self)

Returns the ClockType of this Time.

Definition at line 371 of file patch.py.

◆ Time__del()

rosros.patch.Time__del (   self)

Clear object-related data, if any.

Definition at line 363 of file patch.py.

◆ Time__from_msg()

rosros.patch.Time__from_msg (   cls,
  msg,
  clock_type = ClockType.ROS_TIME 
)

Returns a new Time from given.

Definition at line 377 of file patch.py.

◆ Time__init()

rosros.patch.Time__init (   self,
  secs = 0,
  nsecs = 0,
seconds = 0,
  nanoseconds = 0,
  clock_type = ClockType.SYSTEM_TIME 
)

Constructs a new ROS1 `Time`, using either ROS1 or ROS2 arguments.

Constructs a new ROS2 `Time`, using either ROS1 or ROS2 arguments.

Definition at line 354 of file patch.py.

◆ Time__seconds_nanoseconds()

rosros.patch.Time__seconds_nanoseconds (   self)

Returns time as (seconds, nanoseconds).

Definition at line 367 of file patch.py.

◆ Timer__cancel()

rosros.patch.Timer__cancel (   self)

Sets timer on pause, until reset or shutdown.

Definition at line 448 of file patch.py.

◆ Timer__clock()

rosros.patch.Timer__clock (   self)

Returns the Clock used by this timer.

Definition at line 460 of file patch.py.

◆ Timer__getName()

rosros.patch.Timer__getName (   self)

Returns timer name.

Definition at line 774 of file patch.py.

◆ Timer__ident()

rosros.patch.Timer__ident (   self)

Returns timer identifier as a non-negative integer.

Definition at line 770 of file patch.py.

◆ Timer__init() [1/2]

rosros.patch.Timer__init (   self,
  callback,
  callback_group,
  timer_period_ns,
  clock,
context = None 
)

Constructs a new ROS2 `Timer`.

Definition at line 763 of file patch.py.

◆ Timer__init() [2/2]

rosros.patch.Timer__init (   self,
  period,
  callback,
  oneshot = False,
  reset = False 
)

Constructs a new ROS1 Timer.

Plugs in ROS2 API compatibility: cancelling, resetting, and public timing info.

Parameters
perioddesired period between callbacks, as rospy.Duration
callbackcallback to be called, taking rospy.TimerEvent
oneshotif True, fire only once, otherwise fire continuously until shutdown is called [default: False]
resetif True, timer is reset when rostime moved backward. [default: False]

Definition at line 395 of file patch.py.

◆ Timer__is_alive()

rosros.patch.Timer__is_alive (   self)

Returns whether timer is still running.

Definition at line 795 of file patch.py.

◆ Timer__is_canceled()

rosros.patch.Timer__is_canceled (   self)

Returns whether the timer has been canceled (paused until reset or shutdown).

Definition at line 473 of file patch.py.

◆ Timer__is_ready()

rosros.patch.Timer__is_ready (   self)

Returns whether timer callback should be called right now.

Definition at line 477 of file patch.py.

◆ Timer__isDaemon()

rosros.patch.Timer__isDaemon (   self)

Returns `True`.

Definition at line 782 of file patch.py.

◆ Timer__join()

rosros.patch.Timer__join (   self)

Returns when timer has terminated.

Definition at line 790 of file patch.py.

◆ Timer__reset()

rosros.patch.Timer__reset (   self)

Sets last call time to now, postponing next callback by full period; uncancels if canceled.

Definition at line 455 of file patch.py.

◆ Timer__run()

rosros.patch.Timer__run (   self)

Override rospy.Timer.run() to support canceling and resetting, and call timestamps.

Definition at line 408 of file patch.py.

◆ Timer__setDaemon()

rosros.patch.Timer__setDaemon (   self,
  daemonic 
)

Raises error.

Definition at line 786 of file patch.py.

◆ Timer__setName()

rosros.patch.Timer__setName (   self,
  name 
)

Sets timer name.

Definition at line 778 of file patch.py.

◆ Timer__shutdown()

rosros.patch.Timer__shutdown (   self)

Stop firing callbacks.

Definition at line 403 of file patch.py.

◆ Timer__time_since_last_call()

rosros.patch.Timer__time_since_last_call (   self)

Returns nanoseconds since last timer callback (ROS2 compatibility stand-in).

Definition at line 483 of file patch.py.

◆ Timer__time_until_next_call()

rosros.patch.Timer__time_until_next_call (   self)

Returns nanoseconds until next timer callback (ROS2 compatibility stand-in).

Definition at line 487 of file patch.py.

◆ Timer__timer_period_ns()

rosros.patch.Timer__timer_period_ns (   self)

Returns timer period in nanoseconds.

Definition at line 464 of file patch.py.

◆ Timer__timer_period_ns__setter()

rosros.patch.Timer__timer_period_ns__setter (   self,
  value 
)

Sets timer period in nanoseconds, resets timer if running.

Definition at line 468 of file patch.py.

◆ TVal__is_nonzero()

rosros.patch.TVal__is_nonzero (   self)

Returns whether value is not zero.

Definition at line 808 of file patch.py.

◆ TVal__is_zero()

rosros.patch.TVal__is_zero (   self)

Returns whether value is zero.

Definition at line 812 of file patch.py.

◆ TVal__nsecs()

rosros.patch.TVal__nsecs (   self)

Returns the nanoseconds portion as `int`.

Definition at line 828 of file patch.py.

◆ TVal__secs()

rosros.patch.TVal__secs (   self)

Returns the seconds portion as `int`.

Definition at line 824 of file patch.py.

◆ TVal__to_nsec()

rosros.patch.TVal__to_nsec (   self)

Returns value in nanoseconds as `int`.

Definition at line 820 of file patch.py.

◆ TVal__to_sec()

rosros.patch.TVal__to_sec (   self)

Returns value in seconds as `float`.

Definition at line 816 of file patch.py.

Variable Documentation

◆ _anymsg

rosros.patch._anymsg
protected

Definition at line 325 of file patch.py.

◆ _callbacks

rosros.patch._callbacks
protected

Definition at line 707 of file patch.py.

◆ _clock

rosros.patch._clock
protected

Definition at line 400 of file patch.py.

◆ _invoke_callbacks

rosros.patch._invoke_callbacks
protected

Definition at line 702 of file patch.py.

◆ _name

rosros.patch._name
protected

Definition at line 768 of file patch.py.

◆ _paused

rosros.patch._paused
protected

Definition at line 396 of file patch.py.

◆ _period

rosros.patch._period
protected

Definition at line 470 of file patch.py.

◆ _shutdown

rosros.patch._shutdown
protected

Definition at line 405 of file patch.py.

◆ _time_last

rosros.patch._time_last
protected

Definition at line 398 of file patch.py.

◆ _time_next

rosros.patch._time_next
protected

Definition at line 399 of file patch.py.

◆ _wakeable

rosros.patch._wakeable
protected

Definition at line 397 of file patch.py.

◆ call

rosros.patch.call

Definition at line 277 of file patch.py.

◆ data_class

rosros.patch.data_class

Definition at line 330 of file patch.py.

◆ EXTRA_ATTRS

dict rosros.patch.EXTRA_ATTRS = {}

Extra attributes for objects with __slots__, as {id(obj): {attrname: attrval}}.

Definition at line 47 of file patch.py.

◆ impl

rosros.patch.impl

Definition at line 704 of file patch.py.

◆ nanoseconds

rosros.patch.nanoseconds

Definition at line 814 of file patch.py.

◆ nsecs

rosros.patch.nsecs

Definition at line 344 of file patch.py.

◆ PATCHED

bool rosros.patch.PATCHED = False

Whether generic patching has been done during this runtime.

Definition at line 50 of file patch.py.

◆ PATCHED_FULL

bool rosros.patch.PATCHED_FULL = False

Whether full patching has been done during this runtime.

Definition at line 53 of file patch.py.

◆ resolved_name

rosros.patch.resolved_name

Definition at line 311 of file patch.py.

◆ ROS1_Duration__init

rosros.patch.ROS1_Duration__init = rospy.Duration.__init__

Definition at line 335 of file patch.py.

◆ ROS1_Publisher__publish

rosros.patch.ROS1_Publisher__publish = rospy.Publisher.publish

Definition at line 237 of file patch.py.

◆ ROS1_Service__init

rosros.patch.ROS1_Service__init = rospy.Service.__init__

Definition at line 246 of file patch.py.

◆ ROS1_ServiceProxy__call

rosros.patch.ROS1_ServiceProxy__call = rospy.ServiceProxy.call

Definition at line 254 of file patch.py.

◆ ROS1_Subscriber__init

rosros.patch.ROS1_Subscriber__init = rospy.Subscriber.__init__

Definition at line 317 of file patch.py.

◆ ROS1_SubscriberImpl__receive_callback

rosros.patch.ROS1_SubscriberImpl__receive_callback = rospy.topics._SubscriberImpl.receive_callback

Definition at line 318 of file patch.py.

◆ ROS1_Time__init

rosros.patch.ROS1_Time__init = rospy.Time.__init__

Definition at line 352 of file patch.py.

◆ ROS1_Timer__init

rosros.patch.ROS1_Timer__init = rospy.Timer.__init__

Definition at line 382 of file patch.py.

◆ ROS2_Duration__init

rosros.patch.ROS2_Duration__init = rclpy.duration.Duration.__init__

Definition at line 584 of file patch.py.

◆ ROS2_Service__init

rosros.patch.ROS2_Service__init = rclpy.service.Service.__init__

Definition at line 679 of file patch.py.

◆ ROS2_Subscription__init

rosros.patch.ROS2_Subscription__init = rclpy.subscription.Subscription.__init__

Definition at line 697 of file patch.py.

◆ ROS2_Time__init

rosros.patch.ROS2_Time__init = rclpy.time.Time.__init__

Definition at line 800 of file patch.py.

◆ ROS2_Timer__init

rosros.patch.ROS2_Timer__init = rclpy.timer.Timer.__init__

Definition at line 759 of file patch.py.

◆ rospy

rosros.patch.rospy = None

Definition at line 22 of file patch.py.

◆ secs

rosros.patch.secs

Definition at line 344 of file patch.py.

◆ TIMER_COUNTER

int rosros.patch.TIMER_COUNTER = 0

Definition at line 761 of file patch.py.