Robotics Notes
Robotics (INF-2600)
Introduction to AI in Robotics
- Robotics Definition: A multidisciplinary field combining mechanical engineering, electronics, computer science, and AI to create autonomous systems. These systems are designed to perceive, decide, and act within the physical world.
- Intelligence in Robotics: Robots exhibit intelligence when they can adapt, learn, and respond to sensory input rather than merely executing pre-programmed routines.
Embodied Intelligence
- Embodied AI: This concept shifts from software agents to physical robots, emphasizing intelligence expressed through a physical body that learns via interaction with the real world.
- Historical Context: Embodied AI's evolution can be traced from early robots like Shakey (1960s) to the advanced robots of Boston Dynamics.
Core Components of an AI Robot
- Perception:
- Involves using sensors such as cameras, LiDAR, IMU (Inertial Measurement Unit), and touch sensors.
- AI enhances perception through object detection, localization, and SLAM (Simultaneous Localization and Mapping).
- Reasoning and Decision Making:
- Includes path planning and obstacle avoidance.
- Learning in Robotics:
- Utilizes Reinforcement Learning (RL), imitation learning, and Sim2Real techniques.
Introduction to Manipulator Kinematics
- Inspired by Burton, York University
Robotic Manipulators
- Definition: A robotic manipulator is a kinematic chain, which is an assembly of rigid bodies connected by joints that allow movement relative to each other through mechanical constraints.
- Links: The rigid bodies in the manipulator.
- Joints: The mechanical constraints that allow relative movement between links.
Joints
- Types of Joints:
- Revolute (Rotary):
- Functions like a hinge, allowing relative rotation about a fixed axis between two links.
- By convention, the axis of rotation is the z-axis.
- Prismatic (Linear):
- Functions like a piston, allowing relative translation along a fixed axis between two links.
- By convention, the axis of translation is the z-axis.
- Revolute (Rotary):
- Joint Convention: Joint connects link to link . When joint is actuated, link moves.
Joint Variables
- Degrees of Freedom (DOF): Revolute and prismatic joints are one degree of freedom joints, described by a single numeric value called a joint variable.
- Joint Variable Notation: represents the joint variable for joint .
- Revolute:
- : Angle of rotation of link relative to link .
- Prismatic:
- : Displacement of link relative to link .
- Revolute:
Revolute Joint Variable
- For a revolute joint, the joint variable is equal to the angle of rotation of link relative to link .
Prismatic Joint Variable
- For a prismatic joint, the joint variable is equal to the displacement of link relative to link .
Common Manipulator Arrangements
- Most industrial manipulators have six or fewer joints.
- The first three joints form the arm.
- The remaining joints form the wrist.
- Manipulators are often described using the joints of the arm:
- R: Revolute joint
- P: Prismatic joint
Articulated Manipulator
- Configuration: RRR (all three joints are revolute).
- Joint Axes:
- : Waist
- : Shoulder (perpendicular to )
- : Elbow (parallel to )
Spherical Manipulator
- Configuration: RRP
- Example: Stanford arm
SCARA Manipulator
- Configuration: RRP (revolute-revolute-prismatic)
- Full Name: Selective Compliant Articulated Robot for Assembly
Forward Kinematics
- Problem: Given the joint variables and link dimensions, determine the position and orientation of the end effector.
Forward Kinematics - Process
- Choose the base coordinate frame of the robot.
- Express the position in this frame.
- Link 1 moves in a circle centered on the base frame origin:
- Choose a coordinate frame with its origin located on joint 2, oriented the same as the base frame.
- Link 2 moves in a circle centered on frame 1:
- Sum the coordinates because the base frame and frame 1 have the same orientation. The position of the end effector in the base frame is:
- Determine the orientation of frame 2 with respect to the base frame, expressing and in terms of and .
Inverse Kinematics
- Problem: Given the position (and possibly the orientation) of the end effector and the link dimensions, determine the joint variables.
- Challenge: Inverse kinematics is more complex than forward kinematics because there is often more than one possible solution.
Inverse Kinematics - Law of Cosines
- Using the law of cosines:
- Therefore:
- And:
- Let , then
- Taking the inverse cosine gives only one of two possible solutions.
- Using trigonometric identities to obtain both solutions:
- Calculate and :
- Solutions for :
Spatial Descriptions
Points and Vectors
- Point: A location in space.
- Vector: Magnitude (length) and direction between two points.
Coordinate Frames
- Choosing a frame (a point and two perpendicular vectors of unit length) allows assignment of coordinates.
Dot Product
- Definition: The dot product of two vectors and .
Translation
- Suppose we are given expressed in frame :
Translation 1
- The location of frame expressed in frame :
Translation 2
- expressed in frame .
Translation 3
- expressed in frame .
Rotation
- Suppose that frame is rotated relative to frame by an angle .
Rotation 1
- The orientation of frame expressed in . The rotation matrix can be interpreted as the orientation of frame expressed in frame .
Rotation 2
- expressed in frame . The rotation matrix can be interpreted as a coordinate transformation of a point from frame to frame .
Rotation 3
expressed in frame .
Properties of Rotation Matrices
- The columns of are mutually orthogonal.
- Each column of is a unit vector.
- (the determinant is equal to 1).
Rotations in 3D
- Rotation matrix in 3D:
Reinforcement Learning for Control
- RL Concepts: State, Action, Reward, Policy, Q-value.
- Deep RL in Robotics: DDPG (Deep Deterministic Policy Gradient), PPO, SAC (Soft Actor-Critic).
- Control Types: Model-based vs. Model-free control.
- Case Studies: OpenAI Gym, MuJoCo, Robosuite.
- Challenges: Sample inefficiency, safety, real-time learning.
Human-Robot Interaction and Explainable Robotics
- Human-in-the-loop Systems: Robots that take feedback from humans (e.g., RLHF).
- Emotion and Intention Recognition: Essential for social and assistive robots.
- Explainability and Trust in Robotics: Important in healthcare, military, and collaborative settings.
- Ethical Issues and Biases in Robotic Decisions: Bias in models, decision transparency, responsibility.
Applications and Case Studies
- Healthcare Robots: Surgical, eldercare.
- Industrial Automation: Robot arms, warehouses.
- Autonomous Vehicles and Drones.
- Humanoids and Social Robots: Pepper, Sophia.
- Extreme Environments: Space, disaster zones.
Frontiers and Research Challenges
- Sim2Real gap, continual learning, multi-agent collaboration
- Embodied intelligence and developmental robotics
- Open-ended learning and self-repairing robots
- AI + Robotics + Neuroscience
DARPA Urban Challenge
- Date: November 3, 2007
- Objective: Complete a 96 km urban area course in 6 hours.
- Challenge: Multiple robotic vehicles carry out missions simultaneously on the same course.
- Basic Rules:
- Use a stock vehicle.
- Obey California driving laws.
- Operate entirely autonomously.
- Avoid collisions with objects typical of an urban environment.
- Operate in parking lots.
- DARPA supplied an environment map with information on lanes, lane markings, stop signs, parking lots, and special checkpoints.
Autonomous Car Driving Sensors
- Surround View
- Blind Spot Detection
- Traffic Sign Recognition
- Cross Traffic Alert
- Emergency Braking
- Adaptive Cruise Control
- Pedestrian Detection
- Park Assist
- Collision Avoidance
- Eye/Face Tracking
- Rear Collision Warning
- Lane Departure Warning
- Long-Range Radar
- LIDAR
- Camera
- Short/Med-Range Radar
- Ultrasound
Junior - Autonomous Vehicle
- Equipped with various sensors:
- Velodyne laser
- Riegl laser
- Applanix INS
- SICK LMS laser
- IBEO laser
- SICK LDLRS laser
- BOSCH Radar