People who code: we want your input. Take the Survey

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
2
votes
0answers
140 views

Use MATLAB Compiler SDK generated package in KUKA Sunrise.Workbench

The MATLAB Compiler SDK allows to create a wrapper for a MATLAB function which can be accessed by Java software. Based on my understanding, KUKA's Sunrise.Workbench IDE uses most of the standard Java ...
2
votes
2answers
2k 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 ...
1
vote
4answers
237 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) \...
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
838 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
772 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
45 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
1k 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
552 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
313 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
2answers
61 views

How do industrial robots solve the inverse kinematic problem?

I want to make a real-time end-effector position control simulation of a 6 DOF robotic arm. To do so, I should solve the inverse kinematic problem, but due to the complexity of calculations, it is ...
1
vote
1answer
56 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
288 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
837 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
664 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
698 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
1answer
54 views

Inertial frame's angular velocity expression

I'm following a robotics course on coursera which talks about aerial robotics and more specifically quadrotors. I'm trying to understand the logic behind the relationship between the angular velocity ...
1
vote
1answer
173 views

Questions about time derivative of jacobian matrix

I find that in some robotic toolboxs(e.g. FROST https://ayonga.github.io/frost-dev/index.html) they use to calculate time derivative of jacobian matrix. Here is my guess about the reason of using ...
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
131 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
303 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
413 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
220 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
327 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
499 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
482 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
0answers
37 views

Inverse Kinematics for a 4-DoF Leg

I am beginner in the robotics space and I am trying to apply inverse kinematics to robot leg that has 4 degrees of freedom. I do not know how to think about solving these problems, so any guidance ...
1
vote
1answer
41 views

How do I compute the feedforward terms in a control law using Matlab?

I have the following situation. I have computed the linear and angular velocity which are the controls for a mobile robot, which have the form: $v_d=v_{fb}+v_{ff}$ $\omega_d=\omega_{fb}+\omega_{ff}$ ...
1
vote
1answer
152 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
68 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
118 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
51 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
287 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
884 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
464 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
82 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
2k 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
428 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
183 views

How can I define the saturation function in Matlab?

I would like to write a Matlab code for an angular velocity of this type: $\omega=\omega_{fb}+sat(\omega_{ff})$ where $\omega_{fb}$ is a feedback angular velocity and $\omega_{ff}$ is a feedforward ...
0
votes
1answer
38 views

Matlab code to take time derivatives

I have a velocity command, which is: $v=k_1\rho cos(\alpha)$ where each quantity $\rho$ and $\alpha$ depend by the time. I would like now to take the time derivative of this, in order to use it as ...
0
votes
1answer
57 views

Problem designing acceleration inputs controller

I am reading this paper: https://www.researchgate.net/publication/224635390_The_motion_control_problem_for_the_CyberCarpet in which is implemented a cartesian regulator to bring the position $(x,y)$ ...
0
votes
1answer
56 views

How do I call Matlab code into Simulink for doing a simulation for doing plots?

I have built a simulink model for performing cartesian regulation on a unicycle: and plot the results with a Matlab code but, I am not very confident with Simulink and so I don't know how to call ...
0
votes
2answers
79 views

Finding the right PD values for a quadcopter simulator

I am working on this short assignment where I have to find the right PD values for a simulated quadcopter. I have to reach 0.9 meters under 1 second with an overshoot of less than 5%. This is my ...
0
votes
1answer
482 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
118 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
275 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
191 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: $...