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

why cumtrapz integrator always return zero?

I have been trying to use cumtrapz function to integrate velocity at a given time interval to get the position. However, it keeps giving me zero position at the beginning and end of the iteration, ...
0
votes
0answers
60 views

Compensator design

I got a plant $G(s)=\left(0.13s+1\right)/s^2$ to design a compensator which provides below demands: Settling time : max 2s Overshoot : max %35 Gain margin : min 10 dB Phase margin : min 30 deg ...
1
vote
1answer
58 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 ...
0
votes
0answers
30 views

Using CTRV UKF, to predict yaw and yaw_rate without measuring it

I would like to know does it makes sense to use CTRV (constant turn rate & velocity) motion model [x, y, v, yaw, yaw_rate] with Unscented Kalman filter if I have only measurements of the position ...
1
vote
0answers
36 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 ...
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
0answers
36 views

Why my kinematic diagram is not giving the same position and orientation while forward kinematics test?

I am sharing my matlab code so that you can also generate the simulation . ...
1
vote
1answer
31 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 ...
0
votes
0answers
15 views

Using Simulink Interpreted MATLab fcn for robot dynamics using Robotics Toolbox

I am using Interpreted MATLab fcn to compute forward dynamics. I am using code of accel in which I have added my robot model in the beginning, making the accel function: ...
0
votes
0answers
18 views

3 DOF robot torque not converging Robotics Toolbox

I have a Simulink model in which desired torque is [0;0;0] and current torque should converge to zeros too. But I am getting oscillatory torque as output. This is the block diagram of what I am ...
3
votes
1answer
59 views

3-DOF Robot Dynamics error in Robotics Toolbox

I am trying to compute dynamics of 3 DOF robot using Robotics Toolbox by executing this code: robot.accel(q, zeros(1,3), zeros(1,3)) But I am getting this error: ...
0
votes
1answer
30 views

How do you control the end effector of a rigid body system using keyboard keys?

So in my lab, I am to create a rigid body tree robot that has an end effector that can be teleoperated by keyboard commands. I found a function called waitforbuttonpress that allowed me to give the ...
2
votes
1answer
91 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 ...
0
votes
1answer
107 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, ...
1
vote
1answer
37 views

Rotation at SerialLink.teach Robotic Toolbox

Im using robotic toolbox to simulate my robot, but i always confused when i see the value of rpy. It always different if i compare with tr2rpy and tr2eul. What kind of rotation used in SerialLink....
0
votes
0answers
14 views

Information filter sensor fusion

I am struggling with a basic implementation of the information filter. I have the equivalent Kalman filter working. The information filter appears to be harder to debug. This is mostly because we ...
4
votes
1answer
125 views

Yaw drift when implementing AHRS filter fusion

I am using the Matlab AHRS filter fusion algorithm with an InvenSense ICM-20948 to determine object orientation. I seem to be obtaining reasonable results however I am getting what appears to be ...
0
votes
1answer
130 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
0answers
30 views

How to add some more feature for this simulink model

After some research Robotic hand simulation in MatLab? After some motivation, I have tried to go inside Matlab Simulink and was able to do this :- https://drive.google.com/open?id=...
0
votes
1answer
71 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
21 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 ...
-2
votes
2answers
90 views

Robotic hand simulation in MatLab?

We are doing graduation project and require simulation of the robotic hand to be submitted. And we want to control various parameter in for movement for fingers of robotic hand. We tried it in other ...
1
vote
1answer
39 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 ...
0
votes
1answer
442 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 ...
0
votes
0answers
33 views

How can I import openmv camera feed in MATLAB

I am planning to use openmv camera with wifi shield for my project. I want to import the video feed to MATLAB for further processing. As per my preliminary search it is extremely difficult and ...
0
votes
2answers
160 views

Libraries to simulate path planning in a dynamic environment for a 2D space

I need to simulate a path planning approach for a 2D space where the obstacles are moving. Initially, I need to implement probabilistic road map, D* lite, A* and Bug2 algorithm. The robot needs to be ...
1
vote
1answer
55 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 ...
2
votes
0answers
40 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 ...
0
votes
1answer
160 views

Forward Kinematics Frame Simulation in MATLAB

I've worked out the T matrix of the tip (position and orientation) with respect to the base frame of a 6 DoF robot for 2 seconds at 1kHz. So the size of the total T matrix is 4*4*1000. How can I ...
2
votes
1answer
169 views

Control system in Matlab with RSA encryption

I want to implement an encrypted controller in Matlab using RSA. I am trying to replicate what is written in this scheme from 'Cyber-Security Enhancement of Networked Control Systems Using Homomorphic ...
0
votes
1answer
47 views

Data Driven Modelling for Motor Position Control

I am trying to identify a plant model for a motor position control using MATLAB System identification toolbox. If it is a speed control example the data set can be generated easily. In this a case ...
3
votes
2answers
271 views

Inconsistent results between Simulink derivative model and tf for PD controller

I'm designing a PD controller so that the response due to unit step should exhibit an overshoot of 20% and steady-state error less 0.01. I've computed the parameters Kp and Kd and double-checked the ...
1
vote
1answer
67 views

RRT star Convergence

My Code gives the following convergence characteristics, I wanted to know if it is correct Updated code { ...
3
votes
2answers
102 views

Meaning of a negative step response with quaternion

It's not technically robotics but: I've been trying to reproduce in Simulink a spacecraft attitude simulation using quaternions, and the kinematics and dynamics seem to work fine, however I'm having ...
0
votes
1answer
161 views

Getting position from joint angles in Matlab RigidBodyTree

I want to use matlab for estimating the position of end effector given joint angles. I saw convenient tool to build robot model using RigidBodyTree. My manipulator is planar, with only revolute joints ...
1
vote
2answers
293 views

How can I get the right sample in RRT star Dubins?

I am trying to find a solution in S(1)*R^2 (x,y, orientation) with obstacles (refer to image) using RRT star and Dubins Model. The code takes a lot of time to find a suitable random sample with x,y, ...
4
votes
0answers
134 views

Matlab: Simulate received signals of sonar sensors [closed]

StackExchange community! I need the guidance what to use for the generation sensor data in Matlab. My purpose is to optimize the exploration process of unknown environment using the multi-robot ...
3
votes
2answers
556 views

inverse kinematics matlab RVC for 3 joint RRR

Hi im having problem with Inverse kinematic using RVC toolbox in matlab for RRR manipulator. ...
0
votes
2answers
234 views

Laser Scanner for localization in particle filter

I'm working on a particle filter implementation in Matlab and I found one very good in the Robotics Toolbox (available here https://github.com/petercorke/robotics-toolbox-matlab). My problem is that I ...
0
votes
1answer
62 views

How can i convert Torque input into PWM signal?

I am working on a project in which i have a robot working with stepper motors. I wish to control this robot with simulink. How can i convert the input( Analog sin input ) into the PWM that can be used ...
0
votes
1answer
450 views

Inverse Kinematics 5DOF - general approach - Wrong solution MATLAB

Can anyone name a good source for a general approach (cookbook-like) for the inverse kinematics regarding a 5-DOF? The paper by De Xu et al. is aiming for a general approach, but it doesn't work for ...
2
votes
1answer
4k 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 ...
0
votes
2answers
73 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
354 views

Project ideas for Robot modeling

I am a 1st-year grad student majoring in robotics. I have the opportunity to select and execute my own projects for a course called Robot Modeling. For the project, I have decided to model a UR5 and ...
0
votes
1answer
320 views

Baxter and Robotics System Toolbox

I am trying to setup a two way communication with the Baxter Robot using the Robotics System Toolbox from MATLAB. However, I am unable to move the arms or record a trajectory using the rosactionclient ...
0
votes
1answer
153 views

Disturbance rejection of PID controller with low sampling rate

I have a closed-loop system with the following discrete-time plant: $P(z) = \frac{0.1262}{z^2-0.3303z+0.07517}$ With a fixed (and horrendously low) sampling time of 0.05 seconds. The plant has a ...
0
votes
1answer
160 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
158 views

Robot real time control [closed]

I want to control a arduino based robot in real time , i am confused whether simulink real time control is a better option or Using ROS ?? I am familiar with the simulink , My application is to ...
0
votes
1answer
421 views

Tracking a ball returning its x,y,z coordinates [closed]

I'm a Mechatronics Student Engineer, and still new with the computer vision field and am now working on a project that needs to Tracks a small ball and need to determine it's (x,y,z). 1st) Kinect was ...
2
votes
1answer
440 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$ (...