Ask Your Question
0

How to source setup.bash in ROS Window10

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

drtritm gravatar image

updated 2020-04-04 15:35:33 -0500

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 -0500

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

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

Seen: 390 times

Last updated: Apr 05 '20