simple_desktop_launcher repository

Repository Summary

Checkout URI https://gitlab.com/InstitutMaupertuis/simple_desktop_launcher.git
VCS Type git
VCS Version melodic
Last Updated 2019-08-22
Dev Status MAINTAINED
Released UNRELEASED

Packages

Name Version
simple_desktop_launcher 0.0.0

README

Institut Maupertuis logo

build status

This repository contains a Robot Operating System package to test ROS desktop launcher files.

How to test

  • Create a catkin work-space
  • Clone this repository
git clone https://gitlab.com/InstitutMaupertuis/simple_desktop_launcher.git

  • Install the work-space (catkin_make or catkin tools)
catkin_make install
catkin config --install && catkin build

  • Desktop launcher files are installed in $HOME/.local/share/applications/ if the CATKIN_INSTAL_PREFIX does not point in /opt/. In this case the application name is suffixed with (debug) to help differientate it from an installed package (see next line).
  • Desktop launcher files are installed in /usr/share/applications/ and /usr//share/icons/ if CATKIN_INSTAL_PREFIX points in /opt/, this is useful if you are releasing your package and bloom sets the CATKIN_INSTAL_PREFIX to /opt/, this way the files will be automatically be installed at the right place..

Use your application menu to start the application. Alternatively gtk-launch green_robot and gtk-launch red_robot can be used.

The Unity dash usually takes a little bit of time (try logging-out/logging-in again) to update the available applications so it may not appear directly after install.

How it works

.desktop and .png files are installed, these files are parsed by Ubuntu and create applications.

The image file is the icon of the application displayed in the application launcher.

These files are automatically installed via CMake when install is required.

Here are the steps in the CMake script: - Determine whether we will be installing in /opt or elsewhere and set DESKTOP_APP_DIR and DESKTOP_ICON_DIR accordingly - Make sure the $HOME/.local/share/applications/ exists (create it if necessary) - Configure / install the bash.in scripts that run the applications: CMake variables like ${PROJECT_NAME} are replaced by CMake. - Configure the desktop.in files and install them: CMake variables like ${PROJECT_NAME} are replaced by CMake. - Copy application icon: CMake variables like ${PROJECT_NAME} are replaced by CMake.

  • Install ROS config, launch, urdf files: install(DIRECTORY) is recursive and preserves directory structure. You may want to copy additionnal directories (eg: meshes) depending on your package.

Bash scripts

The bash script automatically checks if a ROS core is running, if not one is started as a background task, remaining open even if the application is exited.

Repository Summary

Checkout URI https://gitlab.com/InstitutMaupertuis/simple_desktop_launcher.git
VCS Type git
VCS Version kinetic
Last Updated 2018-06-12
Dev Status MAINTAINED
Released UNRELEASED

Packages

Name Version
ros_desktop_launcher_test 0.0.0

README

Institut Maupertuis logo ROS desktop launcher test

build status

This repository contains a Robot Operating System package to test ROS desktop launcher files.

How to test

  • Create a catkin work-space
  • Clone this repository
git clone https://gitlab.com/InstitutMaupertuis/ros_desktop_launcher_test.git

  • Install the work-space (catkin_make or catkin tools)
catkin_make install
catkin config --install && catkin build

You will notice that some files are installed in $HOME/.local/share/applications/. Use gtk-launch green_robot.desktop and gtk-launch red_robot.desktop to launch the applications.

The dash usually takes a little bit of time (try logging-out/logging-in again) to update the available applications so it may not appear directly after install.

How it works

.desktop and .png files are installed in $HOME/.local/share/applications/, these files are parsed by Ubuntu and create applications.

The image file is the icon of the application displayed in the dash.

These files are automatically installed via CMake when install is required.

Here are the steps in the CMake script: - Make sure the $HOME/.local/share/applications/ exists (create it if necessary) - Configure the desktop.in files in the applications directory: CMake variables like ${PROJECT_NAME} are replaced by CMake and the file is created in the target directory - Copy application icon file - Install ROS config, launch, urdf files: INSTALL(DIRECTORY) is recursive and preserves directory structure. You may want to copy additionnal directories (eg: meshes) depending on your package.

Caveats

You cannot run two ROS applications because the first one kills the second one and that leads to problems because the ROS core is sometimes not killed.

You should wait a few seconds for the application to shut-down before launching an other ROS desktop file.