Abstract
In an effort to teach controller design in the college classroom, we have built a toolbox connecting the LEGO SPIKE Prime robotic platform, Raspberry Pi 4, Onshape CAD environment, and ROS 2/Gazebo. In this paper, we outline the exploratory process in connecting these platforms through the creation of a virtual machine package bundling all process dependencies and connections. This includes developing a library of LEGO pieces in Onshape and developing a Raspberry Pi image and a Linux VM for the laptop that can be shared across the class (all shared on Google Drive). We demonstrate the package in building a LEGO self-balancing robot and then using its ROS-controlled digital twin (drawn in Onshape) to tune the controller (PID) in the virtual world (Gazebo) and then successfully apply the controller to the LEGO robot.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Lopez-Nicolas, G., Romeo, A., Guerrero, J.: Simulation tools for active learning in robot control and programming, pp. 1–6. (2009). https://doi.org/10.1109/EAEEIE.2009.5335490
Irigoyen, E., Larzabal, E., Priego, R.: Low-cost platforms used in control education: an educational case study. IFAC Proc. Volumes 46(17), 256–261 (2013). https://doi.org/10.3182/20130828-3-UK-2039.00058
Gazebo. http://gazebosim.org/
Arduino. https://www.arduino.cc/
LEGO Education. https://education.lego.com/en-au/
Edwards, G., et al.: A test platform for planned field operations using LEGO mindstorms NXT. Robotics 2(4), 203–216. ProQuest. (2013). https://doi.org/10.3390/robotics2040203
Danahy, E., Wang, E., Brockman, J., Carberry, A., Shapiro, B., Rogers, C.B.: LEGO-based robotics in higher education: 15 years of student creativity. Int. J. Adv. Robot. Syst. 11(2), 27 (2014). https://doi.org/10.5772/58249
Cheng, C.-C., Huang, P.-L., Huang, K.-H.: Cooperative learning in lego robotics projects: exploring the impacts of group formation on interaction and achievement. J. Netw. 8(7), 1529–1529. (2013). https://doi.org/10.4304/jnw.8.7.1529-1535
Martinez-Tenor, A. Cruz-Martin, A., Fernandez-Madrial, Juan-Antonio, R.: Teaching machine learning in robotics interactively: the case of reinforcement learning with lego mindstorms. Interact. Learn. Environ. 27(3), 293–306 (2019). https://doi.org/10.1080/10494820.2018.152541
Fanchamps, N.L.J.A., Slangen, L., Hennissen, P., Specht, M.: The influence of SRA programming on algorithmic thinking and self-efficacy using Lego robotics in two types of instruction. Int. J. Technol. Des. Educ. (2019).https://doi.org/10.1007/s10798-019-09559-9
Akin, H.L., Mericli, C., Mericli, T.: Introduction to autonomous mobile robotics using Lego mindstorms NXT. Comput. Sci. Educ. 23(4), 368–386 (2013). https://doi.org/10.1080/08993408.2013.838066
LEGO SPIKE Prime. https://education.lego.com/en-us/products/lego-education-spike-prime-set/45678#spike
Onshape. https://www.onshape.com/en/
GrabCAD. https://grabcad.com/
Thingiverse. https://www.thingiverse.com/
LEGO SPIKE Prime Onshape Document. https://cad.onshape.com/documents/f80b668b3ae9c732b3c7d91b/w/cc29213b0eb52b9d3bc554e2/e/78708f75527b34fb9f21b768
Solidworks. https://www.solidworks.com/
Fusion 360. https://www.autodesk.com/products/fusion-360/overview
Python. https://www.python.org/
Rhoban, onshape-to-robot, Github Repository (2020). https://github.com/Rhoban/onshape-to-robot
gazebo\(\_\)ros\(\_\)pkgs. http://wiki.ros.org/gazebo_ros_pkgs
VMware. https://www.vmware.com/
Ubuntu. https://ubuntu.com/
Google Drive. https://www.google.com/intl/en/drive/
Virtual Machine Google Drive Hosting. https://drive.google.com/drive/folders/1jaeOl53 kcf-iK5GLCMRy_wXDmsG37tWbi?usp=sharing
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Gervais, O., Patrosio, T. (2022). Developing an Introduction to ROS and Gazebo Through the LEGO SPIKE Prime. In: Merdan, M., Lepuschitz, W., Koppensteiner, G., Balogh, R., Obdržálek, D. (eds) Robotics in Education. RiE 2021. Advances in Intelligent Systems and Computing, vol 1359. Springer, Cham. https://doi.org/10.1007/978-3-030-82544-7_19
Download citation
DOI: https://doi.org/10.1007/978-3-030-82544-7_19
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-82543-0
Online ISBN: 978-3-030-82544-7
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)