Skip to content

Configuration file and folder

Raffaello Bonghi edited this page Nov 18, 2018 · 11 revisions

The jetson_easy store all data in a folder called "config" inside that is written a file setup.txt

Folder organization:

config/
   - setup.txt
   - X-config.sh (optional)
   - {project}.rosinstall (optional)

If you want write an extra script or add your ROS .rosinstall file in your project follow the this guides:

You can load your project directly from the project finder inside the ./biddibi_boddibi_boo.sh script the screen look like this: ROS ws-tool

setup.txt

The setup file is a collection of all required variables to install and run your jetson script with the default configuration: ROS ws-tool

You can edit manually inside the setup file or you can see the update of your project after every save on the GUI

Personalize configuration file

If you want personalize your script you can rename the folder name and add extra options for your NVIDIA Jetson, following the tree (chaging {NAME} with your new folder name)

{NAME}/
   - setup.txt
   - X-{NAME}.sh (optional)
   - {project}.rosinstall (optional)

To build your personalized configuration file, I suggest to follow this steps:

  1. Launch ./biddibi_boddibi_boo.sh
  2. Save the configuration
  3. Close the script
  4. Rename the folder project name

Add ws-tool script

If in your NVIDIA Jetson you want add an extra .rosinstall file following ROS wstool you can add the file in the config folder and when the system run in the "ROS" configuration you can select your file like this image:

ROS ws-tool

For other information you can follow this tutorial to build your file: rosws_tutorial

Add extra script

To build your extra script you must follow the example below. It is important to write the script and call with the same name of the project, and follow the required rules.

{NAME}/
   - setup.txt
   - X-{NAME}.sh (optional)

Example of extra script file to write for your project:

#!/bin/bash

#################################
# ALL This variables are optional
#################################
# This is the name of the module
MODULE_NAME="I'm an extra script!"
# Description of your script
MODULE_DESCRIPTION="Description of your extra script"
# Option availables
MODULE_OPTIONS=("RUN" "STOP")
# Default value when you run the script
MODULE_DEFAULT="STOP"

# You MUST write all your script inside this
#  function called with the name: script_run()
script_run()
{
    echo "Extra script!"
}