how to

cant-open-could-not-contact-ros-master-at

Mar 26, 2024
framesrosrviz
1 Minutes
64 Words
1
user@server:~$ rviz
2
[ INFO] [1711457974.411129714]: rviz version 1.14.20
3
[ INFO] [1711457974.411172314]: compiled against Qt version 5.12.8
4
[ INFO] [1711457974.411184184]: compiled against OGRE version 1.9.0 (Ghadamon)
  • rviz error box:
1
Could not contact ROS master at [http://localhost:11311], retrying... #37
  • roscore shows:
1
RLException: Unable to contact my own server

Sol

Your ROS_HOSTNAME env var is not correctly set.

ref: https://answers.ros.org/question/301509/cant-run-roscore-unable-to-contact-my-own-server/

Use output of hostname -I to set your ROS_MASTER_URI and ROS_HOSTNAME, like:

1
export ROS_MASTER_URI=http://10.53.21.95:11311
2
export ROS_HOSTNAME=10.53.21.95
Article title:cant-open-could-not-contact-ros-master-at
Article author:Julyfun
Release time:Mar 26, 2024
Copyright 2025
Sitemap