CPE313 Week4
CPE313 Week4
Robotics Technology
Dr. Mohannad Farag
2021-2022, Semester I
Lesson overview
In this week, you will how sensors provide information about the world. How to block the project flow using wait until
command. Program your robot with a Pseudocode approach, calculating threshold of analog sensor values. Also, you will
learn how to use Comparison Operators to let VR robot to make its decision. You will implement these knowledge to solve
Line dectector challenge.
Learning objectives
1. Identify SPPA term and some of sensor's types.
2. Identify the wait until command using while not loop.
3. Identify the Pseudocode term.
4. Identify the threshold of analog sensor values.
5. Identify Comparison Operators.
Keywords
• The robot can tell when it reaches the weight using the Bumper Switch Sensor. And in both
cases, that’s how the robot knows when to stop.
• Based on its understanding of the world around it, the robot then needs to respond
appropriately. Sometimes the strategy can be written in advance, like turning left at the first wall.
• Perception Subsystem
• Planning Subsystem
• Controls Subsystem
https://medium.com/streetdrone/hello-world-sense-plan-act-aa5772e93344
Perception Subsystem
This is the vehicle’s center of understanding its environment. It receives the sensors’ output to
perform 3D scene reconstruction and to make decisions about the vehicles’ surroundings.
• The localization module determines the vehicle’s precise location using the lidar
data and the extracted map and comparing the two-point clouds.
Planning Subsystem
Planning system uses the processed information from the perception subsystem to calculate
the vehicle’s path. It can be divided into the route planning, the behavior planning and the
trajectory generation modules. It can be divided into:
https://medium.com/streetdrone/hello-world-sense-plan-act-aa5772e93344
Controls Subsystem (the robot will act)
• The robot will act by translating the velocity requests into movement commands using
Proportional–Integral–Derivative (PID) controller and Model Predictive Control (MPC).
https://tipsmake.com/how-to-write-pseudocode
Pseudocode
Design small steps at a time with iterative
Building all at once can lead to failure process
Pseudocode vs Algorithm
https://www.pinterest.com/pin/781867185294014231/
Describe your pseudocode in a flowchart
https://code2flow.com/
Threshold of analog sensor values
Line Tracking Sensors (Brightness, light-dark, color sensors)
• The Line Tracking Sensors can detect the basic colors of objects and surfaces by aiming
directly at them at a close range.
• They do so by illuminating a surface with their infrared LED and then measuring how
much light is reflected.
• The amount of reflected Infrared light allows the robot to know if it is above a dark or
light surface.
• Even though the Line Tracking Sensor provides a range of values, the robot can only
make Yes-No, True-False Boolean Comparisons.
● Refer to the Sensors and Vision* pdf reference attached to the week 4 assignment.
● Summarize the sensor technology in the following categories:
1. Limit switches
2. Proximity switches
3. Tactile and impact sensing
4. Position sensing
5. Sound sensing
6. Vision system
• The maximum number of pages is 6.
• Submit your work to MS teams in a word (docx.) format.
_________________________________________________
* chapter 6 in Basic Robotics textbook written by Keith Dinwiddie