Project Overview:
This software plans a trajectory for the end-effector of the youBot mobile manipulator (a mobile base with four mecanum wheels and a 5R robot arm), performs odometry as the chassis moves, and performs feedback control to drive the youBot to pick up a block at a specified location, carry it to a desired location, and places it on the ground. Take a look at the code on my GitHub. (Note: the GIF above is playing at 6x speed).
Reference Trajectory Generation
Given the initial and final configuration of the cube, the initial configuration of the robot and the controller gains, the first objective was to generate the reference trajectory for the end-effector frame. To do this, several rigid body transformations were calculated to relate the various cube positions to the end-effector. Then, eight concatenated trajectory segments were broken down and calculated in the order below:
- A trajectory to move the gripper from its initial configuration to a “standoff” configuration a few cm above the block.
- A trajectory to move the gripper down to the grasp position.
- Closing of the gripper.
- A trajectory to move the gripper back up to the “standoff” configuration.
- A trajectory to move the gripper to a “standoff” configuration above the final configuration.
- A trajectory to move the gripper to the final configuration of the object.
- Opening of the gripper.
- A trajectory to move the gripper back to the “standoff” configuration.
Feedforward / Feedback Control
After the end-effector trajectories were determined, I used those and the controller gains to determine the end-effector twist expressed in the end-effector frame. After I calculated the error twist for each joint I was able to use the feedforward and feedback control law expressed in the equation below to find the end-effector twist.
youBot Kinematics Simulator
The final task involved using a given robot configuration to calculate a new configuration after a certain time step. The given configuration was broken down into the chassis configuration, arm configuration and wheel angles. Along with the joint speeds, I was able to calculate new chassis configuration using odometry and next arm joint and wheel angles using the Euler Step.