Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Onboarding the rosdep to ROS2 Rolling distro (#190)
Browse files Browse the repository at this point in the history
* bootstrap rosdep for ROS2 Rolling.

* adding msft_ros2_env.

* fix the path.

* change it to a proper maintainer alias.

* reduce the file protocol to file:///
  • Loading branch information
seanyen authored Mar 26, 2021
1 parent bbe1134 commit 17c4555
Show file tree
Hide file tree
Showing 11 changed files with 533 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ros/azure-pipelines.rolling.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ stages:
DEL /F /Q %INSTALL_DIR%\lib\pkgconfig\orocos_kdl.pc
displayName: 'Remove orocos-kdl'
- script: |
xcopy /Y /S /I .\ros\%ROS_DISTRO%\pre-patch %INSTALL_DIR%
call %Build_SourcesDirectory%\ros\%ROS_DISTRO%\patch.bat
displayName: 'Pre-patch the install directory'
- script: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
Expand All @@ -75,6 +75,7 @@ stages:
vcs import --force --shallow --recursive src < ..\ros\rolling\rolling.repos
vcs import --force --shallow --recursive src < ..\ros\rolling\rolling_override.repos
xcopy /Y /S /I ..\ros\src_patch src
xcopy /Y /S /I ..\ros\%ROS_DISTRO%\src src
call ..\ros\rolling\build.bat
displayName: 'build rolling'
- task: PublishBuildArtifacts@1
Expand Down
5 changes: 5 additions & 0 deletions ros/rolling/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ if errorlevel 1 exit 1
:: fix srdfdom.dll location.
move /Y %INSTALL_DIR%\lib\*.dll %INSTALL_DIR%\bin
if errorlevel 1 exit 1

:: run rosdep check
set ROS_ETC_DIR=%INSTALL_DIR%\etc\ros
rosdep check --from-paths "%INSTALL_DIR%\share" --ignore-src 2>&1
exit 0
16 changes: 16 additions & 0 deletions ros/rolling/patch.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo OFF

:: copy all patch files to the installation
xcopy /Y /S /I %~dp0patch %INSTALL_DIR%

set PATH=%INSTALL_DIR%\Scripts;%INSTALL_DIR%;%INSTALL_DIR%\bin;%PATH%

:: install required Python modules
python -m pip config set global.disable-pip-version-check True
python -m pip install -U git+https://github.com/ms-iot/rosdep@windows/0.20.0

:: bootstrap rosdep
set ROS_ETC_DIR=%INSTALL_DIR%\etc\ros
rosdep init
rosdep update

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# os-specific listings first
yaml file:///c:\opt\ros\rolling\x64\etc\ros\rosdep\windows.yaml windows
Loading

0 comments on commit 17c4555

Please sign in to comment.