Ask Your Question
0

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
0

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

Comments

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 imageAlbert 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 imageLorenz ( 2012-11-21 21:11:04 -0600 )edit

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".

Albert K gravatar imageAlbert 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 imageLorenz ( 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

Stats

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

Seen: 140 times

Last updated: Nov 20 '12