Skip to Main content Skip to Navigation
Conference papers

RT-MaG: an open-source SIMULINK Toolbox for Real-Time Robotic Applications

Augustin Manecy 1, 2 Nicolas Marchand 1 Stéphane Viollet 2
2 BIOROB - Biorobotique
ISM - Institut des Sciences du Mouvement Etienne Jules Marey
Abstract : The new open-source Matlab/Simulink toolbox called RT-MaG presented here generates reliable standalone robotic applications running on real-time embedded Linux targets such as tiny Computers On Module (e.g., Gumstix boards). This toolbox gives direct access from Simulink to the main communication drivers classically used in robotics: network interfaces (via UDP), asynchronous and synchronous serial port interfaces (RS232, SPI), Pulse-width-modulation (PWM), general purpose input-output (GPIO) and analog-todigital converters (ADCs). A Simulink model is automatically converted into a standalone multi-task program, which guarantees a repeatable execution time within each sampling time. The toolbox includes efficient debug modes which detect problems such as unsuitable configurations and hardware failure. The main features of the toolbox and its structure are described here. We also discuss the real-time performances and I/Os delays and show that a control loop can be implemented at frequencies of up to 1kHz. The tests performed show that RTMaG can be used to efficiently implement all the control laws involved in stabilizing a quadrotor.
Complete list of metadata

Cited literature [7 references]  Display  Hide  Download
Contributor : Nicolas Marchand <>
Submitted on : Tuesday, December 16, 2014 - 5:41:29 PM
Last modification on : Monday, March 29, 2021 - 2:46:34 PM
Long-term archiving on: : Monday, March 23, 2015 - 2:28:52 PM


Files produced by the author(s)


  • HAL Id : hal-00943294, version 1


Augustin Manecy, Nicolas Marchand, Stéphane Viollet. RT-MaG: an open-source SIMULINK Toolbox for Real-Time Robotic Applications. IEEE International Conference on Robotics and Biomimetics (ROBIO 2014), Dec 2014, Bali, Indonesia. ⟨hal-00943294⟩



Record views


Files downloads