School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 306,975 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,864 people online right now. Registration is fast and FREE... Join Now!




Best Programming Language for Robotics?

 

Best Programming Language for Robotics?

Spamity Calamity

7 Sep, 2009 - 08:18 PM
Post #1

New D.I.C Head
*

Joined: 4 Apr, 2009
Posts: 5


My Contributions
Hey guys so I love robots. Ive been playing with them alot lately. Well my only experience is using the PBASIC language for the Parallax Basic STAMP microcontroller. Its awesome and all but I have feeling Im gonna want to be doing more advance stuff in the future. Stuff that requires learning a more powerful programming language. So what should learn? I have two semesters of experience in C++ and no other languages. Should I just stick with the C++ or maybe I should learn Java? VB? C#? or should I stay away from OOP and go with C or Assembly? crazy.gif

This post has been edited by Spamity Calamity: 7 Sep, 2009 - 08:18 PM

User is offlineProfile CardPM
+Quote Post


paperclipmuffin

RE: Best Programming Language For Robotics?

7 Sep, 2009 - 10:56 PM
Post #2

WinWinWinWindows?
Group Icon

Joined: 16 Apr, 2009
Posts: 899



Thanked: 9 times
Dream Kudos: 400
My Contributions
From what I've seen, C# and VB.net work well, but C++ even better!

Hope that works out! smile.gif

P.S: Java would be useless
User is offlineProfile CardPM
+Quote Post

masteryee

RE: Best Programming Language For Robotics?

9 Sep, 2009 - 12:39 PM
Post #3

D.I.C Regular
***

Joined: 16 May, 2009
Posts: 269



Thanked: 38 times
My Contributions
You can use Java or C to program the Lego Mindstorm NXT. The iRobot Roomba natively uses C but I think there are C#/VB .NET wrappers available. You can also look into the Microsoft Robotics Studio, which I understand relies more on visual development than coding.
User is offlineProfile CardPM
+Quote Post

mattman059

RE: Best Programming Language For Robotics?

9 Sep, 2009 - 06:28 PM
Post #4

D.I.C Addict
Group Icon

Joined: 23 Oct, 2006
Posts: 537



Thanked: 8 times
Dream Kudos: 225
My Contributions
Stanford University has a nice set of Course videos on robotics you should check it out. (its free biggrin.gif)
User is offlineProfile CardPM
+Quote Post

macosxnerd101

RE: Best Programming Language For Robotics?

11 Sep, 2009 - 02:17 PM
Post #5

Self-Trained Economist
Group Icon

Joined: 27 Dec, 2008
Posts: 1,880



Thanked: 208 times
Dream Kudos: 325
Expert In: Java

My Contributions
QUOTE(paperclipmuffin @ 8 Sep, 2009 - 12:56 AM) *

P.S: Java would be useless


Not true; FIRST is providing a library for the FRC platform. When looking at language, you want to determine how well you know the syntax and what libraries are available. Hope this helps some.

User is offlineProfile CardPM
+Quote Post

Neumann

RE: Best Programming Language For Robotics?

15 Sep, 2009 - 04:41 PM
Post #6

I can judge a book by its cover
Group Icon

Joined: 8 Jul, 2009
Posts: 686



Thanked: 93 times
Dream Kudos: 225
My Contributions
QUOTE(paperclipmuffin @ 7 Sep, 2009 - 10:56 PM) *

Java would be useless


Please explain why it would be useless.
User is offlineProfile CardPM
+Quote Post

FairtuMydling

RE: Best Programming Language For Robotics?

15 Sep, 2009 - 08:34 PM
Post #7

D.I.C Head
**

Joined: 22 Mar, 2009
Posts: 78



Thanked: 3 times
My Contributions
QUOTE(Spamity Calamity @ 7 Sep, 2009 - 08:18 PM) *

Should I just stick with the C++ or maybe I should learn Java? VB? C#? or should I stay away from OOP and go with C or Assembly? crazy.gif


I would recommend assembly - helps you to understand exactly what you are doing a little better, and other languages are better understood after first getting some familiarity with it. That being said, I only have experience with PIC microcontrollers and their instruction set...

There is a really great beginner's tutorial here: http://www.mstracey.btinternet.co.uk/pictutorial/picmain.htm that explains everything nicely.

Good luck!

MM
User is offlineProfile CardPM
+Quote Post

blake11

RE: Best Programming Language For Robotics?

24 Sep, 2009 - 04:56 PM
Post #8

D.I.C Head
**

Joined: 20 Feb, 2008
Posts: 54



Thanked: 1 times
My Contributions
I would suggest Java and moving over to the Arduino development boards. The only reason I suggest this is because unless you are going to do this for some kind of financial gain, Arduino boards offer alot of flexibility for a small price. And their development tools are written in Java using some kind of psuedo C. So you can write in psudeo C, but also throw in some Java for things that might get complicated.

I am in no way an expert, just a microcontroller enthusiast.
User is offlineProfile CardPM
+Quote Post

AGRAC393

RE: Best Programming Language For Robotics?

25 Sep, 2009 - 11:18 AM
Post #9

D.I.C Head
**

Joined: 13 May, 2009
Posts: 234



Thanked: 2 times
My Contributions
It depends on what kind of robots. For my high school robotics team, we use LabVIEW. One of my friends that works for a robotics company uses c. ph34r.gif
User is offlineProfile CardPM
+Quote Post

Scorpiion

RE: Best Programming Language For Robotics?

30 Sep, 2009 - 11:06 AM
Post #10

D.I.C Head
**

Joined: 23 Apr, 2009
Posts: 62



Thanked: 1 times
My Contributions
I would say first assembly for the processor you want to use, after that, when you understand how things work, you can move on to C.

In the embedded world C is the dominent high level languange even if C++ also come more and more. To learn C first is good since most embedded things are done in C.

Regards, Robert
User is offlineProfile CardPM
+Quote Post

AdamSpeight2008

RE: Best Programming Language For Robotics?

30 Sep, 2009 - 11:08 AM
Post #11

The Bandido Coder
Group Icon

Joined: 29 May, 2008
Posts: 2,733



Thanked: 160 times
Dream Kudos: 3925
Expert In: vb.net, LINQ

My Contributions
Have you considered Microsoft's Robotics Developer Studio?
User is online!Profile CardPM
+Quote Post

BrainiacV

RE: Best Programming Language For Robotics?

2 Oct, 2009 - 07:19 AM
Post #12

New D.I.C Head
*

Joined: 13 Feb, 2009
Posts: 1


My Contributions
As a former programmer for real time controls, I've found nothing beats FORTH. The code is modular, extensible, and a multitasker can be added easily. Most languages require "edit,compile,load,execute" development cycles, FORTH lets you dynamically add to the language while the application is running. Many a time I needed to dynamically add a command to let me view variable states or exercise a command while the system is running. When working with real time controls, which I'd expect robotics to require, it is a wonderful language.
User is offlineProfile CardPM
+Quote Post

calvinthedestroyer

RE: Best Programming Language For Robotics?

3 Nov, 2009 - 08:56 PM
Post #13

D.I.C Regular
***

Joined: 13 Oct, 2007
Posts: 287



Thanked: 3 times
Expert In: QBasic, Legos

My Contributions
You will need to learn how to speak in zeros and ones.
smile.gif
In high school we had a Hero Robot. It has it's own machine language that we used to program it.

Personally, what language you use is based on the controller. Were I work we have multiple computer languages for one product.

there's
masm for the firmware
the firmware update is VB
the chips get programed through an IDE (looks just like C++)
and the fuel gauge chip uses USB

PS the LEGO mind storm kits are super!
User is offlineProfile CardPM
+Quote Post

WaHooCrazy7

RE: Best Programming Language For Robotics?

10 Nov, 2009 - 01:26 PM
Post #14

New D.I.C Head
*

Joined: 9 Nov, 2009
Posts: 19



Thanked: 3 times
My Contributions
Hey,

Ok heres my $0.02 on this topic. First off Java is not useless in any means. If you use Java you simply have to abstract the hardware when your using it (Can be done with Player / Stage and / or ROS).
The past 2 years I've been in a robotics club at my university (University at Buffalo) and on our autonomous robot last year we used Java and this year we are moving to C++. We are making the move because we are not using our "home-brewed" hardware abstraction anymore, but instead are making the jump to ROS. While ROS does have Java bindings, it's C++ bindings are much better, and are simply better suited to our needs. Also C++ allows you to implement "advanced" features such as image processing using tools such as OpenCV.
I would say if it is *simple* robotics that you want to program, something like Java on top of a layer such as ROS would be a excellent choice.

If you would like to know more about the competition my club is in, its called the Intelligent Ground Vehicle Competition (IGVC)
Also, while there's not much info on it, it does have some pictures you can check out my clubs website
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 05:10AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month