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

.bashrc analog for windows 10

asked 2021-12-05 10:21:34 -0500

ohm gravatar image

updated 2021-12-06 07:26:23 -0500

Mike Scheutzow gravatar image

I am new to ros for windows and for using turtlebot3 I need to set environment the variable


every time in ubuntu, we use to add

export TURTLEBOT3_MODEL=waffle

in .bashrc file so we don't need to perform it every time how can I perform this in windows

edit retag flag offensive close merge delete


Add the command in the .bat file that starts the terminal script.

osilva gravatar image osilva  ( 2021-12-06 04:58:48 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-12-06 06:53:36 -0500

osilva gravatar image

updated 2021-12-06 07:05:05 -0500

If you look at the ROS on Windows installation in step 6:

C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64&& set ChocolateyInstall=c:\opt\chocolatey&& c:\opt\ros\noetic\x64\setup.bat

It's calling for 2 .bat files, you can add your .bat file to this startup script by adding && then the name the path of your .bat file.

To learn how to create .batfile, check this tutorial:

Then you can add set TURTLEBOT3_MODEL=waffle so you don't have to do it in every terminal.

edit flag offensive delete link more

Question Tools


Asked: 2021-12-05 10:21:34 -0500

Seen: 216 times

Last updated: Dec 06 '21