ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I also have problems with multiple machines.
I tried the suggestions of this closed questions:
https://answers.ros.org/question/38694/running-ros-across-multiple-machines/
I just tried the suggested answer of SamsAutonomy from this questions and it also resulted in the same result as below (see below):
Master: cmd_vel topic published data can be seen
Slave: cmd_vel is rostopic list listed, but no data is coming in.
I can ping and netcat in both directions. ~/.bashrc is sourced.
IP: 192.168.178.34
Hostname: user-MS-7A32
Ubuntu 18.04 - ROS Melodic
127.0.0.1 localhost
127.0.1.1 user-MS-7A32
192.168.178.44 raspberrypi
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Ff00::0 ip6-mcastnet
fe00::0 ip6-mcastprefic
export ROS_HOSTNAME=user-MS-7A32
export ROS_MASTER_URI=http://user-MS-7A32:11311
export ROS_IP=192.168.178.34
IP: 192.168.178.44
Hostname: raspberrypi
Debian Buster - ROS Melodic
127.0.0.1 localhost
127.0.1.1 raspberrypi
192.168.178.34 user-MS-7A32
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
export ROS_HOSTNAME=raspberrypi
export ROS_MASTER_URI=http://user-MS-7A32:11311
export ROS_IP=192.168.178.44
$ roscore
$ rostopic echo /cmd_vel
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
$ rostopic echo /cmd_vel
cmd_vel topic published data can be seen on both machines.
$ roscore
$ rosrun teleop_twist_keyboard teleop_twist_keyboard.py
$ rostopic echo /cmd_vel
$ rostopic echo /cmd_vel
Master: cmd_vel topic published data can be seen
Slave: cmd_vel is rostopic list listed, but no data is coming in.
I also tried the suggestion:
Changes on Master:
~/.bashrc
export ROS_MASTER_URI=http://192.168.178.34:11311
Can somebody tell me where my configuration mistake is?