Lesson Applications of Robotics I - Artificial Intelligence - ثالث ثانوي

Lesson 2 Applications of Robotics I

Revolutionizing the World with Robotics

Robotics

Robotics and Simulators

Lesson 2 Applications of Robotics I

Another advantage of simulators is that they allow developers to easily modify

Webots

Lesson 2 Applications of Robotics I

Area Surveillance

Waypoint

Starting with Webots

The Webots Environment

Lesson 2 Applications of Robotics I

Scene tree: The scene tree is a hierarchical representation of the objects in the simulated environment.

Lesson 2 Applications of Robotics I

First, you have to install the necessary libraries you will use in your project. To install the OpenCV library via PyCharm:

عنوان جديد 2

Lesson 2 Applications of Robotics I

Let's take a look at the project! First you will have to find and load the Webots world file:

Lesson 2 Applications of Robotics I

Next open the Python script file that will be used to control the drone:

Object Position and Rotation

Lesson 2 Applications of Robotics I

Drone Devices

Lesson 2 Applications of Robotics I

The gyroscope is a sensor that measures angular velocity, or the rate of rotation around

Moving to a Target

Motor Calculations

By controlling the speed and direction of these four propellers, the quadcopter can move in

Lesson 2 Applications of Robotics I

The controller library contains the Robot class, whose methods will be used to control the drone.

Lesson 2 Applications of Robotics I

Initialization of the drone's position (x, y, z) and rotation (roll, pitch, yaw)

Lesson 2 Applications of Robotics I

The waypoints of the route the drone will be flying

Lesson 2 Applications of Robotics I

Now it's time to insert the script into the drone and run the simulation:

Lesson 2 Applications of Robotics I

When you start the simulation, the drone's motors will power up and it will take off. Then it will follow the predeterminded route around the house, passing through the waypoints.

Lesson 2 Applications of Robotics I

Analyze the move_to_target() function and explain how the drone calculates its next position in the waypointslist. How can the drone'strajectory be optimized to minimize flight time between t

Evaluate the limitations ofthe current drone control algorithm when faced with external factors such as wind, obstacles, or GPS inaccuracies.

Lesson 2 Applications of Robotics I

Explore the ethical implications of autonomous aerial dronesin real-world applications, such as surveillance, package delivery, and search-and-rescue operations.

Add a feature thatlogsthe drone's position, altitude, and orientation atregularintervals during its flight. Write down any patterns that you may find in the log data.

Experiment with different values for the PID controller constants (K_VERTICAL_P, K_ROLL_P, and K_PITCH_P).