Robotics StackExchange | Archived questions

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

I have installed ROS Melodic on Windows 10 natively through the instruction of the website (http://wiki.ros.org/Installation/Windows).

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 ROSIP and ROSMASTER_URI on Windows 10?

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

Thank you in advance.

Asked by robotpioneer on 2019-08-20 01:16:12 UTC

Comments

Answers

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.

Asked by gvdhoorn on 2019-08-20 01:33:13 UTC

Comments

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).

Asked by OoeyGUI on 2020-11-30 12:30:14 UTC