- Double click to open "Publish" block mask
- Change "Durability" to "Transient local"
Using ROS Toolbox to publish transforms between 2 frames on topic /tf_static but RVIZ doesn't recognize them.
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello there!
I'm using ROS Toolbox to publish the transform between two frames. This involves using the tf2_msgs/TFMessage message on the /tf_static topic, with the frame_id set to 'Mutter' and the child_frame_id set to 'Tchter', as shown in the picture:

Simulink publishes the transforms just fine and it's visible on my Virtual Machine

The problem is neither RVIZ nor tf_ros package recognize these frames, as shown below.

댓글 수: 0
답변 (1개)
Josh Chen
2025년 1월 3일
Hi Abdulrahman,
Given that you are able to see the correct message in virtual machine, I believe the message modeling is correct.
Since you are publishing to "/tf_static", I believe at least the "Durability" should be set to "transient_local". If you haven't done so, you can try to:
In addition, for "/tf_static", you just need to publish it once. Hence, one optimization is to put all your blocks into a "Initialize Function" block. This ensures it will only be published once instead of publishing in each time step during simulation.
Hope this helps,
Josh
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!