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

.bashrc analog for windows 10

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

ohm gravatar image

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

Mike Scheutzow gravatar image

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

set TURTLEBOT3_MODEL=waffle

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

Comments

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

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

1 Answer

Sort by ยป oldest newest most voted
2

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

osilva gravatar image

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

If you look at the ROS on Windows installation in step 6: http://wiki.ros.org/Installation/Windows

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: https://www.makeuseof.com/tag/write-s...

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

Stats

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

Seen: 257 times

Last updated: Dec 06 '21