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

How to source setup.bash in ROS Window10

asked 2020-04-04 15:25:04 -0600

drtritm gravatar image

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

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
4

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

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

Hi,

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

echo %ROS_PACKAGE_PATH%

you should see something like this

C:/local_workspace/src;C:\opt\ros\melodic\x64\share

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

Comments

Thank you so much. You save my day

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

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

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

Thank you both! You save my day tooooo!

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

Question Tools

3 followers

Stats

Asked: 2020-04-04 15:25:04 -0600

Seen: 1,405 times

Last updated: Apr 05 '20