Skip to main content

Raya SDK - Unlimited Robotics Software Development Kit

Project description

Documentation

Usage

rayasdk [-h] [-v | -q] command {command-options}

Optional arguments:

  • h --help: show this help message and exit.
  • v --verbose: increase output verbosity.
  • q --quiet: don't print on stdout.

Positional arguments:

  • command: SDK Command

Commands:

  • simulator : Runs the simulator and the Raya os image
  • init : Initialize Raya project in the current folder.
  • scan : Discover robots in the network.
  • connect : Connect raya to a robot or simulator.
  • run : Execute current Raya project.
  • update : Updates the Raya simulator.
  • kill : Kill all Ra-Ya apps that are executed.

Developer notes: Notes

simulator

Runs the unity simulator

Usage:

rayasdk simulator [-d] [-h] {simulation-flags}

Optional arguments:

  • --help: Show this help message and exit
  • --debug: Runs only the unity simulator

Example:

rayasdk simulator

init

Initialize Raya project in the current folder.

Usage:

rayasdk init [-h] --app-id APP_ID [--app-name APP_NAME]

Required arguments:

  • --app-id APP_ID: Application unique identificator (It has to be in snake_case format)

Optional arguments:

  • --app-name APP_NAME: Application name
  • h --help: Show this help message and exit

Example:

rayasdk init --app-id helloworld --app-name 'Hello World'

scan

Discover robots in the local network

Usage:

rayasdk scan [-h]

Optional arguments:

  • h --help: Show this help message and exit

Example:

rayasdk scan

Output:

# rayasdk scan
Press enter to exit...

Robot ID         Serial           IP Address
---------------  ---------------  --------------
GARY_COLOMBIA    GARY_COLOMBIA    192.168.20.55
GARY_COLOMBIA_1  GARY_COLOMBIA_1  172.25.188.155

connect

Connect the current Raya project to a robot or simulator. The connection settings are global and are stored in ~/.ur/connection.json

Usage:

rayasdk connect [-h] [--robot-id ROBOT_ID | --robot-ip ROBOT_IP | --simulator]

Required mutually exclusive arguments:

  • --robot-id ROBOT_ID: Robot identificator (from scan list).
  • --robot-ip ROBOT_IP: Robot ip (from scan list or if you know it).
  • --simulator: Connect the project to the simulator.

Optional arguments:

  • h --help: Show this help message and exit

Example:

Connection to robot

rayasdk connect --robot-ip 192.168.20.55

Output:

# rayasdk connect --robot-ip 192.168.20.55
RayaOS is not up to date, if you wish to update, please run "rayasdk update"
SSH key found. Pushing key to remote server
The authenticity of host '[192.168.20.55]:2222 ([192.168.20.55]:2222)' can't be established.
ED25519 key fingerprint is ...
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
/home/ur-sb/.local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/home/ur-sb/.local/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system.
		(if you think this is a mistake, you may want to use -f option)

You have successfully connected to GARY_COLOMBIA

Connection to simulator

rayasdk connect --simulator
# rayasdk connect --simulator
You have successfully connected to the simulator

update

Check for a partial or full download of the Ra-ya Simulator and the Raya-os Image, This will create the following structure in ~/.ur

~/.ur
├── simulator
	└── raya_simulator_1.0.4_linux
			└── ...
└── versions.txt

Usage:

rayasdk update [-h]

Optional arguments:

  • h --help: Show this help message and exit

Example

rayasdk update

Output

# rayasdk update
Checking for updates...
Checking for full update...
...
Downloading Ra-Ya simulator v1.0.4...
...
Extracting...
Simulator updated successfully
Removing old Ra-Ya containers and images...
Docker image 'raya_os:1.0.10' not found.
Downloading Ra-Ya OS v1.0.10 (only once)...
Copying gs://raya_files/Common/TestingVCS/raya_os_1.0.10.zip...
- [1/1 files][  1.8 GiB/  1.8 GiB] 100% Done   3.8 MiB/s ETA 00:00:00           
Operation completed over 1 objects/1.8 GiB.                                      
Extracting Ra-Ya OS image.
Creating image...
...
Loaded image: unlimited_robotics/raya_os/gary_unity:1.0.10
Update completed successfully.

run

Execute the current Raya project according to the connection settings.

Usage:

rayasdk run [-d]

Optional arguments:

  • --debug: Wait for the vscode client for debug purposes.

Example

rayasdk run

kill

Kill all Ra-Ya apps that are executed by the user rayadevel.

Usage:

rayasdk kill [-h]

Optional arguments:

  • h --help: Show this help message and exit

Example

rayasdk run

Notes

  • The credentials if you want to connect over ssh to the robot using the rayadevel user are USER: rayadevel Password: gary Port:2222
  • The app is deleted when the container is closed, the route for the apps that are being runned is /opt/raya_os/rayadevel/apps/{APP_ID}
  • In the simulator the .ur/simulator/apps folder gets mounted, if this folder is deleted the container will not use it, so if you try to run an app it is going to fail, close the container, run any command in the sdk and run the bringup again
  • In your home folder there is going to be a folder called .ur that contains two files and a file that saves the current robot that is going to be used in the run option and a folder with the simulator and the apps that are used in the simulation.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rayasdk-3.7.13.dev0.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rayasdk-3.7.13.dev0-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file rayasdk-3.7.13.dev0.tar.gz.

File metadata

  • Download URL: rayasdk-3.7.13.dev0.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for rayasdk-3.7.13.dev0.tar.gz
Algorithm Hash digest
SHA256 15f78853f08611dd12f36b4c529de8ce562c38262853ddab5bdda2896a6afd55
MD5 0aa6df6c9af735edaedd2a855e48c894
BLAKE2b-256 ccc6b4280b0dc29f09c98077fa287f2ae349a9008edee6c5bdc3c8b0558aa316

See more details on using hashes here.

File details

Details for the file rayasdk-3.7.13.dev0-py3-none-any.whl.

File metadata

  • Download URL: rayasdk-3.7.13.dev0-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for rayasdk-3.7.13.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc2de82beaf4507f8bc3f642a2fad81fba836c8029552dd17ef1b3c51fec3c61
MD5 d32739fb8577c35d9e154f3d4e8d7b4b
BLAKE2b-256 a60feb238721774593bc2a4f143065eb370b8b64eb37c1dfd8c1801b75fb7b71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page