Important announcement

Dear visitor,

Please note that this OpenCourseWare platform will be replaced at the end of 2026 by a new platform (under the same url ocw.tudelft.nl).

Courses and their contents that are currently available the platform will partly be migrated. URL’s for this content will change and content might be unavailable for some time. In addition, some courses will not be available anymore.

If you are linking to specific courses on this platform (for instance for your students), please take timely measures to avoid problems with access. Possible actions are:

  • Download the materials to your local platform (laptop, server)
  • For educators only (including TU Delft lecturers): Contact us at ocw@tudelft.nl and inform us what course you are using in what context (institute, program, period of use, number of students). We will research (in collaboration with the authors of the course) and decide if we will migrate the course, and if yes, can supply you with a new url.

Thank you.

6.4.3 Program a FlexBE State (part 1)

Course subject(s) Module 6. Final

In this video and the next one, we will apply what we have learned about FlexBE states to program a state that controls the conveyor belt in our factory simulation.

Before programming a FlexBE state implementation, think carefully about its design:

      •  What should happen when our state becomes active?
      •  What interface should my state have to be used in a state machine?
      • What outcomes can result from our state?
      • What parameters should it have to be configured for a behavior?
      • What data does it need to execute, and what data does it produce? This defines the input and output keys

A FlexBE state is implemented as a Python class that implements the state Lifecycle:

      • It is important to properly document your state.
      • You have to implement the different functions in the state Lifecycle.
Creative Commons License
Hello (Real) World with ROS - Robot Operating System by TU Delft OpenCourseWare is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Based on a work at https://online-learning.tudelft.nl/courses/hello-real-world-with-ros-robot-operating-systems//.
Back to top
[sg_popup id=6]