ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Control Tutorial RC circuit with ROS

asked 2016-11-05 18:26:11 -0500

marwa eldiwiny gravatar image

Hey FOlks,

I wonder if I can do this experiment without using MATLAB and instead using ROS, Now I understand how to make connection between ROS and Arduino. But what about the other features as shown here

http://ctms.engin.umich.edu/CTMS/inde...

Marwa

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-11-06 14:14:56 -0500

marwa eldiwiny gravatar image

Thanks, but from your answer seems that MATLAB is powerful tool for control theory rather than ROS. To be honest, I didn't find MATLAB useful at All, it is just black box!.

edit flag offensive delete link more

Comments

If you just want to focus on the math, and avoid the implementation, Matlab is great, but you are also correct that it is mostly black boxes. Matlab provides a lot of features that integrate well together, whereas to do all of those things with ROS you need to combine many different tools.

ahendrix gravatar image ahendrix  ( 2016-11-07 00:34:49 -0500 )edit

To be clear; I like ROS and Python, would probably do something like this with ROS, but it would take longer than doing the same exercise in Matlab.

ahendrix gravatar image ahendrix  ( 2016-11-07 00:35:42 -0500 )edit

I have tried this example, but I don't know how to do that for taking analog signal from arduino to it, any example please

marwa eldiwiny gravatar image marwa eldiwiny  ( 2016-11-12 18:43:03 -0500 )edit
0

answered 2016-11-05 20:55:10 -0500

ahendrix gravatar image

While ROS allows you to write code that runs an arduino and communicates with a PC, that's about where the similarities with Matlab/Simulink/Arduino end.

You could probably implement some arduino code which excited an RC circuit and measured the response in the same way, and you could record the results, but ROS doesn't provide many software libraries for doing system identification or control system design.

ROS does have very nice integration with python so, once you had recorded results, you'd probably want to load the bag file in python and use the tools in scipy to analyze your data, and then use matplotlib to plot it.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-11-05 18:26:11 -0500

Seen: 175 times

Last updated: Nov 06 '16