robotics chapter 5 – path and trajectory planning dr. amit goradia

38
Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Upload: gervais-harrell

Post on 12-Jan-2016

316 views

Category:

Documents


18 download

TRANSCRIPT

Page 1: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

RoboticsChapter 5 – Path and Trajectory

Planning

Dr. Amit Goradia

Page 2: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Topics

• Introduction – 2 hrs• Coordinate transformations – 6 hrs• Forward Kinematics - 6 hrs• Inverse Kinematics - 6 hrs• Velocity Kinematics - 2 hrs• Trajectory Planning - 6 hrs• Robot Dynamics (Introduction) - 2 hrs• Force Control (Introduction) - 1 hrs• Task Planning - 6 hrs

Page 3: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Robot Motion Planning

• Path planning– Geometric path– Issues: obstacle avoidance, shortest

path

• Trajectory planning, – “interpolate” or “approximate” the

desired path by a class of polynomial functions

– Generate a sequence of time-based “control set points” for the control of manipulator from the initial configuration to its destination.

Task P lan

Action P lan

Path P lan

TrajectoryP lan

C ontro ller

Sensor

R obot

Tasks

Page 4: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Definitions

• Configuration: Specification of all the variables that define the system completely – Example: Configuration of a dof robot is

• Configuration space (C-space): Set of all configurations

• Free configuration: A configuration that does not collide with obstacles

• Free space ( F ) : Set of all free configurations– It is a subset of C

110 ,, dqqqq d

q

Page 5: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Path v/s Trajectory

• Path: A sequence of robot configurations in a particular order without regard to the timing of these configurations.

• Trajectory: It concerned about when each part of the path must be attained, thus specifying timing.

Sequential robot movements in a path

Page 6: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Path Planning: Problem Definition

• Problem statement: Compute a collision-free path for a rigid or articulated moving object among static obstacles.

• Input– Geometry of a moving object (a robot, a digital actor, or a

molecule) and obstacles– How does the robot move?– Kinematics of the robot (degrees of freedom)– Initial and goal robot configurations (positions & orientations)

• Output Continuous sequence of collision-free robot

configurations connecting the initial and goal configurations

Page 7: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Trajectory Planning: Problem Definition

• Problem statement Turn a specified Cartesian-space trajectory of Pe into appropriate joint position reference values

• Input– Cartesian space path– Path constraints including velocity and acceleration

limits and singularity analysis.

• Output– a series of joint position/velocity reference values to

send to the controller

Page 9: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Joint Space v/s Task Space

• Joint-space description: – The description of the motion to be made by

the robot by its joint values.– The motion between the two points in joint

space is not predicted.

• Task space description: – The motion between the two points is known

at all times and controllable. – It is easy to visualize the trajectory, but is

difficult to ensure singularity robustness.

Page 10: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Task Space Planning

Sequential motions of a robot to follow a straight line.

Cartesian-space trajectory (a) The trajectory specified in Cartesian coordinates may force the robot to run into itself, and (b) the trajectory may requires a sudden change in the joint angles.

Page 12: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Trajectory Planning

• Point to point motion– Teach initial and final points; intermediate path is not

critical and is computed by the controller – Applications: Moving of parts, spot welding,

automated loading and unloading of machines; pick-and-place motion

• Continuous path motion– Used when there is a need to follow a complex path

through 3-D space, possibly at high speeds (spray painting, welding, polishing)

– Points generally taught by manual lead through with high speed automatic sampling

Page 13: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Point to Point Motion

• Simple point-to-point smooth trajectory with a few constraints on the lift-off and set-down positions.

• There are 3 ways a manipulator can move from point to point:– slew motion– joint interpolated motion– straight line motion

• Slew motion: all joints move to their required new position as quickly as possible. All axes begin motion at the same time but arrive at their destination at different times. This generally results in joint wear and unpredictable arm motions.

• Joint interpolated motion requires the controller to calculate which joint will take the longest to arrive at its destination and slow other joints down accordingly. A separate velocity is calculated for each axis. Manipulator motion is generally smooth and wear is reduced.

• Straight line motion is a particular case of continuous path motion.

Page 14: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Point to Point Motion

• Joint based trajectory for a single joint using point to point motion.

• Lift-off and set-down points provided for satisfying acceleration constraints

Joint i angle

Timet ttt0 1 2 f

Final

Set down

Lift-off

Initialq

q

q

q

0

1

2

f

Page 16: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Cubic Polynomial Trajectory

• To determine the coefficients we need to look at our boundry conditions. Namely:– Position at t=0– Velocity at t=0– Position at t=final– Velocity at t=final

• Plugging these in we get.

• Solving for a2 and a3

2321 32 tataat

33

2210 tatataat

10 a 00 a

232 320 fff tatat 3

32

200 ffff tatatt

fff

f

f ttta

1230022

02033

12 f

f

f

f tta

Page 17: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Cubic Polynomial Trajectory

• So the an are

• If the initial and final velocity is zero then

• So finally the acceleration is given by or

fff

f

f ttta

1230022 02033

12 f

f

f

f tta

01 a 00 a

033

2 f

fta01 a 00 a 022

3 f

fta

ttt

t f

f

f

f

0302

126 taat 32 62

Page 19: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Quintic Polynomial Trajectory

• Cubics allow us to define the position and velocity at each location in the trajectory. However, the acceleration is discontinuous.

• If we also want to specify the acceleration we would need a Quintic or order 5 polynomial.

• Use the initial and final positions, velocities and accelerations as our boundary conditions to solve for the coefficients.

55

44

33

2210 tatatatataat

Page 23: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Boundary Conditions

1) Initial position2) Initial velocity3) Initial acceleration 4) Lift-off position5) Continuity in

position at t16) Continuity in

velocity at t17) Continuity in

acceleration at t1

8) Set-down position9) Continuity in

position at t210) Continuity in

velocity at t211) Continuity in

acceleration at t212) Final position13) Final velocity14) Final acceleration

Page 24: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Known Parameters• Initial and Final

– Positions (given)– Velocities (normally 0)– Accelerations (normally 0)

• Intermediate Positions (Lift-off and set-down)– Positions (given)– Velocities (continuous with previous trajectory

segment)– Accelerations (continuous with previous

trajectory segment)

Page 25: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Solution

• Nth order polynomial must satisfy N+1 conditions

• 13th order polynomial

• 4-3-4 trajectory

0012

213

13 atatata

022

23

34

4

20212

223

232

10122

123

134

141

)(

)(

)(

nnnnnn atatatatath

atatatath

atatatatath

t0t1, 5 unknowns

t1t2, 4 unknowns

t2tf, 5 unknowns

Page 26: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Task Space Trajectory Planning

• Procedure:– Obtain function for task space path– Sample function to get discrete points (in task

space)– Apply IK and Jacobian calculations– Fit functions to joints– Sample to get discrete reference points (in

joint space).

Page 36: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Path Planning Approaches: Classifications

1. Methods exploring a “search graph”– Attempt to capture the topology of the C-space– Pre-processing of the C-space independently of any

goal– Multiple query type– Examples: PRM’s, Voronoi diagrams, Cellular

decomposition2. Methods incrementally building a search tree

– No attempt at capturing the topology of the C-space– Goal dependent methods– Single query type – Examples: A* algorithm, Rapidly-exploring Random

Trees(RRT)

Page 37: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Potential Field Approaches

• A heuristic function (artificial potential field) is defined on the configuration space to steer robot towards a goal through gradient descent.

• Random walks are used to escape local minimum traps.

• Efficient for holonomic planning but depends on the choice of a good heuristic function.

• Choosing a good heuristic function is difficult when obstacles and differential constraints are added to the problem.

Page 38: Robotics Chapter 5 – Path and Trajectory Planning Dr. Amit Goradia

Path Planning Approaches

• Probabilistic Roadmaps

– A graph is constructed on configuration space by generating random configurations and attempting to connect pairs of nearby configurations with a local planner.

– Local planning is efficient

– Connecting configurations is a difficult task, particularly for complicated nonholonomic dynamical systems. (non-linear control problem)