Package Management


Command Index

Detail Information

admin

Local Package administration

Usage

 $ mgr.py admin [SUBCOMMAND]

Description

Package Administration mainly for version controlling like git.

Sub Commands

push

Push your commits to your remote repository

git_init

Initialize git repository for your package

remote_create

Create remote repository in your remote service (github|bitbucket).
eg., $ mgr.py admin remote_create -s [github|bitbucket]

commit

Commit changes in your package into the local version control

nameserver

Name Service Administration

Usage

 $ mgr.py nameserver [SUBCOMMAND]

Description

Change setting of Name Service for current package.
Add/Del nameservice for this package.

Sub Commands

list

Show all nameservice of current package

add

Add nameserver address
ex., $ mgr.py nameserver add 192.168.1.1:2809

del

Delete nameserver address
ex., $ mgr.py nameserver del 192.168.1.1:2809

repository

RTC’s repository control

Usage

 $ mgr.py repository [SUBCOMMAND]

Description

With this command, you can …
Show all RTCs in upstream repositories (list)
Initialize your RTC source code directory for a version controling like git (init)

Register your RTC into your own upstream repository (remote_add)

Sub Commands

fini

Remove local repository of your RTC
ex., $ mgr.py repository fini YOUR_RTC_NAME
This command just remove .git directory in rtc/YOUR_RTC_DIR/

pull

Pull from upstream repository to local repository.

init

Create local repository in your RTC code directory (current git only)
ex., $ mgr.py repository init YOUR_RTC_NAME
This command create .git directory in rtc/YOUR_RTC_DIR/

remote_create

Create remote repository in your remote service (currently, github only)
ex., $ mgr.py repository remote_create YOUR_RTC_NAME [ github | bitbucket ]
This automatically tries to add your repository url into your local repository file.

push

Push local commits to upstream repository.

commit

Commit change to local repository.

list

List RTC repositories.

rtc

RTC administration

Usage

 $ mgr.py rtc [SUBCOMMAND]

Description

This command provides RTC administration functions.
You can get installed RTC list.
You can clone/fork RTC from internet.
You can build/clean RTC source code.

Sub Commands

fork

Fork RTC source code from RTC repository to your remote repository.
ex., $ mgr.py rtc fork YOUR_RTC_REPOSITORY
You will asked your remote repository address (Currently github only).

run

This command will run the specified RTC only.
ex., $ mgr.py rtc run YOUR_RTC_NAME

configure

This command will configure YOUR_RTC_NAME.conf file in conf directory.
This configuration will be updated if the RT System Profile has the default configuration values.
However, if your RTC needs to have default configuration such as log_level, endpoints, naming_formats, and so on,
This function is very useful.

edit

This command will launch editor (emacs) to edit RTC source code.
In default, open RTC source code.

clone

Clone RTC source code from RTC repository.
ex., $ mgr.py rtc clone YOUR_RTC_REPOSITORY
This command allows to clone from specific url as well.
ex., $ mgr.py rtc clone YOUR_RTC_URL

list

Display RTCs list which are placed in the current packages rtc directory.

build

Build RTC from Source code.
This command will create rtc/YOUR_RTC/build-YOUR_SYSTEM directory and then, build binary.
If RTC is written in C++, cmake and build (make or msbuild) will be called.
If Python, idl compile is done.
If Java, javac will compile .java codes and then, jar command will create archive file.
After build, this function will install the binary and config files into your bin direcotry.
The place of the bin directory is defined by YOUR_PACKAGE_PATH/setting.yaml.
The files to be copied will be compiled binary *.dll|*.dylib|*.so, and YOUR_RTC_NAME.conf file.
This subcommand recognises -n (–noinstall) option which will change the post-build behavior.
WITH -n option, build process does not copy the binary file to your bin directory,
so you are not able to use the newly built binary for system administration.

clean

Cleanup build directory.

delete

This command delete RTC directory

rtcconf

Configure rtc.conf files for RTC-daemon. Use like…

Usage

 $ mgr.py rtcconf [SUBCOMMAND]

Description

Set/Get rtc.conf files setting.

Sub Commands

status

view all configuration value
ex., $ mgr.py rtcconf status

set

set configuration value
$ mgr.py rtcconf set KEY VALUE
ex., $ mgr.py rtcconf set corba.endpoint 127.0.0.1:2809
You can specify the laungage of RTC daemon with -b option
ex., $ mgr.py rtcconf set -b [cxx|python|java] logger.enable TRUE

get

get configuration value
$ mgr.py rtcconf get KEY
You can specify the laungage of RTC daemon with -b option
ex., $ mgr.py rtcconf get -b [cxx|python|java] logger.enable

system

RT-System administration

Usage

 $ mgr.py system [SUBCOMMAND]

Description

Sub Commands

run

Launch RT-system.
This will launch RTC-daemon of C++, Python, and Java.
All load rtc.conf in conf directory, and precreate RTCs if necessary.
Then, process load RT-System profile (in default, system/DefaultSystem.xml), and
build / activate RT-system.
Before launching RTC-daemon, the naming service will be initiated if necessary.
To stop the system, press Ctrl+C

configure

This command modifies the RT-system profile interactively.

install

Install RTC binary into bin directory.
This command will update conf/rtc_{your_language}.conf file.
By this modification, RTC will be automatically launched by RTC-daemon

uninstall

Uninstall RTC binary from bin directory.
This command also remove the preload and precreate setting.

list

List all RTCs which are installed into the System.

build

Build RT-system.
This command will launch RTC-daemon, and list the available connections.
You will be asked if the ports must be connected or not.
After the listing connections, you will get the RTCs list for the configuration.
You can change the default configuration in the step.
Finally, you will get the DefaultSystem.xml (RT-System-profile) in your system directory.

tools

Launch Tools

Usage

 $ mgr.py tools [SUBCOMMAND]

Description

Launch Tools for RTC development.
You can launc “RTC Builder”, “RT System Editor”, and “Arduino”

Sub Commands

rtcb

Launch RTC Builder

rtse

Launch RT System Editor

arduino

Launch Arduino