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
ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

CLI though, this returns the list of frames and some associated data (the Service type is what rqt_tf_tree uses. Related #q349175). Since it's ROS2 Service you should be able to write in Python or C++ in standard way (I just haven't had time to do that yet).

In my case I got:

response:                                                             
tf2_msgs.srv.FrameGraph_Response(frame_yaml="breakbeam_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  rate: 10000.000\n  most_recent_transform: 0.000000\n  oldest_transform: 0.000000\n  buffer_length: 0.000\nadvanced_logical_camera_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  ...

ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

tf2_msgs/srv/FrameGraph

CLI though, this returns the list of frames and some associated data (the Service type is what rqt_tf_tree uses. Related #q349175). Since it's ROS2 Service you should be able to write in Python or C++ in standard way (I just haven't had time to do that yet).

In my case I got:

response:                                                             
tf2_msgs.srv.FrameGraph_Response(frame_yaml="breakbeam_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  rate: 10000.000\n  most_recent_transform: 0.000000\n  oldest_transform: 0.000000\n  buffer_length: 0.000\nadvanced_logical_camera_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  ...

Btw I also tried in Python tf_buffer.all_frames_as_yaml() way, but no success. Opened a separate question robotics.stackexchange.com#24731.

ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

CLI though, this returns the list of frames and some associated data (the Service type is what rqt_tf_tree uses. Related #q349175). Since it's ROS2 Service you should be able to write in Python or C++ in standard way (I just haven't had time to do that yet).

In my case I got:

response:                                                             
tf2_msgs.srv.FrameGraph_Response(frame_yaml="breakbeam_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  rate: 10000.000\n  most_recent_transform: 0.000000\n  oldest_transform: 0.000000\n  buffer_length: 0.000\nadvanced_logical_camera_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  ...

Btw I also tried in Python tf_buffer.all_frames_as_yaml() way, but no success. Opened a separate question robotics.stackexchange.com#24731.

ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

CLI though, this returns the list of frames and some associated data (the Service type is what rqt_tf_tree uses. Related #q349175). Since it's ROS2 Service you should be able to write in Python or C++ in standard way (I just haven't had time to do that yet).

ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

In my case I got:

response:                                                             
tf2_msgs.srv.FrameGraph_Response(frame_yaml="breakbeam_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  rate: 10000.000\n  most_recent_transform: 0.000000\n  oldest_transform: 0.000000\n  buffer_length: 0.000\nadvanced_logical_camera_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  ...

Btw I also tried in Python tf_buffer.all_frames_as_yaml() way, but no success. Opened a separate question robotics.stackexchange.com#24731.

CLI though, this returns the list of frames and some associated data (the Service type is what rqt_tf_tree uses. Related #q349175). Since it's ROS2 Service you should be able to write in Python or C++ in standard way (I just haven't had time to do that yet).

ros2 service call /tf2_frames tf2_msgs/srv/FrameGraph

In my case I got:

response:                                                             
tf2_msgs.srv.FrameGraph_Response(frame_yaml="breakbeam_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  rate: 10000.000\n  most_recent_transform: 0.000000\n  oldest_transform: 0.000000\n  buffer_length: 0.000\nadvanced_logical_camera_0_frame: \n  parent: 'world'\n  broadcaster: 'default_authority'\n  ...

Btw I also tried in Python tf_buffer.all_frames_as_yaml() way, but no success. Opened a separate question robotics.stackexchange.com#24731.


Update. Hm, the output of ROS2 service cmd above looks the same as what ros2 run tf2_tools view_frames, which is introduced in the very beginning of tf tutorial, returns, so nothing new to anyone :/