Skip to content

Repository files navigation

RoboComp development tools

This folder contains a set of tools created to facilitate the process of software development with RoboComp. Detailed information on each tool can be found in the corresponding README.md files in the respective directory.

Yakuake script

This is a simple script to automatically start RoboComp's favourite terminal tool, Yakuake, with two named tabs running Ice's pub/sub broker Storm through our rcnode script and a component named comp1.

#!/bin/bash
pkill -f icebox&
pkill -f rcremoteserver&
tabs_to_close="rcnode rcmanager rcremoteserver"
tabs_to_open="rcnode rcremoteserver"echo"removing"#Remove previous tabs if exist, avoiding to create multiple instances of theseforspecific_tabin$tabs_to_closedo
found=0
#loop over all open tabsforsessidin$(qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.sessionIdList | tr ',''\n')do# get the name of the tab
name=$(qdbus org.kde.yakuake /yakuake/tabs org.kde.yakuake.tabTitle $sessid)if [ "$name"=$specific_tab ] then
found=1
qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.removeSession $sessidfidonedoneecho"creating"#loop to open specific tabsforspecific_tabin$tabs_to_opendo#create new session
qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession
#get id of open session
sess0=`qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.activeSessionId`#run command on active session
qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.runCommand $specific_tab#change the name of session
qdbus org.kde.yakuake /yakuake/tabs org.kde.yakuake.setTabTitle $sess0$specific_tabdone

Additional blocks can be added to create and initialize new tabs in Yakuake.

Please, copy this code to a .sh file and execute it whenever you need to start your multi-component development environment.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages