ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROS2 on local machine only? (No network)

asked 2021-08-16 18:44:06 -0500

high12noon gravatar image

How do I configure ROS2 so that only nodes on the local computer can talk to each other?

Reasons for question: 1. Security 2. Ensure multiple robots on same LAN don't interfere with each other 3. Ensure no limit to number of robots that can exist on same LAN


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-19 20:11:28 -0500

Pepis gravatar image

To achieve what you want you can set the environment variable ROS_LOCALHOST_ONLY to 1. This will restrict all the ROS network traffic to your local machine. See this related issue.

edit flag offensive delete link more

Question Tools



Asked: 2021-08-16 18:44:06 -0500

Seen: 367 times

Last updated: Aug 19 '21