ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Assume robot IP is = 192.168.1.10 and remote PC IP is 192.168.1.20
On the robot (the ROS master) run the following commands and then run roscore and any ros node
source /opt/ros/melodic/setup.bash
export ROS_MASTER_URI=http://192.168.1.10:11311
export ROS_IP=192.168.1.10
On the remote PC, apply the following settings before running your application:
source /opt/ros/melodic/setup.bash
export ROS_MASTER_URI=http://192.168.1.10:11311
export ROS_IP=192.168.1.20
Then try to access robot topics on your remote PC.
Also
check your firewalls on both. You can disable your firewall for a quick test:
sudo ufw disable