Did you connect to your robot using ssh? Did you enable X-forwarding, i.e. ssh -X
? You should also connect directly to the second computer, i.e. don't ssh from c1 to c2 if you want to have X forwarding enabled.
Originally posted by Lorenz with karma: 22731 on 2012-11-20
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by Albert K on 2012-11-21:
How can I open a window when I ssh to the robot in the terminal? My current method is to use multi- machine and try to open rxgraph in the slave computer, but failed.
Comment by Lorenz on 2012-11-21:
With X-forwarding, you can run gui applications through ssh when you use X-forwarding. Please read the support page and be more specific. What did you set ROS_HOSTNAME and ROS_MASTER_URI to and on which computers. Which errors did you get.
Comment by Albert K on 2012-11-22:
After connect my laptop to PR2's LAN, I type:(in laptop)
export ROS_MASTER_URI=http://10.68.0.1:11311
export ROS_HOSTNAME=10.68.0.142(get from ifconfig)
And then I try to open rxgraph in my laptop, the window of rxgraph remains "initializing".
Comment by Lorenz on 2012-11-22:
Don't set ROS_HOSTNAME but ROS_IP. I doubt that this is the cause of the problem though. Try rosnode list
and try executing rosnode info <node name>
on one of the listed nodes to verify that your network connection is really working.