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

How to source setup.bash in ROS Window10

asked 2020-04-04 15:25:04 -0500

drtritm gravatar image

updated 2022-01-22 16:10:27 -0500

Evgeny gravatar image

Hi everyone. I want to install some packages on ROS Win10, I tried with choco install and it didn't work. So I tried to install from source. When I "catkin_make", it succeeded.But I don't know how to source setup.bash By the way, I want to use multi machine with ROS_Master on Window. But I don't know how to config .bashrc file to edit ROS_MASTER_URI to make connect with other devices. Thanks for reading

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-04-05 10:07:55 -0500

updated 2020-04-05 10:11:57 -0500


On Windows 10, you can source your local workspace setup by calling devel\setup.bat.

To check if your local workspace is properly overlayed on top of your environment, run


you should see something like this


You should set ROS_MASTER_URI as an environment variable on Windows 10. You either set it by using a GUI: open Advanced system settings, click the button Environment Variables, and add new System variables (different approaches to open the GUI can be found here), or set it by using the setx command. So if you want to permanently set ROS_MASTER_URI, the command would be like:

setx ROS_MASTER_URI “http://<ip>:11311/” /m
edit flag offensive delete link more


Thank you so much. You save my day

drtritm gravatar image drtritm  ( 2020-04-05 12:30:54 -0500 )edit

You're welcome! I'm glad I could help.

karenchiang gravatar image karenchiang  ( 2020-04-05 17:55:08 -0500 )edit

Thank you both! You save my day tooooo!

derobpe gravatar image derobpe  ( 2020-11-16 03:07:46 -0500 )edit

Question Tools



Asked: 2020-04-04 15:25:04 -0500

Seen: 1,267 times

Last updated: Apr 05 '20