Code Monkey home page Code Monkey logo

f1-nextgen-mid-level-controller's Introduction

F1-NextGen Mid Level Controller

Since the processing power of the Raspberry Pi Zero module is insufficient for a "quick" compilation, we made tools to help you compile ROS2 on your PC for the Raspberry Pi Zero.

Prerequisites

Please make sure everything is ready for you to proceed:

  • Raspberry Pi OS ready on your Raspberry Pi (tutorial).
  • SSH access to the Raspberry Pi (ssh pi@[raspberry_pi_ip]).
  • Docker on your PC (tutorial).

ROS2 Cross-Compilation on Your PC

This repository contains a Dockerfile with a cross-compiled ROS2 Foxy Workspace for the Raspberry Pi Zero. To build the image, execute

make build

Now, you can use the script we provide to run the container:

./run.sh

It also mounts the src folder in the docker container. The entrypoint for the container is set to the mounted workspace.

Now, to compile your code, you can use the custom command:

cross-colcon-build

This builds all packages in the mounted workspace with the right parameters and toolchain for the Raspberry Pi.

Using the Cross-Compiled Code on your Raspberry Pi

To transfer the cross-compiled code to your Raspberry Pi, you first have to copy over the ROS2 workspace. This only has to be done once, since it does not change afterwards. Transfer the ROS2 workspace to your Pi with the custom command we provide:

scp-ros2_ws <USER> <IP>

After the workspace is transfered, you can do the same for your vehicle workspace. This has to be done every time you change something on the code:

scp-vehicle_ws <USER> <IP>

f1-nextgen-mid-level-controller's People

Contributors

beerwerthjulius avatar lheg avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.