Tools to manage ROS installations on your computer. It works by automatically generating and sourcing loading and unloading script baseds on a YAML configuration. You can describe each of your ROS environment with a config file, and let the program generate the scripts for you to keep a clean terminal while switching between ROS projects.
This project is inspired by the work of Oliver Kermorgant's ros management tools scripts.
You can find the documentation and usage of this application on this ROS Switch - Online Documentation page.
Copyright (c) Meltwin - 2024
Distributed under the MIT Licence
This package is composed of Python 3 (>= 3.8) and bash scripts. Thus it does not need any compilation before hand.
To install this, please add this line into your .bashrc
or .zshrc
depending of your environment:
source "<path_to_the_folder_of _the_repo>/setup.sh"
This program is compatible with both bash and zsh environments.
You can use the rosswitch
command as follows:
- to load a ROS configuration, simply type
rosswitch <config_name>
- to list all the available configurations on the path:
rosswitch ls
- to force the reconfiguration of a config file:
rosswitch gen <config_name>
- to use some internal tools:
rosswitch tools <tool name>
Some aliases are defined in the setup.sh
script:
rswitch
andrswtch
are equivalent torosswitch
colbuild
is equivalent tocolcon build --symlink-install
The profiles are easy to create. Simply create a file with the format <preset name>.rosprofile
in one of the application lookup paths. In this file, describe the configuration in YAML (cf. example below):
preset:
metadata:
author: Meltwin
date: "10/2024"
description: "YAML configuration example"
ros_version: 2
env_var:
NEEDED_ENV_VAR: 0
ros:
localhost: true
colorized: true
pre_load:
- "echo 'You are loading the basic example configuration'"
workspaces:
- "$HOME/Prog/ROS2/my_workspace"