Ask Your Question

Can't run rxgraph on remote slave computer when connect to pr2

asked 2012-11-20 04:21:37 -0600

Albert K gravatar image

When I connect to pr2 and set the ROS_HOSTNAME and ROS_MASTER_URI, I can <rosnode list=""> and retrieve the list of currently running nodes. Besides, the simple node I wrote can execute successfully on my slave computer. I think these mean that the connection is correct. However, I just can't open rxgraph. The rxgraph window only show "initializing". Any suggestion? Thanks~

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-20 04:39:23 -0600

Lorenz gravatar image

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.

edit flag offensive delete link more


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.

Albert K gravatar image Albert K  ( 2012-11-21 20:03:52 -0600 )edit

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.

Lorenz gravatar image Lorenz  ( 2012-11-21 21:11:04 -0600 )edit

After connect my laptop to PR2's LAN, I type:(in laptop)


export ROS_HOSTNAME= from ifconfig)

And then I try to open rxgraph in my laptop, the window of rxgraph remains "initializing".

Albert K gravatar image Albert K  ( 2012-11-22 04:00:25 -0600 )edit

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 &lt;node name&gt; on one of the listed nodes to verify that your network connection is really working.

Lorenz gravatar image Lorenz  ( 2012-11-22 04:03:48 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-11-20 04:21:37 -0600

Seen: 150 times

Last updated: Nov 20 '12