Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [matlab]

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

0
votes
1answer
32 views

RRT star Convergence

My Code gives the following convergence characteristics, I wanted to know if it is correct Updated code { ...
3
votes
2answers
44 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
26 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
70 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, ...
0
votes
0answers
13 views

Robotics Toolbox Error using tb_optparse Too many input arguments

I tired to run the RRT example that can be found on page 239 of robot.pdf that can be found here ...
0
votes
0answers
9 views

How to determine sampling time, acceptable dead-time to reject output disturbances in FO- and SOPDT models?

I have a few questions regarding sampling time, dead-time, and output disturbance rejection. Given a typical first-order plus dead-time model: $$P = {Kexp^{-sL} \over T_ps+1}.$$ I would like to ...
0
votes
0answers
49 views

MATLAB ROS Communication Issue: The following nodes should be connected but aren't

I have both MATLAB and ROS installed on a SINGLE Linux machine. I am trying to publish data from MATLAB over a rostopic and echoing it in the terminal to view it. No matter, however, I play with URIs ...
4
votes
0answers
53 views

Matlab: Simulate received signals of sonar sensors

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

Planar manipulator matlab simulink error

I want implement feedback linearization for a planar manipulator 3 DOF. I define the desired position,velocity and acceleration for each joints for every 0.01s. So I set in solver options "Fixed-step ...
2
votes
1answer
242 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
102 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
38 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
235 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 ...
0
votes
0answers
12 views

How to use Matlab to to simulate the response of the system subjected to a harmonic load of F1

I recently became interested in Dynamics and I am trying to use MATLAB to simulate the response of a dynamics system when subjected to so a force that varies with time. The reason for this is to have ...
1
vote
1answer
965 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
61 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
0answers
233 views

Design of robot: inverse kinematics doubts + ARTE library on MATLAB

I am designing a robot that I need to model using ARTE library on MATLAB. The robot has 5 DOF with three prismatic and two revolute joints. Works like an inverse gantry robot, with a wrist for ...
0
votes
1answer
240 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
218 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
89 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
100 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
119 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
223 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
298 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$ (...
1
vote
0answers
152 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 ...
0
votes
1answer
67 views

Should the kalmanfilter have disturbance as input?

This is a kalmanfilter As you can see, the process noise(disturbance) is not going to the kalmanfilter. But the state space model for the state feedback system is written as this: https://youtu.be/...
0
votes
1answer
109 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: $...
4
votes
1answer
142 views

Why doesn't this kalmanfilter filter anything? Reduce disturbances and noises with LQG controller

I have a state space model which look like this: $$ \ \begin{bmatrix} \dot{x} \\ \\\dot{\tilde{x}} \end{bmatrix} =\begin{bmatrix} A - BL& BL \\ 0 & A-KC \end{bmatrix} \begin{bmatrix} x\\ \...
2
votes
2answers
111 views

Can I write the seperation principle for LQG controllers in this state space form?

Look at this picture. This is the seperation principle diagram. It is an LQG controller which going to control the real life process. What I want to do, is to create a state space model for this ...
2
votes
1answer
211 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: ...
3
votes
2answers
250 views

Lego Mindstorms EV3 gyro sensor offset fix

I am currently working on a project for a Lego Mindstorms EV3 autopilot using Matlab/Simulink. Basically, I am using a closed loop control system with a PID controller for the control of the control ...
0
votes
1answer
89 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 ...
0
votes
2answers
821 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 ...
1
vote
2answers
193 views

Error in simmechanics matlab while doing inverse dynamics using custom joint

I am doing inverse dynamics in Matlab simmechanics in which position and orientation will be input to the end effector. But it shows error as below. Error originates in Mechanical block rob33/...
1
vote
0answers
345 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 ...
0
votes
1answer
357 views

Inverse kinematic solution not giving the same forward kinematics answer

I'm working on an assignment where I need to derive IK for 5 DOF Youbot kuka robotic arm manipulatorofficial website. I'm using inverse kinematics decoupling and following a geometrical approach using ...
0
votes
1answer
402 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 ...
0
votes
1answer
985 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
2answers
228 views

Error when using Matlab Function block in Simechanics (nested functions and parsing of Matlab function both error)

I create a simple simulink model using Matlab Function block to calculate angles of 4 dof robotic arm using Robotic toolbox Matlab while input is x, y and z values. I used forward kinematics to ...
0
votes
1answer
47 views

Motion input in Simmechanics Matlab.

I have this figure in which motion is given to revolute joint in Simmechanics. In this, constant 2 is used and then integration is used. I want to know what will be effect of 2 here and how ...
1
vote
2answers
536 views

Inverse dynamics for robotic arm using Matlab Simmechanics

I am learning Simmechanics Matlab to do inverse dynamics for 4 DOF robotic arm. I read many examples to input motion to revolute joints like through PID, slider gain, sine waves, signal Builder etc. ...
0
votes
2answers
258 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
481 views

Robot arm matlab Simulink simulation error

I am doing robotic arm simulation in Matlab Simulink but get the error. How I can resolve this. My model given below. Other details: 1. image of coordinates with world coordinates. 2. 6 DOF joint ...
1
vote
0answers
252 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
2answers
129 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 ...
0
votes
1answer
388 views

Arduino output SPWM using Matlab

I have Arduino and Matlab which has hardware support package for Arduino. I want to create SPWM signal (sinusoidal pulse width modulation) to be the output of the Arduino board. I could generate the ...
1
vote
1answer
123 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
2answers
240 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
1k views

Problem with inverse kinematics in robotic arm using Matlab

I define my robotic arm with following code ...
1
vote
1answer
540 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 ...