List of all members.
Detailed Description
Publishes messages of a given type on a given ROS topic.
- Author:
- ethan.rublee@gmail.com (Ethan Rublee)
-
damonkohler@google.com (Damon Kohler)
- Parameters:
-
<T> | the Publisher may only publish messages of this type |
Definition at line 32 of file Publisher.java.
Member Function Documentation
void org.ros.node.topic.Publisher< T >.addListener |
( |
PublisherListener< T > |
listener | ) |
|
Add a new lifecycle listener to the Publisher.
- Parameters:
-
Get the number of Subscribers currently connected to the Publisher.
This counts the number of Subscriber registered. If a Subscriber does not shutdown properly it will not be unregistered and thus will contribute to this count.
- Returns:
- the number of Subscribers currently connected to the Publisher
T org.ros.node.topic.Publisher< T >.newMessage |
( |
| ) |
|
Create a new message.
- Returns:
- a new message
void org.ros.node.topic.Publisher< T >.publish |
( |
T |
message | ) |
|
Publishes a message. This message will be available on the topic that this Publisher has been associated with.
- Parameters:
-
message | the message to publish |
void org.ros.node.topic.Publisher< T >.setLatchMode |
( |
boolean |
enabled | ) |
|
void org.ros.node.topic.Publisher< T >.shutdown |
( |
long |
timeout, |
|
|
TimeUnit |
unit |
|
) |
| |
void org.ros.node.topic.Publisher< T >.shutdown |
( |
| ) |
|
The documentation for this interface was generated from the following file: