Git Product home page Git Product logo

control-of-scara-robot-in-gazebo's Introduction

Control of SCARA Robot in Gazebo

1.1 Create the robot

1.2 Forward Kinematics

Implemented a forward kinematics node that

  • Subscribes to the joint values topic and reads them from the gazebo simulator
  • Calculate the end effector pose
  • publishes the pose as a ROS topic

part1

1.3 Inverse Kinematics

Implemented an inverse kinematics node (a separate node) that has a service client that takes a (desired) pose of the end effector from the user and returns joint positions as a response.

004

2. Controlling the robot joints

Implemented PD controller which would read the joint values, receive reference joint values through service and publish joint efforts back to the SCARA robot.For the joint efforts, Derivative gain (Kd) and Proportional gain(Kp) have been tuned to get optimal control function with fast convergence and minimal overshoot. Control input : U= -Kpe - Kde_dot where, Kp=Proportional Gain Kd= Derivative Gain e=(Xref-X) e_dot=e(current_time) - e(previous_time) / (current_time - previous_time)

2 1

2 2

3. Moving the robot on a linear path

3.1 Velocity Level Kinematics

  • Calculating the end effector velocities and joint velocities using Jacobian matrix.
  • Created two services, one requests joint velocities and converts them to end effector velocities, and the second one takes end effector velocities and converts them to joint velocities.

3 1

3.2 Velocity Controller

  • In order to add a velocity controller, added a reference velocity which was compared with the desired velocity and the cumulative error was found.
  • For tuning, kept increasing the value of Kp (proportional gain) while keeping one of the joints constant.

3.3 Simulation Videos

  • In this video, the velocity in the x and y direction is 0, whereas in the z direction, the velocity given is 1 unit.
x0y0z1.mp4
  • In this video the velocity in the x direction is 0, whereas in the y and z directions the velocity given is 1 unit.
x0y1z1.mp4
  • In this video the velocity in all the directions is 1 unit.
x1y1z1.mp4

control-of-scara-robot-in-gazebo's People

Contributors

malaviyaneha avatar upasana099 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.