ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi @v.leto

The issue is the image path is incorrect,

If you are running Melodic then file path would be:

/opt/ros/melodic/share/rviz/images/splash.png

After running rosrun image_publisher image_publisher /opt/ros/melodic/share/rviz/images/splash.png then image_publisher will print a message such as:

[ INFO] [1638830830.340437700]: File name for publishing image is : /opt/ros/melodic/share/rviz/images/splash.png
[ INFO] [1638830830.348288400]: Flip horizontal image is : false
[ INFO] [1638830830.349854100]: Flip flip_vertical image is : false

To visualize, run another terminal rqt, under Plugins->ImageView, select from the drop down menu and you will be able to visualize image as shown below:

image description