Ask Your Question
0

Develop control algorithms in Ros

asked 2015-06-15 06:30:31 -0600

Alvaro Salcedo gravatar image

Hi users:

Can I develop a control algorithms in Ros? I mean that it is easier to develop in Matlab, but why? what are the differences?

Thanks in advance!

edit retag flag offensive close merge delete

Comments

In general, I find it easier to prototype algorithms in Matlab. Once you know that the algorithm is "ready", you can switch to C++ to make it faster and port it to ROS.

atp gravatar imageatp ( 2015-06-17 06:32:16 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2015-06-16 09:11:08 -0600

tn0432 gravatar image

In my experience, it depends on how much you want to achieve. The key point is at simulation step. If you only try with simple dynamic model of the system (few equations), Matlab is prefered. If you want to try advanced simulation (Gazebo, V-Rep) with many complicationted robots and sensors, ROS is prefered. I do not say we can not do the same thing with Matlab but it will take more time and efforts. Remember that, ROS is produced after Matlab. It means that the inventors in the early day had seen some problems with Matlab.

edit flag offensive delete link more
1

answered 2015-06-15 09:15:59 -0600

niall gravatar image

I agree with Adolfo: it ultimately depends on your definition of ease. For me however (as an engineering, not IT-student) I would say Matlab is easier because my knowledge of C++/Python is limited and I have always worked with m-code. I'm happy I stayed away from Matlab for my current project though where I'm sacrificing development speed for run time speed. I think it's worth the effort as I probably won't always have Matlab at my disposal.

edit flag offensive delete link more
1

answered 2015-06-15 07:44:18 -0600

Adolfo Rodriguez T gravatar image

Can I develop a control algorithms in Ros?

Sure, you can definitely develop control algorithms in ROS.

it is easier to develop in Matlab, but why? what are the differences?

Ease of development depends a lot on what you want to do, how much existing work you can leverage (and don't have to implement yourself) and the workflow you're most comfortable with. So, it cannot be generally said that ROS is easier than Matlab, or the other way around. In fact, Matlab and ROS are not exclusive, as the former has ROS bindings, which allows you (up to a certain extent) to combine the two in a way that suits you best.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-06-15 06:30:31 -0600

Seen: 236 times

Last updated: Jun 16 '15