Showing posts with label Robotics. Show all posts
Showing posts with label Robotics. Show all posts

Friday, September 1, 2017

STM32 Generic Qbs Project

We want to compile and link an STM32 application (which uses Standard Peripheral Driver Library) in 1 click with minimal configuration time (Thanks to Nik!).

- Install the STM link Driver from here:
http://www.st.com/en/development-tools/st-link-v2.html
- Install ARM GCC compiler from here:
https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update
- Install QT Creator from here:
http://download.qt.io/official_releases/qtcreator/4.3/4.3.1/qt-creator-opensource-windows-x86_64-4.3.1.exe
- In Qt go to Help>>About Plugins and enable "BareMetal" Plugin.
- In Qt go to Tools>>Options open Build & Run. Go to Compilers tab and add "arm-none-eabi-gcc.exe" path to compiler path.
- Use my friend's QBS "STM32 Generic Qbs Project"  from here:
https://github.com/RuStrannik/STM32-Qbs-Generic-Project-Example

Wednesday, June 21, 2017

TensorFlow "Hello World!" on Windows

1. Install Python from here.
2. Install PyCharm from here.
3. Open command prompt and enter the following command:
       pip3 install --upgrade tensorflow
4. Open PyCharm and create a new project and a python file.
5. Enter the following short program inside the python file:
    import tensorflow as tf
    hello = tf.constant('Hello World!')
    sess = tf.Session()
    print(sess.run(hello))
6. Shift + F10

Deep Learning

The best book for deep learning: http://www.deeplearningbook.org
Best language: Python
Best Library: Tensorflow

Wednesday, November 23, 2016

Monday, April 4, 2016

How to select a load cell

Single Point Load Cell (Also known as Side Mount Load Cells, Parallelogram Sensors or Belt Buckle Sensors): This Single Point Load Cell is used in small jewelry scales and kitchen scales. It’s mounted by bolting down the end of the load cell where the wires are attached, and applying force on the other end in the direction of the arrow. Where the force is applied is not critical, as this load cell measures a shearing effect on the beam, not the bending of the beam.

Pancake Load Cells, also known as low profile Load Cells: The nature of its structure is less sensitive to extraneous load and moments (especially Torque) compared to other inline sensors such as the S Beam Load Cell, diaphragm or column type. For lower capacities it’s designed with bending beams.

Piezo Film Sensors

Applications: Higher frequency applications strain gauge.
Pros: flexible, lightweight, and tough. In its simplest mode the film behaves like a dynamic strain gauge except that it requires no external power source and generates signals greater than those from conventional foil strain gages after amplification.
Cons: Operation down to fractions of Hz can be achieved using either conventional charge amplifiers or, since signal levels are relatively high, simple high impedance FET buffer circuits. Very slow events, 0.0001 Hz, for example, are not normally possible to detect with piezoelectric film.
Costs: Under 200$

Saturday, April 2, 2016

Controlling DC motor by means of direction of rotation and torque/power insertion

For running a DC motor in both direction (in our case CRS Robotics gripper) you need to have a bridge to be able to switch the polarity of the source. For this purpose I have used  EVAL6206PD board which not only provides a protected bridge but also it has PWM current control for both of its output independently.

The two bridges are designated A and B and their output pins designated as OUT1A, OUT2A, OUT1B, and OUT2B. These outputs are controlled independently by logic inputs IN1A, IN2A, IN1B, and IN2B respectively.

A logic high or low on any of these inputs will drive its corresponding output to the positive supply rail or to ground. Both of the A outputs will be forced to an off (high impedance) state if the ENA pin is taken logic low, as will the B outputs if ENB is taken low. Each bridge also has an analog control signal, VREFA and VREFB, which control the current.

Wednesday, August 12, 2015

Simple Cartesian Trajectory for Fast Research Libarary for KUKA LWR

There is a great library developed by Stanford University for Fast Research Interface (FRI) of KUKA LWR that can be downloaded here. It has many useful examples but it lacks a Simple Trajectory Generator in Cartesian Impedance Mode.
I have developed one and can be downloaded:
https://github.com/mahyaret/Cartesian-KUKA-FRI

You only require to import it to the main solution of FastResearchLibrary.

Monday, June 29, 2015

How to install GraspIt!

GraspIt! was created to serve as a tool for grasping research. It is a simulator that can accommodate arbitrary hand and robot designs. It can also load objects and obstacles of arbitrary geometry to populate a complete simulation world. The GraspIt! engine includes a rapid collision detection and contact determination system that allows a user to interactively manipulate a robot or an object and create contacts between them. Once a grasp is created, one of the key features of the simulator is the set of grasp quality metrics. Each grasp is evaluated with numeric quality measures, and visualization methods allow the user to see the weak point of the grasp and create arbitrary 3D projections of the 6D grasp wrench space. Here is the website: http://www.cs.columbia.edu/~cmatei/graspit/

If you are running Ubuntu 12 you can use this precompiled version: https://drive.google.com/file/d/0B7S255p3kFXNSmFLREd6dWdDOVk/view?pli=1

Friday, December 5, 2014

Analytical Jacobian VS. Geometrical Jacobian

The analytical jacobian is directly differential from forward kinematic, and geometric jacobian is considered the geometric relation. The important point is that angular velocity does not have an integral like associated term like "angular position".

ANALYTICAL JACOBIAN
differential quantities in the operational space.



Monday, April 28, 2014

An EKF for Real-Time Estimation and Control of a RLFJ Manipulator

An Extended Kalman Filter for Real-Time Estimation and Control of a Rigid-Link Flexible-Joint Manipulator
The project of Random Signals, Adaptive, and Kalman Filtering course, under supervision of Dr. Parsa.
Abstract—High performance tracking of an industrial robot depends on accurate expression of manipulator dynamics. When a robot has flexible joints efficient model parametrization will be difficult to achieve. In this course project report an extended Kalman filter (EKF) observer to estimate manipulator states is presented. In a computer simulation the estimation performance is demonstrated. Experimental setup for KUKA/DLR Light-Weight robot in Human Robot Interaction at the University of Western Ontario is also carried out without any success.
Documents and MATLAB and Maple files can be downloaded here.
 

Wednesday, April 23, 2014

Skew symmetry property



The three types of derivatives: vectors-by-matrices, matrices-by-vectors, and matrices-by-matrices. These are not as widely considered and a notation is not widely agreed upon. However the second type (matrices-by-vectors) is widely used in Robotics.
If we consider the following state form for a robot:
 M(\theta )\ddot \theta  + C(\theta ,\dot \theta )\dot \theta  + g(\theta ) = \tau    

The matrix N(\theta ,\dot \theta ) = \dot M(\theta ) - 2C(\theta ,\dot \theta ) is skew-symmetric.
Here the matrix-by-vector derivative is:                                                              

{\dot m_{kj}} = \sum\limits_i^n {\frac{{\partial {m_{kj}}}}{{\partial {\theta _i}}}} {\dot \theta _i}                   

Note that this is not true if the robot dynamics is expressed in any other forms (for exampleM(\theta )\ddot \theta  + R(\theta ,\dot \theta ) + g(\theta ) = \tau ).
 

Tuesday, April 8, 2014

KUKA KRL to FESTO

If you need a spacer for connecting FESTO adaptive gripper DHDG to the end-effector of KUKA/DLR Lightweight Robot here is the link to download the SolidWorks design CAD file.


Sunday, March 23, 2014

DH Parameters

  There are a few rules to consider in choosing the coordinate system:

  1. the z-axis is in the direction of the joint axis
  2. the x-axis is parallel to the common normal: x_n = z_n \times z_{n - 1}
    If there is no unique common normal (parallel z axes), then d (below) is a free parameter.
  3. the y-axis follows from the x- and z-axis by choosing it to be a right-handed coordinate system.
Once the coordinate frames are determined, inter-link transformations are uniquely described by the following four parameters:
  • \theta\,: angle about previous z, from old x to new x
  • d\,: offset along previous z to the common normal
  • r\,: length of the common normal (aka a, but if using this notation, do not confuse with \alpha). Assuming a revolute joint, this is the radius about previous z.
  • \alpha\,: angle about common normal, from old z axis to new z axis

 

"Standard" DH Parameters

Following the DH standard you must provide 4 numbers that define the orientation of the ith link with respect to the i-1th link. "Standard" DH convention assumes that the ith coordinate frame is at the i+1 joint. (joint 1 axes 0, joint 2 axes 1 ...)
  1. (Link parameter)(alpha)The first number represents the angle (in radians) between zi-1 and zi about xi.
  2. (Link parameter)(a)The second number represents the length (in meters) along xi of the common perpendicular between zi-1 and zi.
  3. (Joint parameter)(theta)The third number represents the angle (in radians) between xi-1 and xi about zi-1.
  4. (Joint parameter)(d)The fourth number represents the distance (in meters) along axis zi-1 between the origin of the i-1th coordinate frame and the point where the common perpendicular intersects axis zi

"Modified" DH Parameters (also called Craig's convention)

Following the modified DH standard, you must provide 4 numbers that define the orientation of the ith link with respect to the i-1th link. Unlike the "standard" DH convention, the "modified" DH convention assumes that the ith coordinate frame is at the i joint. (joint 1 axes 1,joint 2 axes 2 ...)
  1. (Link parameter)(alpha)The first number represents the angle (in radians) between zi-1 and zi about xi-1.
  2. (Link parameter)(a)The second number represents the length (in meters) along xi-1 of the common perpendicular between zi-1 and zi.
  3. (Joint parameter)(theta)The third number represents the angle (in radians) between xi-1 and xi about zi.
  4. (Joint parameter)(d)The fourth number represents the distance (in meters) between xi-1 and xi about zi.


    Many people in robotics are actually unaware that there are two different conventions in use. An advantage of Craig’s convention is the proximal placement of the origin for a link. Also the rotation  θi is about  zi and the joint number is the same as the coordinate number, which seem more natural. Torque exerted about joint i is also at the same place as at link i’s coordinate system, to which inertial parameters such as center of mass are likely to be referenced. A disadvantage is that the transform mixes i−1 and i parameters. Both Craig’s convention and the standard DH convention are equally valid. The choice of one over the other is merely a matter of taste or habit.