Using ROS commands over ssh?
I am trying to launch a node using a launch file on a remote computer from a local machine but I am getting the error: "error launching on [192.168.1.7-0, uri http://ai2:37824/ ]: Name or service not known." I have the ROS_MASTER_URI set to the local machine (the machine attempting to launch the file). I also noticed that when I try ssh'ing into the remote computer and running a ROS command on the same line, it does not work.
For example:
ssh ai2@192.168.1.7
rostopic list // works
ssh ai2@192.168.1.7 ls // works
ssh ai2@192.168.1.7 rostopic list // does not work
It seems that something about ssh'ing and executing a ROS command on the same line does not work and I think this problem is related to the problem I am having with the launch file. Has anyone ever dealt with this issue?
What exactly are you trying to do? Are you trying to run rostopic list on your own computer after SSHing? Or are you trying to SSH then run rostopic list on the computer you SSHed into?
I am trying to run rostopic list on the same line as ssh. For whatever reason, if I ssh into the remote and then run rostopic list separately, there are no errors. But if I ssh and rostopic list on the same line, I get "bash: rostopic: command not found"