Configuration¶
The default configuration is stored inside the file userconfig_distribute.yaml,
which will be copied to ~/.config/robot_folders.yaml automatically on first invocation.
build: {
generator: make,
cmake_flags: "-DCMAKE_EXPORT_COMPILE_COMMANDS=1",
make_threads: 4,
install_catkin: False,
catkin_make_cmd: catkin_make,
colcon_build_options: "--symlink-install"
}
directories: {
# if left blank, the default ~/checkout will be used
checkout_dir: ,
catkin_names: ["catkin_workspace", "catkin_ws"],
colcon_names: ["colcon_workspace", "colcon_ws", "dev_ws"],
no_backup_dir: "~/no_backup"
}
The configuration is split into different sections which will be explained in the following.
Build options¶
generatorCurrently make and ninja can be used. If ninja is configured, but not installed, building will throw an error.
cmake_flagsThese flags will be passed to the cmake command.
make_threadsNumber of threads that should be used with make. Only relevant when generator is set to make.
install_catkinIf set to true, the build command will also install the catkin_workspace (into the catkin_ws/install folder by default).
catkin_make_cmdSet to catkin_make by default but can be changed to catkin build.
colcon_build_optionsOptions passed to each
colcon buildinvocation that is piped throughfzirob make. These options can be overriden by using the--colcon-argsoption when runningfzirob make colcon
Directory options¶
checkout_dirBy default, environments are stored inside ~/checkout. If environments should be stored somewhere else, specify this path here. This must be an absolute path, but
${HOME}/or~/can be used, as well.catkin_namesAll first level subdirectories in an environment that match one of these names will be treated as catkin workspaces. If you name yor catkin workspaces differently, please specify this name here.
colcon_namesAll first level subdirectories in an environment that match one of these names will be treated as colcon workspaces. If you name yor colcon workspaces differently, please specify this name here.
no_backup_dirLocation where build and install steps should be performed if they should be outside of the checkout tree. If that folder exists, users will be prompted whether to build inside the
no_backup_dirwhen creating a new environment.
Environment variables¶
There are also environment variables for some features of robot_folders:
ROB_FOLDERS_DISABLE_PROMPT_MODIFICATIONIf this variable is set to a non-empty value, the currently active environment will not be added to the prompt.