[ROS Q&A] 086 - How can I publish OpenCv Mat image and see it on RViz
The Construct Robotics Institute 12:11
8,808 views · 67 likes Watch on YouTube ↗
In this video we show how to publish a OpenCV Image on a ROS Topic and see the image on RViz by solving a real question: https://answers.ros.org/question/103911/how-can-i-publish-a-opecv-mat-as-a-topic-and-subscribe-by-rviz/
Q: The user says that the code compiles and runs without any problem but the message can't be shown on RViz.
A: The problem is because the user was publishing the message only once. When RViz is loaded, the message is not being published anymore. To solve this, the solution is keep publishing until we make sure RViz is subscribed. The code can be found on the answer (https://answers.ros.org/question/103911/how-can-i-publish-a-opecv-mat-as-a-topic-and-subscribe-by-rviz/?answer=278560#post-id-278560)
Q: The user says that the code compiles and runs without any problem but the message can't be shown on RViz.
A: The problem is because the user was publishing the message only once. When RViz is loaded, the message is not being published anymore. To solve this, the solution is keep publishing until we make sure RViz is subscribed. The code can be found on the answer (https://answers.ros.org/question/103911/how-can-i-publish-a-opecv-mat-as-a-topic-and-subscribe-by-rviz/?answer=278560#post-id-278560)
Category (YouTube): Entertainment
Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.