ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The command line tool

rostopic info /<your_node>

will give you the information you are after.

The command line tool

rostopic info /<your_node>

will give you the information you are after.after. Try embedding that

The command line tool

rostopic info /<your_node>

will give you the information you are after. Try embedding that

Alternatively you can import the python tool:

>>>import rosnode 
>>>print(rosnode.get_node_info_description("<your_node>")

Similarly you can import rostopic

A quick way to see the elements available is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rostopic info /<your_node>

will give you the information you are after. Try embedding that

Alternatively you can import the python tool:

>>>import >>> import rosnode 
>>>print(rosnode.get_node_info_description("<your_node>")
>>> print(rosnode.get_node_info_description("<your_node>")

Similarly you can import rostopic

A quick way to see the elements available is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rostopic rosnode info /<your_node>

will give you the information you are after. Try embedding that

Alternatively you can import the python tool:

>>> import rosnode 
>>> print(rosnode.get_node_info_description("<your_node>")

Similarly you can import rostopic

A quick way to see the elements available is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rosnode info /<your_node>

will give you the information you are after. Try embedding that

Alternatively you can import the python tool:it through python:

>>> import rosnode 
>>> print(rosnode.get_node_info_description("<your_node>")

Similarly you can import rostopic

A quick way to see the elements available member functions is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rosnode info /<your_node>

will give you the information you are after. Try embedding that

Alternatively You can embed that or alternatively you can import it through python:

>>> import rosnode 
>>> print(rosnode.get_node_info_description("<your_node>")

Similarly you can import rostopic

A quick way to see the member functions is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rosnode info /<your_node>

will give you the information you are after. You can embed that or alternatively you can import it through python:

>>> import rosnode 
>>> # print(rosnode.get_node_info_description("<your_node>")
>>> print(rosnode.get_node_info_description("/laser_assembler"))  # Example from my current project

Node [/laser_assembler]
Publications: 
 * /rosout [rosgraph_msgs/Log]

Subscriptions: 
 * /bogus [unknown type]
 * /laser_scan [sensor_msgs/LaserScan]
 * /tf [tf2_msgs/TFMessage]
 * /tf_static [tf2_msgs/TFMessage]

Services: 
 * /assemble_scans
 * /assemble_scans2
 * /build_cloud
 * /build_cloud2
 * /laser_assembler/get_loggers
 * /laser_assembler/set_logger_level

Similarly you can import rostopic

A quick way to see the member functions is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))

The command line tool

rosnode info /<your_node>

will give you the information you are after. You can embed that or alternatively you can import it through python:python as you are doing:

>>> import rosnode 
>>> # print(rosnode.get_node_info_description("<your_node>")
>>> print(rosnode.get_node_info_description("/laser_assembler"))  # Example from my current project

Node [/laser_assembler]
Publications: 
 * /rosout [rosgraph_msgs/Log]

Subscriptions: 
 * /bogus [unknown type]
 * /laser_scan [sensor_msgs/LaserScan]
 * /tf [tf2_msgs/TFMessage]
 * /tf_static [tf2_msgs/TFMessage]

Services: 
 * /assemble_scans
 * /assemble_scans2
 * /build_cloud
 * /build_cloud2
 * /laser_assembler/get_loggers
 * /laser_assembler/set_logger_level

Similarly you can import rostopic

A quick way to see the member functions is:

>>> import rostopic
>>> print(getmembers(rostopic, isfunction))