rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
|
Partial stand-in for `rospy.MasterProxy`. More...
Public Member Functions | |
__init__ (self, node) | |
getPublishedTopics (self, subgraph="") | |
Get list of topics that can be subscribed to. | |
getSystemState (self) | |
Retrieve list representation of system state (i.e. | |
getTopicTypes (self) | |
Returns a list of topic names and their types. | |
Protected Attributes | |
_node | |
Partial stand-in for `rospy.MasterProxy`.
Definition at line 18 of file msproxy.py.
rosros.rospify.msproxy.MasterProxy.__init__ | ( | self, | |
node | |||
) |
node | rclpy.Node instance |
Definition at line 24 of file msproxy.py.
rosros.rospify.msproxy.MasterProxy.getPublishedTopics | ( | self, | |
subgraph = "" |
|||
) |
Get list of topics that can be subscribed to.
This does not return topics that have no publishers. See `getSystemState()` to get more comprehensive list.
subgraph | return only topics under subgraph, e.g. "/foo" will match "/foo/bar" but not "/foobar". "" returns all topics. |
Definition at line 74 of file msproxy.py.
rosros.rospify.msproxy.MasterProxy.getSystemState | ( | self | ) |
Retrieve list representation of system state (i.e.
publishers, subscribers, and services).
System state is in list representation:: [publishers, subscribers, services].
publishers is of the form:: [ [topic1, [topic1Publisher1...topic1PublisherN]] ... ]
subscribers is of the form:: [ [topic1, [topic1Subscriber1...topic1SubscriberN]] ... ]
services is of the form:: [ [service1, []] ... ]
Definition at line 44 of file msproxy.py.
rosros.rospify.msproxy.MasterProxy.getTopicTypes | ( | self | ) |
Returns a list of topic names and their types.
Definition at line 89 of file msproxy.py.
|
protected |
Definition at line 25 of file msproxy.py.