# Questions tagged [matlab]

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

128 questions
Filter by
Sorted by
Tagged with
3k views

### how to implement and code inner and outer PD controllers for quadrotor for position tracking

The quadrotor system is multi-ODEs equations. The linearized model is usually used especially for position tracking, therefore one can determine the desired x-y positions based on the roll and pitch ...
4k views

### MATLAB 3D Simulation with SOLIDWORKS model

I'm learning to make a 3D simulation in MATLAB based on a model designed from SOLIDWORKS. There is an example: SIMULINK+SOLIDWORKS The way used here is: Create a 3D model in SOLIDWORKS Create a ...
1k views

### Image Based Visual Servoing algorithm in MATLAB

I was trying to implement the IBVS algorithm (the one explained in the Introduction here) in MATLAB myself, but I am facing the following problem : The algorithm seems to work only for the cases that ...
1k views

### Complimentary filter issues

I'm trying to implement the complimentary filter to get Euler angles using accelerometer and gyroscope data. Attached is the MATLAB code that I have along with a data set. The data corresponds to ...
166 views

2k views

### Gyroscope - How can I remove low frequency component with a high pass filter only?

I'm using Matlab to suppress low frequency components with a high pass filter. Objective Filter angular velocity measurements affected by high frequency noise and bias in order to get the best ...
3k views

### Determine the relative camera pose given two RGB camera frames in openCV-python

I would like to determine the relative camera pose given two RGB camera frames. I assume there's overlap in field of view between the two cameras, what I am looking for ultimately is the rotation and ...
427 views

### Euler-Lagrange Dynamic model

I'm working on a masters thesis and need to calculate Mass inertia matrix ($M$), Coriolis/Centrifugal matrix ($C$), and the gravity matrix ($G$) in the equation $M\ddot{\theta} + C\theta + G = \tau$ (...
653 views

### Filtering IMU angle discontinuities

I try to measure Euler angles from an IMU, but some discontinuities happens during measurement, even in vibrationless environment, as shown in the images below. Can someone explain which type of ...
1k views

### RGB-D SLAM - Compute Information Matrix

currently im working on a RGB-D SLAM with a Kinect v1 Camera. In the front-end the SLAM estimates the pose with Ransac as an initial guess for the ICP. With the pose estimation i transform the ...
84 views

### Inverse Jacobian to find joint angles

I am trying to implement a joint space control with the UR5 in MATLAB/Simulink and have programmed the forward kinematics of the same. Now, I want to find out the joint angles of the manipulator using ...
733 views

### Using 3D graphics animate the robot in Matlab GUI

I have seen this example ( http://in.mathworks.com/matlabcentral/fileexchange/14932-3d-puma-robot-demo/content/puma3d.m) in file exchange and want to do similar thing with 4 dof rootic arm. I follow ...
191 views

### Angle to a circle tangent line

I want to simulate the detection of a moving object by a unicycle type robot. The robot is modelled with position (x,y) and direction theta as the three states. The obstacle is represented as a circle ...
549 views

### Quadcopter PID output and duty cycle conversion

I'm trying to design two PD controllers to control the roll and pitch angle of my quadcopter and a P controller to control the yaw rate. I give to the system the reference roll, pitch and yaw rate ...
38 views

### how to introduce 2 inputs into a matlab block function that processes only one variable at a time? [closed]

Using SIMULINK, I wanted to optimize 2 variables with the ant colony optimization algorithm; which is written in a matlab function block, the function is of type function y = f (x) it has only one ...
439 views

### Driving Rhino DC servo motor using Arduino through commands sending from MATLAB

I have a servo motor (http://robokits.download/documentation/RMCS220x_DCServo_Driver.pdf). I wrote a code in Arduino to rotate it in some defined angles and position. Code is given below: ...
1k views

### How can I get the values of a IMU from the serial message received in Simulink via UART?

I try to read IMU sensor data from an Arduino mega 2560 UART with serial receive block of Arduino support package for simulink. The IMU can send binary packets and also nmea packets and I can ...
219 views

### Why I'm getting very long terms in the inertia matrix (or dynamics model) of the robot using matlab script?

I'm working on the dynamics model of a RRRR articulated robot, I'm following Euler-Lagrange approach and developing my code in m-file in matlab; I'm looking for dynamic model of this form:  D(q) \...
4k views

### How do I work out the kinematic solution of a robot arm?

I draw a robotic arm in Solidworks, but I'm not so sure about how to find out the DOF, forward and backward kinematic. Could anyone help me understand how to work out the kinematic solution of this ...
631 views

### About official robotics system toolbox Matlab and Peter Corke Robotics toolbox matlab

I came to know that matlab released robotics system toolbox in 2016 version but I'm using Matlab 2014b. At that time I installed Peter Corke Robotics toolbox matlab and start working on it. I develop ...
610 views

### Does simulink accepts robotics toolbox in matlab?

I'm trying to make a model for a robotic arm on simulink and then excute it on arduino controller but i want also to use robotics toolbox to calculate forward and inverse kinematics so i need to add ...
3k views

### Matlab Inverse Kinematics 6 DOF

I'm trying to write an inverse kinematics Matlab code for a 6 DOF robotic arm that has the following link parameters: Twist angle (alpha): [-90, 0, 90, -90, 90, 0] ...
342 views

### Inverse kinematics: how to specify TCP constraints in an iterative algorithm?

I am trying to write some simple code to perform IK for a 6 DoF redundant robot using the Jacobian pseudo-inverse method. I can solve IK for a desired pose using the iterative method, and I want to ...
342 views

### How to move root locus to the left?

I'm trying to control system that has 3 poles (2 in the right half plane) I sketched root-locus but the two positive poles are going right and never be in the left half plane at any value of k The ...
28 views

### Roy Featherstone toolbox robot model

I want to model these D-H parameters in spatial toolbox: Link: alpha, a, theta, d Link 1 : -90 0 theta1* d1 Link 2 : 0 a2 ...
850 views

### Reading multiple signed digits from serial port

I'm using simulink support package for arduino to read serial data from port2 in Arduino due. My plan is to read signed integers (-415 for example) representing motor speed and feed it to the pid ...
408 views

I want to program an arduino using matlab by "arduino support package" and I want to use simulink in normal input output operations but also use Matlab language in another part so is it possible to ...
231 views

### Dynamic simulation of compliant elements in quadruped robot

I have a preliminary design for a legged robot that uses compliant elements in the legs and in parallel with the motors for energy recovery during impact as well as a pair of flywheels on the front ...
636 views

### 7DOF inverse kinematics spherical wrist

Is it possible to apply kinematic decoupling for a 7 DOF 7R manipulator with spherical wrist? If it is possible, can anyone suggest a reference on how to apply this approach with a redundant ...