Publish a topic data from a rosbag file and fail to visualize in Rviz

7 views (last 30 days)
Hello everyone,
I am working on a ROS-Simulink simulation project. At the first step, I'm going to publish some waypoint data from a rosbag file and visualise it in rviz. when I select a topic (i.e. /local_waypoints_marker) in the read data block (from my ROS Bag), the source frame indicates N/A, while I have several frame in the available frame section in my rosbag file. On the other hand, when I play this rosbag file with rosplay it visualize in the Rviz without any problem.
I can publish my point cloud data through this block (simulink detects its source frame) but I don't know why it doesn't specify another topics source frame.
Do you have any Idea?

Accepted Answer

Mohsen Malayjerdi
Mohsen Malayjerdi on 1 Nov 2019
Hi All,
Finally I find out the source of my problem,
The problem is some Matlab ROS custome messages especially Visualization_msg was for ROS indigo and when publish it to the ROS it cant recieve it.
For replacing the custome messages with the new one for ROS Kinetic you can download them from ROS website then follow this nice solution to replace them with the old one.

More Answers (0)

Categories

Find more on Bag File Logging and Analysis in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!