Go to Post -Best FIRST Robot: One that Makes it to Competition - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2009, 20:01
Mr.Macdonald Mr.Macdonald is offline
Registered User
FRC #2272
 
Join Date: Jan 2009
Location: Conejo Valley Robotics
Posts: 26
Mr.Macdonald is an unknown quantity at this point
Linux?

I recently read this POST

I get the feeling that many people either don't use Linux, or don't understand its power. The power is that their in a standard, and the compilers come from GNU and WORK. I have found that the compiler that came with the robot is not very good. If we linux on the robot, then we could use any OS we want to program.

To load the code we could use NFS, FTP, HTTP, SSH, Telnet and millions of other protocols to load. Imagine programming literally on the robot (NFS, SSH), no loading. just compile and go!

Also the compilers are standard, and GNU compilers work everywhere.

Also the choice of platform, currently it is very hard to program on Linux. If it were Linux then I could use Mac, Windows, Linux, BSD, etc.


And last, this is robotics! Why wouldn't we use Linux, I am sure that the CS departments at major colleges use Linux (otherwise I will be very sad).

US First probably spend a long time writing the OS, I could probably install Gentoo fairly easily (haven't tried, I am not that dumb).


Basically Linux runs the computing world (servers), so why not ours!
  #2   Spotlight this post!  
Unread 06-02-2009, 20:11
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: Linux?

The cRIO runs VxWorks, made by Wind River. The C/C++ compiler is from Wind River.

I do share your sentiment about Linux; I'm posting using Ubuntu
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
  #3   Spotlight this post!  
Unread 06-02-2009, 21:12
Cjmovie's Avatar
Cjmovie Cjmovie is offline
1293 Resident Hacker
AKA: Christopher Corsi
FRC #1293 (D5 Robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: SC
Posts: 73
Cjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to allCjmovie is a name known to all
Re: Linux?

Quote:
Originally Posted by MikeDubreuil View Post
The cRIO runs VxWorks, made by Wind River. The C/C++ compiler is from Wind River.

I do share your sentiment about Linux; I'm posting using Ubuntu
Which just so happens to be a UNIX-like RTOS. Really, it's a lot more suited to a robot - tons less overhead, and the fact that it's a real-time OS gives its schedular a much more deterministic outcome. That's exactly what you want in an industrial or controlled setting. A standard OS is not good, because it doesn't guarantee as much about process run times.

The compiler itself contained in the WindRiver workbench is from the GNU toolchain. As far as I can tell, the only important difference here is that WindRiver includes the libraries it needs to link with, and a method for actively debuggin/loading the modules into the kernel. If you could find a way to load these without using WindRiver (or, alternatively, find that this section of WindRiver is written in Java, as is the majority of the IDE), you could very easily work from Linux.

You can port just about anything you want from UNIX operating systems. It supports most (if not all, I'm unsure) of the POSIX API.
__________________
D5 Robotics, Team 1293: Programmer, CAD'er, Mechanical, Electrical... I've made my rounds.
Events: 2006-2009 Palmetto Regional
Website: http://d5robotics.org/

Last edited by Cjmovie : 06-02-2009 at 22:26.
  #4   Spotlight this post!  
Unread 06-02-2009, 20:39
crake crake is offline
National Instruments
AKA: Chris Rake
no team (Athena)
Team Role: Engineer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 184
crake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond repute
Re: Linux?

Quote:
Originally Posted by Mr.Macdonald View Post
And last, this is robotics! Why wouldn't we use Linux, I am sure that the CS departments at major colleges use Linux (otherwise I will be very sad).
Ask NASA which OS was used on the Mars Rovers Spirit and Opportunity
  #5   Spotlight this post!  
Unread 06-02-2009, 21:35
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: Linux?

Quote:
Originally Posted by crake View Post
Ask NASA which OS was used on the Mars Rovers Spirit and Opportunity
Wow, I didn't realize this until today... and our coach made a comment that "[the students are] working like they are building the space shuttle!" (yeah, we have a LOT left to do in a LITTLE time...)
__________________
I cut myself shaving with Occam's razor.

  #6   Spotlight this post!  
Unread 07-02-2009, 00:35
TimCraig TimCraig is offline
Registered User
AKA: Tim Craig
no team
 
Join Date: Aug 2004
Rookie Year: 2003
Location: San Jose, CA
Posts: 221
TimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to behold
Re: Linux?

Quote:
Originally Posted by Mr.Macdonald View Post
I recently read this POST

I get the feeling that many people either don't use Linux, or don't understand its power. The power is that their in a standard, and the compilers come from GNU and WORK. I have found that the compiler that came with the robot is not very good. If we linux on the robot, then we could use any OS we want to program.

To load the code we could use NFS, FTP, HTTP, SSH, Telnet and millions of other protocols to load. Imagine programming literally on the robot (NFS, SSH), no loading. just compile and go!

Also the compilers are standard, and GNU compilers work everywhere.

Also the choice of platform, currently it is very hard to program on Linux. If it were Linux then I could use Mac, Windows, Linux, BSD, etc.


And last, this is robotics! Why wouldn't we use Linux, I am sure that the CS departments at major colleges use Linux (otherwise I will be very sad).

US First probably spend a long time writing the OS, I could probably install Gentoo fairly easily (haven't tried, I am not that dumb).


Basically Linux runs the computing world (servers), so why not ours!
You do know that the compiler is GCC and that the Workbench is a modified version of Eclipse? Also, in general, Linux isn't a realtime operating system.
  #7   Spotlight this post!  
Unread 07-02-2009, 00:55
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 688
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Linux?

Also note that the Driver Station runs a version of Linux.

As for why you can't program in Linux out of the box, it essentially comes down to market share, so blame capitalist economics for that one. Checking statistics on operating system usage on the internet (roughly proportional to OS usage on desktop/workstation computers overall), shows that Linux occupies less than 1% of the market. This means small return on investment for a company choosing to port their software to Linux.

--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #8   Spotlight this post!  
Unread 07-02-2009, 09:49
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Linux?

Quote:
Originally Posted by Mr.Macdonald View Post
I recently read this POST

I get the feeling that many people either don't use Linux, or don't understand its power. The power is that their in a standard, and the compilers come from GNU and WORK. I have found that the compiler that came with the robot is not very good. If we linux on the robot, then we could use any OS we want to program.

To load the code we could use NFS, FTP, HTTP, SSH, Telnet and millions of other protocols to load. Imagine programming literally on the robot (NFS, SSH), no loading. just compile and go!

Also the compilers are standard, and GNU compilers work everywhere.

Also the choice of platform, currently it is very hard to program on Linux. If it were Linux then I could use Mac, Windows, Linux, BSD, etc.


And last, this is robotics! Why wouldn't we use Linux, I am sure that the CS departments at major colleges use Linux (otherwise I will be very sad).

US First probably spend a long time writing the OS, I could probably install Gentoo fairly easily (haven't tried, I am not that dumb).

Basically Linux runs the computing world (servers), so why not ours!
I believe your sales pitch glosses over a few very difficult hurdles.

I ran Gentoo for a year or two, and I know that gentoo-ing a cRIO is beyond my skill set. It will take a good deal of effort AND skill: porting an OS to a new type of computer isn't a cake walk. The folks at NI and Windriver do this for a living, and we are grateful that they provided us with these two environments. If you can provide a third, go for it.
  #9   Spotlight this post!  
Unread 07-02-2009, 18:52
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Re: Linux?

Everyhting but the NI stuff is using Linux. I checked. There is no Linux version of LabView. As for your mention of how the code is transfered to the CRIO, it uses UDP protocol. I have a packet sniffer I have been using to see what our DS packets look like. I forgot and left it recording while trying to deploy code. Someone said that the software will run under WINE.

edit: Written on a Debian Etch machine
  #10   Spotlight this post!  
Unread 07-02-2009, 20:10
crake crake is offline
National Instruments
AKA: Chris Rake
no team (Athena)
Team Role: Engineer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 184
crake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond repute
Re: Linux?

Actually there is a Linux version of LabVIEW, but not LabVIEW RT. Also under the hood RT runs on either vxWorks or ETS depending on whether it is a PPC or a x86.
  #11   Spotlight this post!  
Unread 08-02-2009, 09:27
dpeterson3 dpeterson3 is offline
Registered User
FRC #1178 (DURT)
Team Role: Alumni
 
Join Date: Aug 2008
Rookie Year: 2008
Location: St. Louis
Posts: 158
dpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the roughdpeterson3 is a jewel in the rough
Re: Linux?

Where did you find it? When I checked their site, I couldn't find any of their stuff that had a Linux version.
  #12   Spotlight this post!  
Unread 08-02-2009, 10:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Linux?

ni.com/linux works pretty well to show the products for linux.

Greg McKaskle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux mormannoob Chit-Chat 6 22-04-2007 17:09
Linux LizJJury Chit-Chat 23 25-09-2003 18:37
Linux MattK Chit-Chat 8 28-04-2003 21:47
MS Linux D.J. Fluck Chit-Chat 5 21-05-2002 17:47


All times are GMT -5. The time now is 10:24.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi