Definition at line 24 of file publisher.py.
◆ __init__()
| def robotide.publish.publisher._Publisher.__init__ |
( |
|
self | ) |
|
◆ _get_topic()
| str robotide.publish.publisher._Publisher._get_topic |
( |
Type[RideMessage] |
topic_cls | ) |
|
|
staticprivate |
◆ _validate_listener()
| def robotide.publish.publisher._Publisher._validate_listener |
( |
Callable |
listener | ) |
|
|
staticprivate |
◆ publish()
| def robotide.publish.publisher._Publisher.publish |
( |
|
self, |
|
|
Type[RideMessage] |
topic, |
|
|
|
message |
|
) |
| |
All subscribed listeners' param signatures have been guaranteed.
Definition at line 50 of file publisher.py.
◆ subscribe()
| def robotide.publish.publisher._Publisher.subscribe |
( |
|
self, |
|
|
Callable |
listener, |
|
|
Type[RideMessage] |
topic |
|
) |
| |
The listener's param signature must be (message)
Definition at line 45 of file publisher.py.
◆ unsubscribe()
| def robotide.publish.publisher._Publisher.unsubscribe |
( |
|
self, |
|
|
Callable |
listener, |
|
|
Type[RideMessage] |
topic |
|
) |
| |
◆ unsubscribe_all()
| def robotide.publish.publisher._Publisher.unsubscribe_all |
( |
|
self, |
|
|
|
obj = None |
|
) |
| |
If the given object's:
1. object method
2. class static function
3. class function
is subscribed into PUBLISHER, call this method to unsubscribe all its topics.
Unsubscribe all topics when input is None.
Definition at line 66 of file publisher.py.
◆ _publisher
| robotide.publish.publisher._Publisher._publisher |
|
private |
The documentation for this class was generated from the following file: