image_view for ubuntu server 20.04
hello i am new to ROS , i am trying to view camera output which is publish by a topic and can be view using following command
rosrun image_view image_view image:=/camera
however i am getting error as following
Unable to init server: Could not connect: Connection refused
(camera:5432): Gtk-WARNING **: 11:53:30.098: cannot open display:
Segmentation fault (core dumped)
i am using rapsberry pi 3 b+ with picamera , ros version: noetic installed on ubuntu server 20.04. i am not sure whether image_view command pop up a new window to show the camera output bec i am not using desktop version .do i need to intstall ubuntu desktop version to view the output?
image_view
opens a window, so yes, you'd need a desktop environment. Or at least something which supports opening X windows (or perhaps wayland).If you have another machine, you could start
image_view
there.Alternatively: install a VNC server.
Or, as you already mention: install a DE on the machine you're trying to start
image_view
on.