Exercises II 26 good

Table of contents

  1. Exercises (II)
  2. Behavior Trees for Autonomous Mobile Robots
  3. Robotino View and Teleoperation
  4. Collision Prediction and Control

1. Exercises (II)

1.1 Decision trees

A decision tree is a tool used to visualize all possible outcomes of a decision or event. It branches out to show each potential choice and its subsequent consequences 2.

  • Purpose: Decision trees help in understanding and analyzing the sequence of choices and their potential results.
  • Application in Games: They are particularly useful in games like chess, where the opening move has numerous possibilities.
  • Pruning Branches: A key strategy when working with decision trees is to "ruthlessly prune the branches," meaning to eliminate unnecessary paths and consider the fewest decisions possible 2.

1.2 Tic-Tac-Toe decision tree

The game of Tic-Tac-Toe provides a clear example of a decision tree's complexity 3.

  • First Move: The first player in Tic-Tac-Toe has 9 initial possibilities for placing their mark.
  • Subsequent Moves: With each subsequent move, the number of available choices decreases: 8 possibilities for the second move, then 7, and so on.
  • Total Choices: This sequential reduction in options leads to a large number of total possible game outcomes, calculated as 362,880.
  • Alpha-Beta Tree Search: Algorithms like the Alpha-Beta tree search can be applied to games like Tic-Tac-Toe to optimize decision-making.
  • Algorithm Function: This algorithm identifies and avoids exploring subtrees where a player is guaranteed to lose, thus simplifying the search process 3.

📝 In Tic-Tac-Toe, if player MIN places an 'X', player MAX can then place an 'O'. MAX has three options (positions 2, 3, or 4 on the board). The Alpha-Beta algorithm can determine if exploring certain branches further is unnecessary because MAX can already foresee a losing outcome 3.

2. Behavior Trees for Autonomous Mobile Robots

2.1 Introduction to Behavior Trees

Behavior Trees (BTs) offer a visual, flowchart-like method for controlling the decision-making processes of Autonomous Mobile Robots (AMRs). They provide a structured way for robots to manage their actions and reactions in complex environments 4.

2.2 Composite Nodes

Composite nodes act as switches within a behavior tree, controlling the flow and execution of child nodes. They determine how the robot navigates and executes its tasks 4.

Node TypeFunction
SequenceExecutes child nodes sequentially.
SelectorExecutes child nodes until one succeeds, enabling fallback options.
ParallelExecutes multiple child nodes simultaneously for multitasking.

2.3 Condition and Action Nodes

Condition nodes evaluate the robot's internal state, often using sensor data, to make decisions. Action nodes, conversely, are responsible for the robot executing specific tasks, which may involve activating motors or performing physical actions 5.

Action Node ExamplesCondition Node Examples
Move to a designated locationCheck if an obstacle is present
Pick up an objectVerify if a destination has been reached
Place an objectDetermine if an object is currently being held
Sound an alertAssess battery level

2.4 Designing and Utilizing Behavior Trees

Developing a complex behavior tree for an AMR requires careful consideration of how to subdivide the main tree into subtrees. It is also crucial to classify the robot's most important internal states and tasks, and to structure the tree for code reuse and to prevent misinterpretations of the robot's behavior.

For instance, if an AMR encounters an unexpected obstacle, the behavior tree allows it to recalculate its route in real-time, preventing it from becoming stuck 5.

📝 If a robot's behavior tree has a selector node, and the first child node is to "Charge Battery" (which succeeds if the battery is low), the robot will attempt to charge if its battery level is low. If the battery level is not low, the selector will move to the next child node, perhaps "Go to Target Location." 4.

3. Robotino View and Teleoperation

3.1 Robotino View software

Robotino View is the software used by the Robotino mobile robot. It employs Sequential Function Charts for the main program and block diagrams for individual steps within that program 6.

  • Main program structure: The main program is organized as a sequence tree, allowing for multiple branches after a step.
  • Subprogram example: A subprogram can increment a global variable a by 1. To keep a within the range of 0 to 2, it is calculated using the modulo 3 operation. Another variable, b, remains at 0 7.

3.2 Network capabilities and teleoperation

Robotino View's network capabilities enable human supervision and intervention. While the robot is autonomous, it can send data, such as selfies from its camera, to a ground control station.

A human supervisor can then modify path planning to avoid hazardous situations. This allows for a switch from autonomous mode to human teleoperation mode 7.

3.3 Technology for teleoperation

Teleoperation requires specific technology, including a laboratory network, a computer, and the Robotino itself. The IP address "130.130.130.200" facilitates program transmission from the computer to the robot 7.

  • Robotino block: This block features a 3-axis input for a joystick.
  • Joystick connection: The joystick connects to the computer via a USB port.
  • Human control: A human expert can drive the robot in teleoperation mode 7.

📝 A human supervisor monitors the Robotino's autonomous path planning. The robot captures a selfie and sends it to the ground station. Seeing a potential obstacle, the supervisor intervenes via teleoperation to adjust the robot's path and avoid a collision 7.

4. Collision Prediction and Control

4.1 Autonomous movement and control

Autonomous robots move based on a series of predefined points, ensuring each point is reached before proceeding to the next. This movement is managed by a PID control law, which provides input to the actuators.

This forms a feedback control loop for each wheel, allowing the robot to adjust its movement based on sensor data. The robot operates within a known reference system, typically established in the laboratory 8.

4.2 Collision detection and response

The robot distinguishes between two primary states related to movement: pose==1 indicates movement in free space, while collision==1 signifies either an actual crash or a potential collision. Collision detection is facilitated by a bumper sensor for immediate impact detection and nine distance sensors for proximity awareness 8.

When an obstacle is detected, especially if it is identified in time, the robot employs a control strategy to avoid a complete stop. This strategy involves reducing speed, changing orientation, and modifying the robot's trajectory to navigate around the obstacle.

The goal is to avoid the collision while maintaining as much forward momentum and operational continuity as possible 10.

📝 If a distance sensor detects an obstacle within a critical range, the robot might immediately slow down and turn away from the obstacle's predicted path, rather than halting completely 10.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also