Copyright 2020 The MathWorks Inc.
This repository contains resources for deploying a ROS node on Raspberry Pi hardware using Simulink showcasing an object tracking example.
The repository has two examples which are located in two different folders:
- PublishPi: Deploy a standalone ROS node with vision and control algorithms and validate it from another Simulink model for visualization.
- PublishSubscribePi: Publish and Subscribe between a ROS node in Simulink and a standalone ROS node deployed onto Raspberry Pi.
The Raspberry Pi model has to be deployed on the hardware, whereas the Desktop model is to be run on the system.
- Clone the repository.
- Open MATLAB and navigate to PublishPi or PublishSubscribePi folder.
- Open the Raspberry Pi model. Deploy the model on the hardware using Robot -> Build & Run. Installation of Raspberry Pi Support from Simulink would be necessary: https://www.mathworks.com/hardware-support/raspberry-pi-simulink.html
- Open the Desktop model and run the model.
For any queries, contact the authors at roboticsarena@mathworks.com