Questions tagged [matlab]

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

Filter by
Sorted by
Tagged with
1
vote
6answers
5k 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 ...
1
vote
1answer
792 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 ...
1
vote
2answers
561 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 ...
1
vote
1answer
35 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 ...
1
vote
1answer
946 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 ...
1
vote
2answers
492 views

how to add a Matlab code to a simulink model?

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 ...
1
vote
3answers
279 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 ...
1
vote
1answer
47 views

Is system identification and a physics engine the same?

In the control theory the term “system identification” is used quite often. A typical sentence in a robotics oriented paper is that the author is trying to “build a model of a plant with matlab”. The ...
1
vote
1answer
252 views

What is exact model of haptic interface system in the paper “Time-Domain Passivity Control of Haptic Interfaces”?

I am trying to simulate the experiments in the paper "Time-Domain Passivity Control of Haptic Interfaces", Hanaford and Ryu, 2002, IEEE transactions on robotics and automation vol .18, No1 about the ...
1
vote
2answers
654 views

How to consider gravity in the design of a compensator?

I have to solve an exercise for the Digital Control System course (using MATLAB software) which stands: "A ball is suspended inside a vertical tube by airflow 'u' and connected via a spring of ...
1
vote
1answer
566 views

convert toolframe coordinate to world frame coordinates?

I am not sure how i should explain this, I am looking for a way to plot the trajectory an robot arm. An object is seen from the toolFrame frame, but how do I plot the position of each joint, such ...
1
vote
3answers
633 views

How to apply A bang-bang signal of amplitude 1 N and 1 s width as an input force to reproduce certain results in Matlab?

I working on dynamic modeling and simulation of a mechanical system (overhead crane), after I obtained the equation of motion, in the form: $$ M(q)\ddot{q}+C(q,\dot{q})\dot{q}+G(q)=Q $$ All the ...
1
vote
2answers
139 views

Regarding kalman filter implementation

I think I might have originally posted this in the wrong stack exchange forum, link. I think this might be the right place, I am not sure if posting again is considered "bad style", I apologize if ...
1
vote
1answer
57 views

Image data fusion

I have three cameras separated by some distance, looking at a scene. I have calibrated them using checkerboard and I have their respective intrinsic parameters and their pose and rotation matrix, I am ...
1
vote
2answers
130 views

How quickly can a driverless vehicle generate control commands?

Can anyone give me a typical frequency that a driverless vehicle could generate steering and motor thrust commands? I am trying to model a driverless vehicle in MatLab. Right now the vehicle is ...
1
vote
1answer
256 views

Negative torque and negative velocity during reverse dynamics in Matlab Robotics Toolox.

I'm using Robotics Toolox Matlab and I did Reverse dynamics using code below. ...
1
vote
1answer
408 views

Control of WMR (Wheeled Mobile Robot) in 3D

I've implemented SMC (Sliding Mode Controller) on WMR in both X-Y and X-Z plane. Now i want to combine both of these to control WMR in 3D. For this purpose I'm trying to use resultant vector of ...
1
vote
1answer
1k views

Real-time GY-85 IMU sensor interfacing with Simulink

How do I read real time values from the GY-85 IMU sensor at Simulink connected via Arduino? Also, I intend to interact with the Virtual Reality environment at Simulink using this GY-85 IMU sensor. Is ...
1
vote
1answer
217 views

Matlab: System simulation with dynamic state matrix / input matrix [closed]

I have the following system: $$\dot{x} = A(t)x+B(t)u$$ $$y = x$$ $A(t)$ and $B(t)$ are actually scalar, but time-dependent. If they would be constant, I could simulate the system in Matlab using: <...
1
vote
1answer
288 views

Matlab Control Toolbox root locus

I'm using the control system toolbox provided by matlab to estimate the gains of my controller: using root locus design I get a graph like this one . My question is: what is the x on the x-axis? ...
1
vote
1answer
487 views

position control for linear model of quadrotor (problem with tracking task)

Lately, if you notice I have posted some questions regarding position tracking for nonlinear model. I couldn't do it. I've switched to linear model, hope I can do it. For regulation problem, the ...
1
vote
1answer
463 views

Stereo vision in Matlab [closed]

I am working on a project about robot soccer vision. How I utilize two webcams as a stereo vision in matlab for robot soccer matters?
1
vote
1answer
41 views

Plotting a Robot in App Designer

I've a robot created with Peter Corke toolbox and I must plot it inside an app (must be in App Designer - Matlab). The problem is that everytime I try to plot it, it makes an independent figure ...
1
vote
1answer
38 views

What should be the prediction step in particle filter?

I am implementing a particle filter using MATLAB. I am implementing it first time. I have written the system model and measurement model. Given below: ...
1
vote
1answer
47 views

Solving for rotation matrix: Aligning vector a with vector b and then rotating around vector b

Currently working on a quadcopter simulation. I have a desired thrust vector, t =sin(30)cos(45)a1+sin(30)sin(45)a2+cos(30)a3 and desired yaw angle, ...
1
vote
0answers
39 views

Finding transfer function from bode plot

I try to estimate a system transfer function by hand calculation from a bode plot data but I could not succeed yet and I need someone help. it will be appreciated if anyone explains or refer me to a ...
1
vote
0answers
269 views

Maintaining scale factor for essential matrix

I want to recover the trajectory of a vehicle using a monocular camera via the computation of the essential matrix between t-1 and ...
1
vote
0answers
666 views

Matlab Simulink showing following errror: kinematic constraints cannot be maintained

I'm using simulink to get joints torque by giving motion input. I create very simple CAD model in solidworks to learn simulink. Simulink model is showing in below figure. During update it shows no ...
1
vote
1answer
397 views

Configuration space obstacle - calculating collision

I need to calculate the configuration space obstacle to planning a path with a mobile robot. The idea is to divide the obstacles and the robot in triangles and test whether is there any triangle from ...
1
vote
0answers
78 views

how to actuate pneumatic muscle by the signals received by emg sensors interfaced with raspberry pi?

My aim is to actuate a pneumatic muscle based on signals received by EMG sensors placed on the biceps. Is there any Matlab code which can process the received EMG signals and convert them into any ...
0
votes
2answers
1k views

Send numerical values from Matlab to arduino

I have an array (2x4) in Matlab which may contains integer values as well as values in decimals. For example: [1.1, 23, 1.56, 5.29; 2.14, 2.39, 67, 4.001]. I have to send these values to arduino using ...
0
votes
1answer
2k views

How to get Max Torque on Robot arm 's Joints (RRR)

Suppose I have a Robot Arm with 3 joint(revolute)( 3 DOF) as shown below , and I'm given -The ranges of each joint q1,q2,q3 -The lengths of each link L1,L2,L3 -Load on the end effector [Fx Fy M] ...
0
votes
4answers
2k views

Robotic Arm analysis in Matlab/simulink

I am going through a paper, Kinematic Modelling and Simulation of a 2-R Robot Using SolidWorks and Verification by MATLAB/Simulink, which is about a 2-link revolute joint robotic arm. According to the ...
0
votes
1answer
415 views

Are there any aerodynamics modeling/simulation software that is capable to consume a SolidWorks model and to interface with MATLAB/Simulink?

Currently I am developing a control system for an aircraft of a unique design (something in between a helicopter and a dirigible). At this moment I can model only the dynamics of this vehicle without ...
0
votes
1answer
287 views

Line following robot mathematic model

I'm trying to improve the speed my line following robot. I have made this chassis designs. This is the main prototype I'm working on. Look at the following image. I'm driving the robot with PID, and ...
0
votes
2answers
86 views

How to round of these values to 0

How to shorten these values? They are the result of a matrix like this. When I individually run sin(theta1) and such functions, it would give me the correct value as a zero or a one (the angles I am ...
0
votes
1answer
210 views

Generation of a trajectory (position,velocity,acceleration) from velocity

I would like to generate a trajectory for a quadrotor UAV and I am using an architecture which allows to do so only by specifying position, velocity and acceleration. I only know that I want to do a ...
0
votes
1answer
175 views

Can I implement continuous time feedback regulator in an Arduino microcontroller?

Arduino is a digital mikrocontroller. But I wonder if it's possible to implement an continuous time feedback regulator in an Arduino microprocessor? Continuous time feedback regulators such as PID: $...
0
votes
2answers
426 views

Mathematical modelling of system dynamic on matlab

I want to make a matlab (simulink) control model for the system in the image below. The original pdf is only accessible if logged in Carleton's Learning Management System. How do I get the dynamics ...
0
votes
1answer
341 views

Platooning leader follower code

I'm trying to develop a platoon leader follower formation for two robots in Matlab. The paper I'm trying to follow is this. I've got next code, where I want follower robot to follow the leader robot'...
0
votes
1answer
412 views

Pitch angle is either +90° or -90°

Not exactly a robotics based question but mechanics is involved. I have a wearable device that gives output in Quaternions which I can read serially via Labview. My task is to develop a threshold ...
0
votes
1answer
405 views

Pick and place robot [closed]

I have to simulate a pick and place robot (3 DOF). I tried with MATLAB. It should pick and place different objects according to their geometry. Where can I find similar m-codes and algorithms?
0
votes
3answers
101 views

Help to dimension the right controller for the following Tranfer Function

I have a generic problem to create a controller for the following system: $$\ddot{x}(t) = a y(t)$$ where $a$ is a constant real value. The system could be seen as an equivalent of a mass-spring-...
0
votes
2answers
602 views

how to plot a line between two centroids in matlab

I am able to locate centroids of each blocks, but i am unable to join two blocks with a line segment by avoiding the obstacle as shown in the figure. Please need help how do i achieve this using ...
0
votes
3answers
66 views

What is the best way to simulate a robotic arm?

I have been working on a senior design project. In this project, we designed a 4-DOF robot arm. Now, I want to do a simulation for this system. I guess I have to design controllers for the servo ...
0
votes
1answer
12 views

Need Suggestions for real-time number or object detection with Arduino + MATLAB? [closed]

I'm working on a line follower robot. its a kind of waiter robot. and i am facing problems in detecting customer table. can you guys please suggest me some ideas to detect customer table. i want to ...
0
votes
1answer
242 views

Matlab Code for Lynx Robot

In this section, you will need to write a function lynx_fk which returns the positions of 10 points along the robot arm as defined later, given the joint angles of the robot. For this question, ...
0
votes
1answer
117 views

Esc calibration

I want to make a calibration setup for BLDC ESC in the simulink model. I'm using arduino mega (3,9,10,11 pins) and quatro 30Ax4 esc. Normally I can set it to it's max, min, and incrementally increase/...
0
votes
1answer
23 views

Get a signal from position array data

I'm working with position data from a hand sensor, and need to apply an FFT to it to get the level of tremor based on the frequency of the signal. I get two arrays, one with +1000 frames of position ...
0
votes
1answer
1k views

Convert local coordinates of a moving IMU to global coordinates

I am trying to compare the performance of an IMU in motion against an optical tracking system. The IMU has an accelerometer and a gyroscope and gives output in the local IMU coordinate frames. The ...