ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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 ...
2 | No.2 Revision |
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.
3 | No.3 Revision |
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.
4 | No.4 Revision |
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.
5 | No.5 Revision |
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 :/