Sending/Recieving ROS transformation /tf using Simulink

1 回表示 (過去 30 日間)
Jürgen Buchner
Jürgen Buchner 2016 年 6 月 13 日
回答済み: Josh Chen 2023 年 8 月 18 日
Hi,
I would like to get a ROS transformation from the /tf topic in Simulink. I already accomplished to get it in a script using getTransform, but I need it in Simulink. Is there a posibility to select FrameID and ChildFrameID in the ROS Subscribe block? If not, which alternative would you suggest? In addition, I would like to broadcast a transformation in Simulink.
My Matlab version is R2015b and I have the Robotics System Toolbox.
Thanks in advance. Jürgen

回答 (1 件)

Josh Chen
Josh Chen 2023 年 8 月 18 日
Hi Jürgen,
In 2015b, you should be able to subscribe to the /tf topic directly with the ROS Subscribe block, and connect the output to Bus Selector block to obtain the FrameID and ChildFrameID. You may also send transformation with Publish block as a workaround.
Starting from R2023b, this functionality is available in ROS Toolbox. You may consider to use Get Transform block to get transform from ROS/ROS 2 network instead. You may access R2023b Prerelease through this webpage.
Thanks,
Josh

カテゴリ

Help Center および File ExchangeROS 2 Network Access in Simulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by