Cannot remotely launch nodes
Hey,
I am fairly new to working with ROS and actually in general.
What I want to do is remotely launch turtlebot3_robot.launch from the turtlebot3_bringup package.
If I run roscore
on my REMOTE PC and then I run rosrun turtlebot3_bringup turtlebot3_diagnostics
on the RASPBERRY PI (via SSH in command line), everything works fine.
Now I have written a launch file that "bringup_allrobots.launch" which is located on the REMOTE PC and which looks like that:
<launch>
<group >
<machine name="raspi_on_robot_00" user="raspi01" address="192.168.0.102" password="" env-loader="/home/raspi01/catkin_ws/devel/env.sh" default="true" />
<node pkg="turtlebot3_bringup" type="turtlebot3_diagnostics" name="turtlebot3_diagnostics" output="screen"/>
</group>
</launch>
However, when I try running this launch file from my REMOTE PC I get the following error:
error launching on [192.168.0.102-0, uri http://raspi01-desktop:35531/]: Name or service not known
Launch of the following nodes most likely failed: turtlebot3_bringup/turtlebot3_diagnostics
You can find the entire log screen below.
If anybody has an idea how to fix this, it would be really appreciated!
Thanks in advance.
REMOTE PC
PC: Lenovo Thinkpad T480s
OS: Ubuntu 18.04
ROS: melodic
Environment variables:
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://192.168.0.100:11311/
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_IP=192.168.0.100
ROS_PACKAGE_PATH=/home/max/catkin_ws/:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic
RASPBBERRRY PI
SBC: Raspberry 3B+
OS: Ubuntu Mate
ROS: melodic
Environment variables:
ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://192.168.0.100:11311/
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_IP=192.168.0.102
ROS_PACKAGE_PATH=/home/raspi01/catkin_ws/src:/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=/home/raspi01/catkin_ws/devel/share/common-lisp
ROS_DISTRO=melodic
... logging to /home/max/.ros/log/bc01685e-edc4-11ea-a177-b46bfc2e39de/roslaunch-max-ThinkPad-T480s-8159.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://192.168.0.100:37581/
remote[192.168.0.102-0] starting roslaunch
remote[192.168.0.102-0]: creating ssh connection to 192.168.0.102:22, user[raspi01]
launching remote roslaunch child with command: [env ROS_MASTER_URI=http://192.168.0.100:11311/ /home/raspi01/catkin_ws/devel/env.sh roslaunch -c 192.168.0.102-0 -u http://192.168.0.100:37581/ --run_id bc01685e-edc4-11ea-a177-b46bfc2e39de]
remote[192.168.0.102-0]: ssh connection created
SUMMARY
========
PARAMETERS
* /rosdistro: melodic
* /rosversion: 1.14.9
MACHINES
* raspi_on_robot_00
NODES
/
turtlebot3_diagnostics (turtlebot3_bringup/turtlebot3_diagnostics)
auto-starting new master
process[master]: started with pid [8174]
ROS_MASTER_URI=http://192.168.0.100:11311/
setting /run_id to bc01685e-edc4-11ea-a177-b46bfc2e39de
process[rosout-1]: started with pid [8186]
started core service [/rosout]
error launching on [192.168.0.102-0, uri http://raspi01-desktop:41515/]: Name or service not known
Launch of the following nodes most likely failed: turtlebot3_bringup/turtlebot3_diagnostics