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

[ROS1 on Windows 10] How to set up ROS IP and ROS MASTER URI on Windows 10?

asked 2019-08-20 01:16:12 -0500

robotpioneer gravatar image

updated 2019-08-20 01:35:03 -0500

gvdhoorn gravatar image

I have installed ROS Melodic on Windows 10 natively through the instruction of the website (

I have a robot implemented in Ubuntu 16.04 and ROS Master should be in the robot.

So, I need to modify ROS IP settings on Windows 10 where ROS Melodic is installed natively, not based on WSL (Windows Subsystem for Linux).

How can I set up ROS_IP and ROS_MASTER_URI on Windows 10?

In Ubuntu 16.04, I was able to set up the network settings through Bash.

Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-08-20 01:33:13 -0500

gvdhoorn gravatar image

updated 2019-08-20 01:34:15 -0500

They're environment variables, so you can set them as any other environment variable on Windows: either by using set (or setx), PowerShell or by using the Environment Variables editing UI in the System Properties applet (may not be present any more in your Windows 10 version).

See here for an SO Q&A that discusses a few different approaches.

edit flag offensive delete link more



The System Properties applet is buried, but it is still available. setx through terminal is the preferred way. (You'll need to restart your shell to pick it up).

OoeyGUI gravatar image OoeyGUI  ( 2020-11-30 11:30:14 -0500 )edit

Question Tools



Asked: 2019-08-20 01:16:12 -0500

Seen: 3,031 times

Last updated: Aug 20 '19