13 Replies - 51272 Views - Last Post: 10 November 2009 - 02:26 PM

#1 Spamity Calamity  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 04-April 09

Best Programming Language for Robotics?

Posted 07 September 2009 - 09:18 PM

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:

This post has been edited by Spamity Calamity: 07 September 2009 - 09:18 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Best Programming Language for Robotics?

#2 paperclipmuffin  Icon User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Best Programming Language for Robotics?

Posted 07 September 2009 - 11:56 PM

From what I've seen, C# and VB.net work well, but C++ even better!

Hope that works out! :)

P.S: Java would be useless
Was This Post Helpful? 0
  • +
  • -

#3 masteryee  Icon User is offline

  • D.I.C Regular

Reputation: 40
  • View blog
  • Posts: 271
  • Joined: 16-May 09

Re: Best Programming Language for Robotics?

Posted 09 September 2009 - 01:39 PM

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.
Was This Post Helpful? 0
  • +
  • -

#4 mattman059  Icon User is offline

  • Epic Awesomeness
  • member icon

Reputation: 15
  • View blog
  • Posts: 538
  • Joined: 23-October 06

Re: Best Programming Language for Robotics?

Posted 09 September 2009 - 07:28 PM

Stanford University has a nice set of Course videos on robotics you should check it out. (its free :D)
Was This Post Helpful? 1
  • +
  • -

#5 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10562
  • View blog
  • Posts: 39,087
  • Joined: 27-December 08

Re: Best Programming Language for Robotics?

Posted 11 September 2009 - 03:17 PM

View Postpaperclipmuffin, on 8 Sep, 2009 - 12:56 AM, said:

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.
Was This Post Helpful? 0
  • +
  • -

#6 Guest_Neumann*


Reputation:

Re: Best Programming Language for Robotics?

Posted 15 September 2009 - 05:41 PM

View Postpaperclipmuffin, on 7 Sep, 2009 - 10:56 PM, said:

Java would be useless


Please explain why it would be useless.
Was This Post Helpful? 0

#7 FairtuMydling  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 78
  • Joined: 22-March 09

Re: Best Programming Language for Robotics?

Posted 15 September 2009 - 09:34 PM

View PostSpamity Calamity, on 7 Sep, 2009 - 08:18 PM, said:

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:


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....ial/picmain.htm that explains everything nicely.

Good luck!

MM
Was This Post Helpful? 0
  • +
  • -

#8 blake11  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 63
  • Joined: 20-February 08

Re: Best Programming Language for Robotics?

Posted 24 September 2009 - 05:56 PM

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.
Was This Post Helpful? 0
  • +
  • -

#9 AGRAC393  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 248
  • Joined: 13-May 09

Re: Best Programming Language for Robotics?

Posted 25 September 2009 - 12:18 PM

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:
Was This Post Helpful? 0
  • +
  • -

#10 Scorpiion  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 117
  • Joined: 23-April 09

Re: Best Programming Language for Robotics?

Posted 30 September 2009 - 12:06 PM

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
Was This Post Helpful? 0
  • +
  • -

#11 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,464
  • Joined: 29-May 08

Re: Best Programming Language for Robotics?

Posted 30 September 2009 - 12:08 PM

Have you considered Microsoft's Robotics Developer Studio?
Was This Post Helpful? 0
  • +
  • -

#12 BrainiacV  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-February 09

Re: Best Programming Language for Robotics?

Posted 02 October 2009 - 08:19 AM

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.
Was This Post Helpful? 0
  • +
  • -

#13 calvinthedestroyer  Icon User is offline

  • D.I.C Lover

Reputation: 167
  • View blog
  • Posts: 1,908
  • Joined: 13-October 07

Re: Best Programming Language for Robotics?

Posted 03 November 2009 - 09:56 PM

You will need to learn how to speak in zeros and ones.
:)
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!
Was This Post Helpful? 0
  • +
  • -

#14 WaHooCrazy7  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 19
  • Joined: 09-November 09

Re: Best Programming Language for Robotics?

Posted 10 November 2009 - 02:26 PM

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
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1