Problem with Rviz
Hi everyone! I'm trying to run Rviz with Ubuntu 18.04 (ROS melodic version 1.14.6). Firstly, I run roscore and then, in other window I'm trying to run Rviz but I can't. I set the command 'roswtf' for check the details, and It shows these:
Beginning tests of your ROS graph. These may take a while... analyzing graph... ... done analyzing graph running graph rules... ERROR: connection refused to [http://NOMADA7591:52180/] ERROR: connection refused to [http://NOMADA7591:52163/] ERROR: connection refused to [http://NOMADA7591:53496/] ERROR: connection refused to [http://NOMADA7591:52218/] ERROR: connection refused to [http://NOMADA7591:53385/] ... done running graph rules
Online checks summary:
Found 2 error(s).
ERROR Could not contact the following nodes: * /rviz_1595321248753417700 * /rviz_1595321239185989700 * /rviz_1595327219875266800 * /rviz_1595321273013614500 * /rviz_1595326854210823300
ERROR Errors connecting to the following services: * service [/rviz_1595327219875266800/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/rviz_1595327219875266800/set_logger_level], address [rosrpc://NOMADA7591:53495] * service [/rviz_1595321248753417700/get_loggers] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321248753417700/get_loggers], address [rosrpc://NOMADA7591:52179] * service [/rviz_1595326854210823300/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/rviz_1595326854210823300/set_logger_level], address [rosrpc://NOMADA7591:53384] * service [/rviz_1595321239185989700/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321239185989700/set_logger_level], address [rosrpc://NOMADA7591:52162] * service [/rviz_1595321239185989700/get_loggers] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321239185989700/get_loggers], address [rosrpc://NOMADA7591:52162] * service [/rviz_1595321248753417700/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321248753417700/set_logger_level], address [rosrpc://NOMADA7591:52179] * service [/rviz_1595327219875266800/get_loggers] appears to be malfunctioning: Unable to communicate with service [/rviz_1595327219875266800/get_loggers], address [rosrpc://NOMADA7591:53495] * service [/rviz_1595321273013614500/get_loggers] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321273013614500/get_loggers], address [rosrpc://NOMADA7591:52217] * service [/rviz_1595326854210823300/get_loggers] appears to be malfunctioning: Unable to communicate with service [/rviz_1595326854210823300/get_loggers], address [rosrpc://NOMADA7591:53384] * service [/rviz_1595321273013614500/set_logger_level] appears to be malfunctioning: Unable to communicate with service [/rviz_1595321273013614500/set_logger_level], address [rosrpc://NOMADA7591:52217]
Which commands are you executing?
and
??
Quite strange, seems like rviz goes resetting every instant.
In one window I have executed the command roscore, and in a new window I executed rviz
I have just solved the problem. In the new window, Firstly i set 'export DISPLAY=:0' and then i set 'rviz' (Before I have run the program Xlauch).