Thanks to visit codestin.com
Credit goes to github.com

Skip to content

airalab/robonomics

Repository files navigation

Robonomics

Web3 Foundation Grants — Wave Two Recipient

License Release Nightly Downloads Matrix

Implementation of a https://robonomics.network node in Rust, based on the Polkadot SDK. For more specific guides, like how to be a node, see the Robonomics Wiki.

Robonomics platform includes a set of open-source packages and infrastructure for Robotics, Smart Cities and Industry 4.0 developers.

1. Try it out

2. The Robonomics Crates

Structure of Robonomics followed:

  • The Node - Robonomics Network OMNI node with buildin Polkadot & Kusama parachain specs.

  • Frame / Pallets - a collection of pallets suitable for Smart City and Industry 4.0 cases.

Full docs available at https://crates.robonomics.network.

3. Building from source

Ensure you have Rust and the support software installed:

curl https://sh.rustup.rs -sSf | sh

You will also need to install the following packages:

  1. Linux:

    sudo apt install protobuf-compiler
  2. Mac:

    brew install pkg-config git llvm
  3. Windows (PowerShell):

    # Install LLVM
    # Download and install the Pre Build Windows binaries
    # of LLVM  from http://releases.llvm.org/download.html

Install robonomics node from git source.

cargo install --force --git https://github.com/airalab/robonomics --tag v4.0.0 robonomics

And then launch full node of robonomics testnet parachain.

robonomics

Or run your local development network.

robonomics --dev

3.1. Building with Nix

  1. Install Nix package manager:

    curl https://nixos.org/nix/install | sh
  2. Run in Nix shell:

    git clone https://github.com/airalab/robonomics && cd robonomics
    nix-shell --run "cargo run --profile production"

3.2. Running Benchmarks

  1. Install the frame-omni-bencher command-line tool:

    cargo install frame-omni-bencher
  2. Build the node with benchmarking features enabled:

    cargo build --release --features runtime-benchmarks
  3. Run the benchmark script to generate weights:

    ./scripts/weights/benchmark-commands.sh

4. Network maintaining

Currently Robonomics is maintained by developers but anyone can support the project. Every additional full node of blockchain helps it to be more sustainable and fault tolerant. Robonomics node binaries is available in release assets or it could be build from source.

4.1. Gatekeepers updates

Launch command:

robonomics --collator

5. Robotics integration

Of course, Robonomics should integrate open-source robotics, our main target is ROS-enabled robots. The node implements a few features to make robotics integration as easy as it possible.