Size: 1610
Comment: Insert change-directory command to run winros_init_build without error
|
Size: 2148
Comment: For me the config.cmake was not created correctly therfore add this information here
|
Deletions are marked like this. | Additions are marked like this. |
Line 23: | Line 23: |
}}} At this point the winros_init_build script has an error so you need to manually adapt C:\work\overlay\config.cmake, change {{{ set(ROSDEPS_ROOT "C:/opt/rosdeps/hydro/x86" CACHE STRING "System root for ros dependency.") set(INSTALL_ROOT "C:/opt/overlay/hydro/x86" CACHE PATH "Install root.") }}} to {{{ set(ROSDEPS_ROOT "C:/opt/rosdeps/groovy/x86" CACHE STRING "System root for ros dependency.") set(INSTALL_ROOT "C:/opt/ros/groovy/x86" CACHE PATH "Install root.") }}} Now you are ready to build the workspace {{{ |
|
Line 26: | Line 41: |
At this point, you should have a successfully configured, empty workspace. | At this point, you should have a successfully configured an empty workspace. |
Not yet thoroughly tested. |
Overview
This guide illustrates how to set up your own workspace overlay to build on top of the Msvc SDK.
Prerequisites
Make sure you have either an installed SDK or compiled SDK. If you're setting up your overlay for the first time, it is recommended to work through the compiled instructions to make sure your build environment is in working order.
For the purposes of this guide, we will assume it is located in C:/opt/ros/groovy/x86.
Workspace
> mkdir C:/work > cd C:/work > winros_init_workspace overlay > cd C:/work/overlay > winros_init_build --underlays="C:/opt/ros/groovy/x86"
At this point the winros_init_build script has an error so you need to manually adapt C:\work\overlay\config.cmake, change
set(ROSDEPS_ROOT "C:/opt/rosdeps/hydro/x86" CACHE STRING "System root for ros dependency.") set(INSTALL_ROOT "C:/opt/overlay/hydro/x86" CACHE PATH "Install root.")
to
set(ROSDEPS_ROOT "C:/opt/rosdeps/groovy/x86" CACHE STRING "System root for ros dependency.") set(INSTALL_ROOT "C:/opt/ros/groovy/x86" CACHE PATH "Install root.")
Now you are ready to build the workspace
> winros_make
At this point, you should have a successfully configured an empty workspace.
Adding Sources
If you have pre-existing ros packages, or want to bring in an official ros repo, you can add them via wstool.
> cd C:/work/overlay/src > wstool set rocon_msgs --git https://github.com/robotics-in-concert/rocon_msgs > wstool update rocon_msgs > cd C:/work/overlay > winros_make --pre-clean
Creating Packages
Note: the following scripts are yet to be made.
Otherwise, add packages of your own:
> cd C:/work/overlay/src > winros_create_cpp_pkg my_cpp_pkg > winros_create_msg_pkg my_msg_pkg > winros_create_python_pkg my_python_pkg
Note that you can create the above packages directly below src, or embed them below a repo of your own.