Skip to content

The "koala2.5_manager" is a collection of bash scripts to simplify the process of building libraries and projects for the Koala2.5 robot, supporting both C and C++ languages. The manager facilitates the setup and building of projects, making development more efficient for Koala2.5 robot projects.

Notifications You must be signed in to change notification settings

IGORSVOLOHOVS/koala2.5_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1690364539971koala2.5_manager

Koala 2.5 Manager is a utility script for creating and initializing C and C++ projects with the Koala library. It simplifies the setup process by generating project directories, source files, and a Makefile with the necessary build and run configurations. The manager facilitates the setup and building of projects, making development more efficient for Koala2.5 robot projects.

Contents

  1. k_create
  2. k_init

Requirements

  • Bash (Bourne Again SHell)
  • GCC (GNU Compiler Collection) for C projects
  • G++ (GNU Compiler Collection) for C++ projects

Usage

k_create.sh

1690364226924

The k_create.sh script allows you to create a new C or C++ project with the Koala library.

Usage: k_create.sh <language> <project_name>

Parameters:
  <language>     : Use 'c' for C projects or 'cpp' for C++ projects.
  <project_name> : The name of the new project.

Example usage:

./k_create.sh c my_c_project

This will create a new C project named my_c_project with the necessary directory structure, source files, and a Makefile.

./k_create.sh cpp my_cpp_project

This will create a new C++ project named my_cpp_project with the necessary directory structure, source files, and a Makefile. To build and run my_cpp_project project:

cd my_cpp_project
make
make run

k_init.sh

1690364214275

The k_init.sh script sets up the build environment, compiles the project, and installs the Koala library.

Usage: k_init.sh

The script will guide you through the build and installation process. Make sure you have the required build tools and permissions to install the library.

Project Structure

The generated project directory structure will be as follows:

project_name/
├── src/
│   ├── main.c (or main.cpp for C++ projects)
│   ├── project_name.c (or project_name.cpp for C++ projects)
│   └── project_name.h
├── include/
│   └── project_name.h
├── lib/
│   ├── libkoala.so
│   ├── libkoala.a
│   └── libkoala.so.1.0
└── Makefile
  • src/: Contains the source files for the main program and the project-specific code.
  • include/: Contains the header files for the project.
  • lib/: Contains the Koala library files.
  • Makefile: The Makefile that automates the build process.

About

The "koala2.5_manager" is a collection of bash scripts to simplify the process of building libraries and projects for the Koala2.5 robot, supporting both C and C++ languages. The manager facilitates the setup and building of projects, making development more efficient for Koala2.5 robot projects.

Topics

Resources

Stars

Watchers

Forks