Extend Raspi setup script for Cerebra2

Description

As a pib user, I want to have a simple and secure setup method for setting up pibs software. Therefore, we already have a setup-script (see attachment), that installs ROS2 and additional elements on pibs Rapsberry. The only assumption is to have a fresh installation of Ubuntu 22/04.2.

Acceptance criteria:

  • The attached setup-script is extended to also install the current development-branch of Cerebra2

  • Cerebra2 is started as service when the Raspberry starts up, so, if a network-connection is configured, it is immediately possible to access Cerebra2 on pib

  • ros2 is also starter as a service

Attachments

3

Activity

Show:

Aleksandr Vdovin May 10, 2023 at 3:54 PM

To use this script the link to download the nginx configuration file (nginx.conf) should be provided in the NGINX_CONF_FILE_LINK variable. The nginx.conf is automatically downloaded and installed while the script execution process. Right now, the repository where the nginx.conf file should be stored along with this installing script is not defined. It is assumed this repository will be

Before running the script, the user name used on this device must be set in the RASP_USER variable. The default user is "pib".

In the RASP_WORKING_DIR variable, the directory can be specified where the nginx.conf file and the script for starting ROS and Cerebra (ros_cerebra_boot.sh) will be saved. By default it’s:

The directory where the archive with the Cerebra application is downloaded can be specified in the RASP_TMP_FOLDER variable, by default it’s:

The script should be executable as well. To make it executable run in terminal the following command:

To run the script type the following:

As soon as the script is fully executed, the system will automatically reboot.

Done

Details

Assignee

Reporter

Category

Software

Priority

Created March 27, 2023 at 10:30 AM
Updated December 25, 2023 at 7:57 PM
Resolved May 15, 2023 at 10:22 AM