Publishing TF tree from Simulink to ROS

조회 수: 2 (최근 30일)
Aadish Dilip Naik
Aadish Dilip Naik 2022년 4월 20일
댓글: Moritz Leuner 2025년 3월 24일
I am using the Simulation 3d Camera and Lidar placed on a vehicle in Unreal Engine to generate image and pointcloud data. I want to use the ROS toolbox to publish these topics. I was able to convert the image and pointcloud data to ROS messages and publish them, but I am unable to visualize the pointclud in Rviz because that requires tf data.
Is there a way that I can create a tf tree through simulink and publish it to ROS?
  댓글 수: 1
Moritz Leuner
Moritz Leuner 2025년 3월 24일
Hi Aadish! I am currently working in the same thing but am facing a lot of problems to convert my image from the camera block to a ros message (Bus object, message type etc....) I would be so happy if you could tell me how you solved this and published your camera image. Later I want to do the same thing with my Radar detections from Simulink.
Kind regards, Moritz

댓글을 달려면 로그인하십시오.

답변 (1개)

Prabeen Sahu
Prabeen Sahu 2022년 4월 27일
편집: Prabeen Sahu 2022년 4월 28일
Hi Dilip,
You can write your own transformations(tf2_msgs/TFMessage messages) and try publishing them to /tf topic directly from Simulink using Publish block.
Alternatively, without publishing tf data you can try this quick workaround.You can just set the FrameId field in the header for the image or point cloud to /base_link, which should show the data in Rviz at the /base_link.
You can also visualize the converted image and pointcloud ros messages in Simulink directly using Read Image block and Read Point Cloud block.
-Prabeen

카테고리

Help CenterFile Exchange에서 Specialized Messages에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by