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

ROS node which broadcasts periodically frames getting from python?

asked 2021-09-28 07:16:20 -0600

nicob gravatar image

Hi!

Is there a ROS node which I can send with python a frame similar to the addTf() command and the node broadcasts this frame all the time? I want to create, modify and delete frames in one program run/sequenze without broadcast it periodically by myself. So the static_transform_publisher is not the right choice for me.

<node pkg="tf" type="static_transform_publisher" name="app_bcast" args= "0.0 0.0 0.0 0.0 0.0 0.0 1.0 p_frame c_frame 100" />

Thanks in advance!

nico

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-09-28 11:06:43 -0600

tfoote gravatar image

From the docs here: http://wiki.ros.org/tf2_ros

There is the TransformBroadcaster class with both a C++ API and Python API which will facilitate you publishing transforms.

There's also a StaticTransformBroadcaster but if you want things to be changing the main one is likely what you want.

There's also tutorials for how to publish transforms in both C++ and Python here: http://wiki.ros.org/action/show/tf2/T...

edit flag offensive delete link more

Comments

Thanks! The tf2 staticBroadcaster works fine for me! :-)

nicob gravatar image nicob  ( 2021-10-05 06:35:47 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2021-09-28 07:16:20 -0600

Seen: 141 times

Last updated: Sep 28 '21