Questions tagged [matlab]
MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.
268 questions
0
votes
1
answer
166
views
How to read mcap file from terminal on ROS2
I recorded some files with ros2 bag record on a device running ROS2 Humble and they have been saved with mcap format automatically. Now, I'm trying to read them on ...
0
votes
0
answers
24
views
Does IK solvers for 4 dof and 5dof actually exist now?
Is there a ready to use IK solver existing for 4dof or 5dof robotic arms? I havent found any ---- for my 5dof arm i have added a fake joint and used kdl in moveit2 ros2 ---- but i feel like there ...
0
votes
0
answers
30
views
How to obtain dynamic model of 4 DOF manipulator to develop task space control
so I'm trying to simulate and develop a task space controller for a 4 DOF manipulator in MATLAB/Simulink. Problem is how do I obtain the dynamic model so I can develop the controller? I know about ...
0
votes
1
answer
63
views
ROS2 subscriber in MATLAB
I created a simple publisher in MATLAB
...
0
votes
1
answer
55
views
How to compute Y translation to align horizon at a specific image row using RPY from IMU (no feature extraction)?
I have a gimbal-camera system with IMU that can be thought of as a see-saw. On both ends of the see-saw, cameras are mounted at a slight angle looking inwards with little overlap (unknown) in their ...
0
votes
0
answers
29
views
ROS2 Connection between Linux and Matlab/Windows
I want to establish a connection between Linux Ubuntu and Matlab on a Windows Computer. ROS2 Foxy is installed on the Linux computer and works perfectly there. Both computers are connected with a LAN ...
1
vote
1
answer
46
views
Communicating between ROS in simulink to docker in WSL / Docker desktop
As part of a demo on simulation-based testing for a European research project, I am working on an integration where I require ROS communication between ROS nodes in Matlab/Simulink and ROS nodes in a ...
0
votes
0
answers
33
views
LQR gains sign is negative (possible or not)?
Is it possible that the gains for an attitude control problem computed on MatLab with the respective function, turn out negative? It's LTV linearized system.
0
votes
3
answers
120
views
How to include a code generated Matlab function into a ROS 2 C++ node
I generated a matlab function for a Quadrotor trajectory generation. Now I want to include this function into a pre existing ROS2 C++ node.
Unfortunately, when compiling I get an error:
...
1
vote
1
answer
157
views
Possibility of Co-simulation between Ignition Gazebo and Matlab/Simulink?
I would like to know this Co-simulation (Sending and reading commands from Simulink and the model is present in Ignition Gazebo) possiblity between Matlab/Simulink and new Ignition Gazebo. If anyone ...
0
votes
1
answer
49
views
Simulink - Gazebo CoSimulation setup doubts
I am building a model (of a cable) and a controller in simulink to actuate the end points of the cable in simulink. Since matlab is a numerical simulator and it lacks physics based interactions with ...
1
vote
1
answer
115
views
Lateral control for autonomous vehicles
I am working on autonomous vehicle control, i used the kinematic bicycle model,
For the speed reference I used a speed profile not a constant speed(given below [![speed][1]][1]
for the steering angle ...
0
votes
0
answers
70
views
Only one instance of the Robot class should be created
I am working on a Webots project using the Python R2021a version, in which four E-puck robots are used that push the box to target locations with the Python class for each robot "Class ...
0
votes
1
answer
122
views
Modelling thrust on quadcopter in simulink
I want to model aerodynamic forces such as thrust on all motors of quadcopter in simulink.But equations for thrust involves density of air , but then we have to include model air in simulink . So what ...
0
votes
1
answer
81
views
Problem in reading an incremental encoder simulink
I'm trying to read an encoder to receive a velocity value. The robot is a differential drive robot based on ROS, to which I can send commands to the right and left wheels ranging from 0 to 1. Where 0 ...