Skip to content

Sending hz to repository

Maksym Figat edited this page Jun 26, 2015 · 4 revisions

Home | Previous | Next - Running dynamic agent | Next - Adding new task to NAO commands


Copy hz package to Rapp Store

Now you are ready to copy generated hz package to Rapp Store, e.g helloworld-1.0.0.hz:

scp /home/nao/hz_packages/hz/helloworld-1.0.0.hz <RAPP_STORE_NAME>@<IP_ADDRESS>:<PATH>

If you can't copy a package from your virtual machine to your machine that launches virtual machine then type:

cd <YOUR_HZ_RAPP_STORE_PATH>
scp nao@<YOUR_VM_IP_ADDRESS>:/home/nao/hz_packages/hz/helloworld-1.0.0.hz .

In folder /home/nao/hz_packages/packages you can find dynamic agent packages ready to be archived in form of hz packages. If you forgot to edit run file, modify run script that is in the folder associated with your dynamic agent package. To archive it as hz package type manually:

tar czvf <name_of_your_package>-1.0.0.hz /home/nao/hz_packages/packages/<name_of_your_package>

Remotely generating hz package using virtual machine

Modify in script rappstore_generate_and_get_hz.sh value of PATH_TO_SCRIPTS. Script requires four parameters:

  • usage: bash rappstore_generate_and_get_hz.sh VM_IP_ADDRESS PACKAGE_NAME FLAG1 FLAG2
    • VM_IP_ADDRESS
    • PACKAGE_NAME
    • FLAG1
      • 0 - without downloading repository from github
      • 1 - downloading repository from github
    • FLAG2
      • 0 - without compilation
      • 1 - with compilation

The following script remotely generates voicemail-1.0.0.hz and copies it into the rappstore machine:

bash ~/path_to_rappstore_scripts/rappstore_generate_and_get_hz.sh <VM_IP_ADDRESS> voicemail 0 0
ls
# You will get:
# voicemail-1.0.0.hz

Home | Previous | Next - Running dynamic agent | Next - Adding new task to NAO commands

Clone this wiki locally