Skip to main content

An Educational Kit for Simulated Robot Learning in ROS 2

  • Conference paper
  • First Online:
Robot 2023: Sixth Iberian Robotics Conference (ROBOT 2023)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 978))

Included in the following conference series:

  • 18 Accesses

Abstract

Robot Learning is one of the most important areas in Robotics and its relevance has only been increasing. The Robot Operating System (ROS) has been one of the most used architectures in Robotics but learning it is not a simple task. Additionally, ROS 1 is reaching its end-of-life and a lot of users are yet to make the transition to ROS 2. Reinforcement Learning (RL) and Robotics are rarely taught together, creating greater demand for tools to teach all these components. This paper aims to develop a learning kit that can be used to teach Robot Learning to students with different levels of expertise in Robotics. This kit works with the Flatland simulator using open-source free software, namely the OpenAI Gym and Stable-Baselines3 packages, and contains tutorials that introduce the user to the simulation environment as well as how to use RL to train the robot to perform different tasks. User tests were conducted to better understand how the kit performs, showing very positive feedback, with most participants agreeing that the kit provided a productive learning experience.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/avidbots/flatland.

  2. 2.

    https://github.com/GoncaloLeao/Scientific-Research.

  3. 3.

    http://design.ros2.org/articles/changes.html.

  4. 4.

    http://wiki.ros.org/Documentation.

  5. 5.

    https://docs.ros.org/en/foxy/index.html.

  6. 6.

    https://github.com/ros2/ros1_bridge.

  7. 7.

    https://github.com/duckietown/gym-duckietown.

  8. 8.

    https://github.com/JoaoCostaIFG/flatland.

  9. 9.

    https://www.gymlibrary.dev/.

  10. 10.

    https://github.com/FilipeAlmeidaFEUP/ros2_teleopkeys_tutorial.

  11. 11.

    https://github.com/FilipeAlmeidaFEUP/ros2_teleopkeys_publisher.

  12. 12.

    https://github.com/FilipeAlmeidaFEUP/ros2_flatland_rl_tutorial.

References

  1. DiLuoffo, V., Michalson, W.R., Sunar, B.: Robot operating system 2: the need for a holistic security approach to robotic architectures. Int. J. Adv. Rob. Syst. 15(3) (2018)

    Google Scholar 

  2. Leão, G., Almeida, F., Trigo, E., Ferreira, H., Sousa, A., et al.: Using deep reinforcement learning for navigation in simulated hallways. IEEE (2023)

    Google Scholar 

  3. Berenguel, M., Rodríguez, F., Moreno, J.C., Guzmán, J.L., González, R.: Tools and methodologies for teaching robotics in computer science & engineering studies. Comput. Appl. Eng. Educ. 24, 202–214 (2016)

    Article  Google Scholar 

  4. Amo, D., Fox, P., Fonseca, D., Poyatos, C.: Systematic review on which analytics and learning methodologies are applied in primary and secondary education in the learning of robotics sensors. Sensors (Switzerland) 21, 153 (2021)

    Article  Google Scholar 

  5. Newman, W.S.: A Systematic Approach to Learning Robot Programming with ROS, 1st edn. Chapman and Hall/CRC, Boca Raton (2017)

    Book  Google Scholar 

  6. Quigley, M., Gerkey, B., Conley, K., Faust, J., Foote, T., et al.: ROS: an open-source Robot Operating System (2009)

    Google Scholar 

  7. Maruyama, Y., Kato, S., Azumi, T.: Exploring the performance of ROS2. Association for Computing Machinery, Inc (2016)

    Google Scholar 

  8. O’Kane, J.M.: A Gentle Introduction to ROS (2014)

    Google Scholar 

  9. Stavrinos, G.: ROS2 for ROS1 users. In: Koubaa, A. (ed.) Robot Operating System (ROS). SCI, vol. 895, pp. 31–42. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-45956-7_2

    Chapter  Google Scholar 

  10. Rico, F.M.: A Concise Introduction to Robot Programming with ROS2. CRC Press, Boca Raton (2022)

    Book  Google Scholar 

  11. Ventuzelos, V., Leão, G., Sousa, A.: Teaching ROS1/2 and reinforcement learning using a mobile robot and its simulation. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-21065-5_48

  12. Choi, H., Crump, C., Duriez, C., Elmquist, A., Hager, G., et al.: On the use of simulation in robotics: opportunities, challenges, and suggestions for moving forward. Proc. Natl. Acad. Sci. 118(1), e1907856118 (2020)

    Article  Google Scholar 

  13. Tselegkaridis, S., Sapounidis, T.: Simulators in educational robotics: a review. Educ. Sci. 11, 11 (2021)

    Article  Google Scholar 

  14. Gomes, A.S.A., Silva, J.F.D., Teixeira, L.R.D.L.: Educational robotics in times of pandemic: challenges and possibilities. In: 2020 Latin American Robotics Symposium (LARS), 2020 Brazilian Symposium on Robotics (SBR) and 2020 Workshop on Robotics in Education (WRE) (2020)

    Google Scholar 

  15. Koenig, N., Howard, A.: Design and use paradigms for Gazebo, an open-source multi-robot simulator. In: 2004 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), vol. 3. IEEE (2004)

    Google Scholar 

  16. Todorov, E., Erez, T., Tassa, Y.: MuJoCo: a physics engine for model-based control. In: 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems (2012)

    Google Scholar 

  17. Alves, M., Sousa, A., Cardoso, Â.: Web based robotic simulator for tactode tangible block programming system. In: Silva, M.F., Luís Lima, J., Reis, L.P., Sanfeliu, A., Tardioli, D. (eds.) ROBOT 2019. AISC, vol. 1092, pp. 490–501. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-35990-4_40

    Chapter  Google Scholar 

  18. Michel, O.: Cyberbotics Ltd. Webots\(^{TM}\): professional mobile robot simulation. Int. J. Adv. Rob. Syst. 1, 40–43 (2004)

    Google Scholar 

  19. Garbev, A., Atanassov, A.: Comparative analysis of RoboDK and robot operating system for solving diagnostics tasks in off-line programming. In: 2020 International Conference Automatics and Informatics (ICAI). IEEE (2020)

    Google Scholar 

  20. Haak, V., Abke, J., Borgeest, K.: Work-in-Progress: development of a LEGO mindstorms EV3 simulation for programming in C. In: Auer, M.E., Tsiatsos, T. (eds.) ICL 2018. AISC, vol. 917, pp. 667–674. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-11935-5_63

    Chapter  Google Scholar 

  21. Körber, M., Lange, J., Rediske, S., Steinmann, S., Glück, R.: Comparing popular simulation environments in the scope of robotics and reinforcement learning. arXiv preprint arXiv:2103.04616 (2021)

  22. Zhao, W., Queralta, J.P., Westerlund, T.: Sim-to-real transfer in deep reinforcement learning for robotics: a survey. In: IEEE Symposium Series on Computational Intelligence (SSCI) (2020)

    Google Scholar 

  23. Albonico, M., Dordević, M., Hamer, E., Malavolta, I.: Software engineering research on the robot operating system: a systematic mapping study. J. Syst. Softw. 197, 111574 (2023)

    Article  Google Scholar 

  24. Srinath, K.R.: Python-the fastest growing programming language. Int. Res. J. Eng. Technol. 4, 354–357 (2017)

    Google Scholar 

  25. Ateeq, M., Habib, H., Umer, A., Rehman, M.U.: C++ or Python? Which one to begin with: a learner’s perspective. In: 2014 International Conference on Teaching and Learning in Computing and Engineering (2014)

    Google Scholar 

  26. Cutting, V., Stephen, N.: A review on using Python as a preferred programming language for beginners. Int. Res. J. Eng. Technol. 8(8), 4258–4263 (2021)

    Google Scholar 

Download references

Acknowledgments

This work is co-financed by Component 5 - Capitalization and Business Innovation, integrated in the Resilience Dimension of the Recovery and Resilience Plan within the scope of the Recovery and Resilience Mechanism (MRR) of the European Union (EU), framed in the Next Generation EU, for the period 2021 – 2026, within project Hi_reV, with reference 64.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gonçalo Leão .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Almeida, F., Leão, G., Sousa, A. (2024). An Educational Kit for Simulated Robot Learning in ROS 2. In: Marques, L., Santos, C., Lima, J.L., Tardioli, D., Ferre, M. (eds) Robot 2023: Sixth Iberian Robotics Conference. ROBOT 2023. Lecture Notes in Networks and Systems, vol 978. Springer, Cham. https://doi.org/10.1007/978-3-031-59167-9_42

Download citation

Publish with us

Policies and ethics